On Mon, 17 Feb 2003, Jaroslav Kysela wrote: > Note that your all nice ideas go to some blind alley. Who will silence the > sum buffer? Driver silences only hardware buffer which will not be used > for the calculation in your algorithm.
Silencing is not time critical, if buffer is big enough it does not matter whether is it done 1 ms or 100 ms after the card has played the data. Therefore it may be done by a separate thread/process/kernel task without any interference with other processes writing to the buffer. Anyway, I strongly support writing/adding directly to DMA buffer - lowest latency possible. Precise information about current position of HW pointer should be available to each application so it may tune the delay (synchronize the data coming from the source with slightly different clock frequency!) by adding/deleting single samples (with interpolation). Mutexes optional. Best regards, -- Tomasz Motylewski BFAD GmbH & Co. KG ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel