comparison data/fileio/AudioFileReaderFactory.cpp @ 1305:9f9f55a8af92 mp3-gapless

Add gapless flag to MP3FileReader, and implement trimming the delay samples from the start (padding is not yet trimmed from end)
author Chris Cannam
date Tue, 29 Nov 2016 11:35:56 +0000
parents 0a9193dc136b
children ff9697592bef
comparison
equal deleted inserted replaced
1304:7cff8367d9b1 1305:9f9f55a8af92
163 #endif 163 #endif
164 164
165 #ifdef HAVE_MAD 165 #ifdef HAVE_MAD
166 if (!reader && MP3FileReader::supports(source)) { 166 if (!reader && MP3FileReader::supports(source)) {
167 reader = new MP3FileReader 167 reader = new MP3FileReader
168 (source, decodeMode, cacheMode, targetRate, normalised, reporter); 168 (source, decodeMode, cacheMode, MP3FileReader::Gapless,
169 targetRate, normalised, reporter);
169 CHECK(reader); 170 CHECK(reader);
170 } 171 }
171 #endif 172 #endif
172 173
173 #ifdef HAVE_QUICKTIME 174 #ifdef HAVE_QUICKTIME
232 #endif 233 #endif
233 234
234 #ifdef HAVE_MAD 235 #ifdef HAVE_MAD
235 if (!reader) { 236 if (!reader) {
236 reader = new MP3FileReader 237 reader = new MP3FileReader
237 (source, decodeMode, cacheMode, targetRate, normalised, reporter); 238 (source, decodeMode, cacheMode, MP3FileReader::Gapless,
239 targetRate, normalised, reporter);
238 CHECK(reader); 240 CHECK(reader);
239 } 241 }
240 #endif 242 #endif
241 243
242 #ifdef HAVE_QUICKTIME 244 #ifdef HAVE_QUICKTIME