search for: ao_fmt_nat

Displaying 5 results from an estimated 5 matches for "ao_fmt_nat".

2004 Oct 22
0
libao-0.8.5 patch
....new/src/ao_aixs.c --- libao-0.8.5/src/ao_aixs.c 2003-01-08 04:48:54.000000000 +0100 +++ libao-0.8.5.new/src/ao_aixs.c 2004-10-22 12:13:38.000000000 +0200 @@ -55,6 +55,7 @@ "aixs", "Stefan Tibus <sjti@gmx.net>", "Outputs to the AIX audio system.", + NULL, AO_FMT_NATIVE, 20, ao_aixs_options, @@ -117,7 +118,8 @@ /* Free old string in case "dsp" set twice in options */ free(internal->dev); internal->dev = strdup(value); - } + } else + return 0; return 1; } diff -ur libao-0.8.5/src/ao_au.c libao-0.8.5.new/src/ao_au.c --- libao-0...
2013 Dec 04
1
endian problems with AIFF and WAV
I have a test program that loads an AIFF or WAV file with libsndfile and plays then using libao. After running around in circles for a while, I found and fixed the problem, but I'm still confused as to why the solution works. Would someone please explain this to me so I don't trip over this again later in my project? I used sf_open_fd() to get a SNDFILE* pointer and an AF_INFO
2002 Apr 11
1
libao: IRIX patch
...esPerSample; + int channels; } ao_irix_internal; @@ -51,7 +52,7 @@ "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", &quot...
2008 Dec 08
0
sndio support for libao
...FTWARE. + */ +#include <sndio.h> +#include <ao/ao.h> +#include <ao/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 a...
2013 Jun 03
0
libao on Debian
...river_id() < 0 ) ) { fprintf(stderr,"Error in ao_default_driver(): id = %d\n", id) ; exit(EXIT_FAILURE) ; } fmt.bits = 16 ; // bits per sample fmt.rate = sr ; // sampling rate fmt.channels = nchan ; // channel count fmt.byte_format = AO_FMT_NATIVE ; fmt.matrix = "L,R" ; if ( ( device = ao_open_live(id, &fmt, NULL) ) == NULL ) { fprintf(stderr,"Error in ao_open_live()\n") ; exit(EXIT_FAILURE) ; } if ( ( r = ao_play(device, sound, nBytes) ) == 0 ) { fprintf(stderr,&quo...