Mercurial > hg > svcore
diff data/fileio/CodedAudioFileReader.h @ 1307:c84629395040 mp3-gapless
Handle trimming the padding from end as well
author | Chris Cannam |
---|---|
date | Tue, 29 Nov 2016 13:34:51 +0000 |
parents | b325e91505b5 |
children | f830a10bfbd6 |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.h Tue Nov 29 12:06:49 2016 +0000 +++ b/data/fileio/CodedAudioFileReader.h Tue Nov 29 13:34:51 2016 +0000 @@ -63,7 +63,7 @@ void initialiseDecodeCache(); // samplerate, channels must have been set // compensation for encoder delays: - void setSamplesToTrim(sv_frame_t fromStart, sv_frame_t fromEnd); + void setFramesToTrim(sv_frame_t fromStart, sv_frame_t fromEnd); // may throw InsufficientDiscSpace: void addSamplesToDecodeCache(float **samples, sv_frame_t nframes); @@ -102,7 +102,7 @@ SNDFILE *m_cacheFileWritePtr; WavFileReader *m_cacheFileReader; float *m_cacheWriteBuffer; - sv_frame_t m_cacheWriteBufferIndex; + sv_frame_t m_cacheWriteBufferIndex; // samples sv_frame_t m_cacheWriteBufferSize; // frames Resampler *m_resampler;