search for: ao_close

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

Did you mean: do_close
2001 Mar 23
2
Ogg123 error messages
...e I think they should simply go on to the next file in the list like "input not an Ogg Vorbis audio stream" does. Another problem that this patch doesn't fix: Trying to play a file that's not a Vorbis file (and with this patch, missing files, bad servers, etc) causes main to call ao_close on devices that aren't open, causing a segfault. Finally, is anyone going to add some sort of buffer prebuffering? Thanks. Aaron Plattner <HR NOSHADE> <UL> <LI>text/plain attachment: ogg123.c.diff </UL> -------------- next part -------------- A non-text attachment wa...
2013 Jun 03
0
libao on Debian
...fmt, NULL) ) == NULL ) { fprintf(stderr,"Error in ao_open_live()\n") ; exit(EXIT_FAILURE) ; } if ( ( r = ao_play(device, sound, nBytes) ) == 0 ) { fprintf(stderr,"Error in ao_play()\n") ; exit(EXIT_FAILURE) ; } if ( ( r = ao_close(device) ) != 1 ) { fprintf(stderr,"Error in ao_close()\n") ; exit(EXIT_FAILURE) ; } ao_shutdown() ; return 0 ; } char *Sine(int sr, int nchan, double dur, int *nBytes) { double f1, f2 ; double db, A ; double ph1, ph2, phInc1, phInc2 ;...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...); + exit(1); + } + if (param.quiet < 1) + fprintf(stderr, "\n"); // Gotta keep 'em separated ... + + current = current->next_device; + } +} + +void close_devices(void) +{ + devices *current; + + current = param.outdevices; + + while(current != NULL) + { + ao_close(current->device); + current = current->next_device; + } +} + int main (int argc, char **argv) { @@ -207,8 +259,6 @@ int option_index = 1; ao_option_t *temp_options = NULL; int temp_driver_id = -1; - devices *current; - int bits, rate, channels; ao_initialize(); @@ -291...
2001 Jan 08
2
[fwd] ogg123 (from: pfk@fuchs.offl.uni-jena.de)
A feature request that sounds reasonable and a bug report. ----- Forwarded message from Frank Klemm <pfk@fuchs.offl.uni-jena.de> ----- Delivery-Date: Sat Jan 6 06:35:21 2001 Date: Sat, 6 Jan 2001 15:26:43 +0100 From: Frank Klemm <pfk@fuchs.offl.uni-jena.de> To: xiphmont@xiph.org Subject: ogg123 X-Mailer: Mutt 1.0.1i For ogg123 I need the following feature: - Decode one .ogg file
2013 Dec 04
1
endian problems with AIFF and WAV
...rintf("Error opening sound device.\n"); exit(1); } buffer = malloc(sizeof(int) * sf_info.frames * sf_info.channels); frames_read = sf_read_int(sndfile, buffer, sf_info.frames * sizeof(int)); ao_play(device, (char *)buffer, sf_info.frames * sizeof(int)); ao_close(device); ao_shutdown(); sf_close(sndfile); return 0; }