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 certain since I don't seem to be able to access xiph.org CVS anymore after switching ISPs (expect me to gripe about that in more detail later :)). <HR NOSHADE> <UL> <LI>TEXT/PLAIN attachment: ao_alsa.interrupted_write.patch </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: ao_alsa.interrupted_write.patch Type: application/octet-stream Size: 1253 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20011109/49ab6e94/ao_alsa.interrupted_write.obj
On Fri, 9 Nov 2001, R.L. Horn wrote:> 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.Thanks. Patch applied, and it works great. --- Stan Seibert --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Seemingly Similar Threads
- libao - new ao_alsa.c patch
- libao problem (Re: [alsa-devel] No dmix/dsnoop on Intel ICH4/5 by default?)
- libao: alsa plugin won't compile
- libao compilation difficulty
- [kcarnold@xiph.org: [xiph-cvs] cvs commit: vorbis/vorbis-tools/libao ao_alsa.c ao_oss.c audio_out.c audio_out.h]