Mercurial > hg > svcore
diff data/fileio/CodedAudioFileReader.cpp @ 304:4fc6f49436b3
* Add support for remote files to image layer
author | Chris Cannam |
---|---|
date | Fri, 05 Oct 2007 15:52:52 +0000 |
parents | c022976d18e8 |
children | 7a4bd2c8585c |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp Fri Oct 05 13:26:47 2007 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Fri Oct 05 15:52:52 2007 +0000 @@ -303,6 +303,11 @@ ratio, final); + for (size_t i = 0; i < out; ++i) { + if (m_resampleBuffer[i] > 1.f) m_resampleBuffer[i] = 1.f; + if (m_resampleBuffer[i] < -1.f) m_resampleBuffer[i] = -1.f; + } + buffer = m_resampleBuffer; sz = out; }