diff 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
line wrap: on
line diff
--- a/data/fileio/AudioFileReaderFactory.cpp	Tue Nov 29 08:58:50 2016 +0000
+++ b/data/fileio/AudioFileReaderFactory.cpp	Tue Nov 29 11:35:56 2016 +0000
@@ -165,7 +165,8 @@
 #ifdef HAVE_MAD
     if (!reader && MP3FileReader::supports(source)) {
         reader = new MP3FileReader
-            (source, decodeMode, cacheMode, targetRate, normalised, reporter);
+            (source, decodeMode, cacheMode, MP3FileReader::Gapless,
+             targetRate, normalised, reporter);
         CHECK(reader);
     }
 #endif
@@ -234,7 +235,8 @@
 #ifdef HAVE_MAD
     if (!reader) {
         reader = new MP3FileReader
-            (source, decodeMode, cacheMode, targetRate, normalised, reporter);
+            (source, decodeMode, cacheMode, MP3FileReader::Gapless,
+             targetRate, normalised, reporter);
         CHECK(reader);
     }
 #endif