search for: snd_pcm_write

Displaying 2 results from an estimated 2 matches for "snd_pcm_write".

Did you mean: snd_pcm_writei
2001 Nov 09
1
libao - patch for ALSA (0.5.x) plugin
The enclosed patch to ao_alsa.c (src/plugins/alsa/ao_alsa.c) fixes (after a fashion) a problem I had with interrupted snd_pcm_write() calls. Apparently this behaves like write() rather than fwrite() and needs to be handled accordingly. The fix is dirty, but it gets the thing working. The patch is against the 0.8.0 version of libao, but I believe the latest ao_alsa.c from CVS is similar (if not identical). I can't be cert...
2001 Nov 09
0
libao - new ao_alsa.c patch
The attached patch for src/plugins/alsa/ao_alsa.c supersedes the one I posted last night (well, this morning actually...) The changes are: Handling of incomplete snd_pcm_write()s that actually works (hey, I was sleepy when I wrote the other one). Padding of the playback buffer with zeroes to meet the N*fragment size requirement for snd_pcm_write(). (It might be better to use stream mode instead of block mode...and if I ever figure out how I'll let you know.) This i...