search for: sio_hdl

Displaying 1 result from an estimated 1 matches for "sio_hdl".

2008 Dec 08
0
sndio support for libao
...sndio_info = { + AO_TYPE_LIVE, + "sndio audio output", + "sndio", + "Alexandre Ratchov <alex at caoua.org>", + "Outputs to the sndio library", + AO_FMT_NATIVE, + 30, + NULL, /* no options */ + 0 /* zero options */ +}; + +int ao_plugin_test() +{ + struct sio_hdl *hdl; + + hdl = sio_open(NULL, SIO_PLAY, 0); + if (hdl == NULL) + return 0; + sio_close(hdl); + return 1; +} + +ao_info *ao_plugin_driver_info(void) +{ + return &ao_sndio_info; +} + +int ao_plugin_device_init(ao_device *device) +{ + struct sio_hdl *hdl; + + hdl = sio_open(NULL, SIO_PLAY, 0); +...