search for: ao_shutdown

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

2000 Dec 16
1
Ogg Vorbis and Java
...doesn't do play lists or anything like that; those sorts of things will be in other classes. There was only one problem I ran into (other than the one you guys solved for me before). Understand that I am using the Beta 3 RPM packaged libraries. The problem I ran into was that I could not call ao_shutdown() and then call ao_initialize() again later without segfaulting. So, now I call ao_initialize() once and I never actually call ao_shutdown(). -- Greg <HR NOSHADE> <UL> <LI>APPLICATION/X-GZIP attachment: vorbis-j-0.0.0.tar.gz </UL> -------------- next part --------------...
2013 Jun 03
0
libao on Debian
...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 ; int frames, i ; short *sbuffer ; char *cbuffer ; f1 = 1000 ; // frequency in Hertz f2 = 1.5 * f1 ;...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...gnal(SIGCONT, cont); } + open_devices(); + if (param.shuffle) { int i; @@ -351,13 +386,7 @@ } } - current = param.outdevices; - - while(current != NULL) - { - ao_close(current->device); - current = current->next_device; - } + close_devices(); ao_shutdown(); -=-=-- After that he missed the facility of asking for next song. He added it with the signal mechanism, using SIGUSR1. Here it is. Same limitations with local functions. -=-=-- --- vorbis-tools-1.0beta3/ogg123/ogg123.c.pix Sat Dec 30 09:46:40 2000 +++ vorbis-tools-1.0beta3/ogg123/ogg123.c...
2013 Dec 04
1
endian problems with AIFF and WAV
...ng 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; }
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