10 #ifndef CSL_SoundFileMP3_H
11 #define CSL_SoundFileMP3_H
29 DecodedFile(
string path =
"",
int start = -1,
int stop = -1,
float maxDurInSecs = 0.0);
35 unsigned rate = 44100,
43 bool writeBuffer (
float * stereo_buffer,
unsigned num_samples);
44 bool writeBuffer (
float * L_buffer,
float * R_buffer,
unsigned num_samples);
45 bool writeBuffer (
int * L_buffer,
int * R_buffer,
unsigned num_samples);
58 #ifdef USE_libMAD // Support MP3 file reading using libMAD
72 MP3File(
string path =
"",
int start = -1,
int stop = -1);
88 #ifdef USE_libFAAD // Support AAC/MP4 file reading using libFAAD
100 #define MAX_CHANNELS 6 // make this higher to support files with more channels
105 long bytes_into_buffer;
119 MP4File(
string path =
"",
int start = -1,
int stop = -1);
120 MP4File(
float maxDurInSecs,
string path);
126 csl::
Status decodeAACfile(FILE * inFile) throw (CException);
127 csl::
Status decodeMP4file(FILE * inFile) throw (CException);
128 void printMP4(mp4ff_t * infile,
int track,
unsigned *song_length);
131 NeAACDecHandle hDecoder;
132 NeAACDecFrameInfo frameInfo;
133 NeAACDecConfigurationPtr config;
134 mp4AudioSpecificConfig mp4ASC;
138 #endif // USE_libFAAD