search for: ao_plugin_close

Displaying 3 results from an estimated 3 matches for "ao_plugin_close".

2001 Nov 09
0
libao - new ao_alsa.c patch
...ctually 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 is done in ao_plugin_close() so it should only happen once. Replacement of one naughty C++ (//) comment line with a proper C one. BONUS: A whole lot of debugging messages if you define INSANE_VERBOSITY. Note that this is for libao 0.8.0 (RC2), not CVS. <HR NOSHADE> <UL> <LI>TEXT/PLAIN attachment: ao_al...
2002 Mar 17
1
libao source build problems on Mandrake 8.2b4: artsc.h missing?
...en': ao_arts.c:92: `internal' undeclared (first use in this function) ao_arts.c:92: parse error before `)' ao_arts.c: In function `ao_plugin_play': ao_arts.c:115: `internal' undeclared (first use in this function) ao_arts.c:115: parse error before `)' ao_arts.c: In function `ao_plugin_close': ao_arts.c:127: `internal' undeclared (first use in this function) ao_arts.c:127: parse error before `)' ao_arts.c: In function `ao_plugin_device_clear': ao_arts.c:137: `internal' undeclared (first use in this function) ao_arts.c:137: parse error before `)' make[3]: *** [ao...
2008 Dec 08
0
sndio support for libao
...NATIVE; + if (!sio_start(hdl)) + return 0; + return 1; +} + +int ao_plugin_play(ao_device *device, const char *output_samples, uint_32 num_bytes) +{ + struct sio_hdl *hdl = (struct sio_hdl *)device->internal; + + if (!sio_write(hdl, output_samples, num_bytes)) + return 0; + return 1; +} + +int ao_plugin_close(ao_device *device) +{ + struct sio_hdl *hdl = (struct sio_hdl *)device->internal; + + if (!sio_stop(hdl)) + return 0; + return 1; +} + +void ao_plugin_device_clear(ao_device *device) +{ + struct sio_hdl *hdl = (struct sio_hdl *)device->internal; + + sio_close(hdl); +} -- Christian "na...