search for: byte_format

Displaying 3 results from an estimated 3 matches for "byte_format".

Did you mean: base_format
2013 Dec 04
1
endian problems with AIFF and WAV
...(fp == NULL) { printf("Cannot open %s.\n", argv[1]); exit(2); } sf_info.format = 0; sndfile = sf_open_fd(fileno(fp), SFM_READ, &sf_info, 1); memset(&format, 0, sizeof(format)); if ((sf_info.format & SF_ENDIAN_LITTLE) == SF_ENDIAN_LITTLE) format.byte_format = AO_FMT_LITTLE; if ((sf_info.format & SF_ENDIAN_BIG) == SF_ENDIAN_BIG) format.byte_format = AO_FMT_BIG; if ((sf_info.format & SF_FORMAT_PCM_S8) == SF_FORMAT_PCM_S8) format.bits = 8; if ((sf_info.format & SF_FORMAT_PCM_16) == SF_FORMAT_PCM_16) format.bits = 16; if ((...
2013 Jun 03
0
libao on Debian
...= 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_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 ) { fprint...
2013 Nov 07
2
Workaround for (EL6.4) rdesktop-1.6.0-10 Woe
...ormat type definition. Then add the "matrix" line at the bottom. vi /usr/include/ao/ao.h ----------------------- typedef struct ao_sample_format { int bits; /* bits per sample */ int rate; /* samples per second (in a single channel) */ int channels; /* number of audio channels */ int byte_format; /* Byte ordering in sample, see constants below */ char *matrix; /* channel input matrix */ } ao_sample_format; ----------------------- ##>> Make a copy of the modified ao.h in case it gets overwritten later: cp /usr/include/ao/ao.h /usr/include/ao/ao.h.withMatrix ##>> The build s...