Displaying 2 results from an estimated 2 matches for "ao_plugin_test".
2002 Apr 11
1
libao: IRIX patch
...Irix audio output ",
"irix",
"Jim Miller <???@sgi.com>",
- "WARNING: This driver is untested!"
+ "Outputs to the IRIX Audio Library.",
AO_FMT_NATIVE,
20,
NULL,
@@ -58,14 +59,13 @@
1
};
-
-int ao_plugin_test()
+int ao_plugin_test(void)
{
char *dev_path;
ALport port;
- if ( !(port = alOpenPort("libao test", "w", 0)) )
+ if ((port = alOpenPort("libao test", "w", NULL)) == NULL)
return 0; /* Cannot use this plugin with default...
2008 Dec 08
0
sndio support for libao
...o/plugin.h>
+
+ao_info ao_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...