Re: Exemple of source code for capture without using callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Courtier-Dutton wrote:
> 2009/10/20 brunal2496 gmail <brunal2496@xxxxxxxxx>:
> > I've read everywhere that using callback is a bad method to use the
> > alsa drivers.
> 
> This is wrong. callback is the best method.

But _not_ the snd_async_add_pcm_handler function, which is evil.
(This is the only ALSA PCM function that mentions "callback" in its
documentation, so these are often confused.)

The 'good' callback method means that the audio driver informs the
application when its wants to have new audio data, not the other way.


Best regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux