Re: non-blocking mode example

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

 



Thanks Clemens,

it is really not a small example and an uneven path to go through the whole files... But may be you or someone else could answer my short questions? I have read a file to buffer with "allframes".

1.) Do I use snd_pcm_writei(...) with a size of "allframes" or loop it with smaller packages (periodsize)

2.) What are the actual functions to get the interrupt and send the frames needed into the ringbuffer (standard I/O or select)?

If you start with ALSA you will find enough pieces of code. But it is not very clear, because many pieces of cake are done with much elder APIs from ALSA...

Best regards
Thomas


Am 12.08.2017 um 18:30 schrieb Clemens Ladisch:
ThomasJF wrote:
could anyone please link me to or show me a small demo example, like
"pcm_min.c" with working snd_pcm_open in SND_PCM_NONBLOCK - mode?
alsa-utils/alsaloop, but it's not quite small.


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


_______________________________________________
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