Displaying 1 result from an estimated 1 matches for "ao_default_driv".
Did you mean:
ao_default_driver
2013 Jun 03
0
libao on Debian
...char *sound ;
int nBytes ;
extern char *Sine(int sr, int nchan, double dur, int *nBytes) ;
int r, id ;
ao_device *device ;
ao_sample_format fmt ;
sound = Sine(sr, nchan, dur, &nBytes) ; // create sine tone(s)
ao_initialize() ;
if ( ( id = ao_default_driver_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_...