[alsa-devel] Asynchronous ALSA - callback and latency questions

Clemens Ladisch clemens at ladisch.de
Tue Sep 9 13:23:50 CEST 2014


Bram Bos wrote:
>>>>> I’m using ALSA for building a performance musical instrument, so I’m
>>>>> after
>>>>> low-latency audio output.
>>>>>
>>>>> 1. I’m using asynchronous audio output (i.e. using a callback).
>>>>
>>>> Don't.
>>>
>>> That's an interesting insight. I reckoned using a callback was the most elegant
>>> solution since that's what I'm used to for DirectSound, iOS, OSX, WMME, ASIO etc.
>>
>> If you want to go in that direction, just use JACK.
>
> And the next best alternative would be blocked-mode/polling through ALSA, then?

Yes.  (That's what Jack uses; with full duplex, you already need to handle
multiple devices.)


Regards,
Clemens


More information about the Alsa-devel mailing list