Mercurial > hg > svcore
diff data/fileio/MP3FileReader.cpp @ 1401:cc62d7862203
Some bits and bobs to do with handling memory pressure
author | Chris Cannam |
---|---|
date | Mon, 06 Mar 2017 17:23:46 +0000 |
parents | b812df0351d9 |
children | aadfb395e933 |
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp Mon Mar 06 09:35:03 2017 +0000 +++ b/data/fileio/MP3FileReader.cpp Mon Mar 06 17:23:46 2017 +0000 @@ -101,6 +101,7 @@ // We need a mysterious MAD_BUFFER_GUARD (== 8) zero bytes at // end of input, to ensure libmad decodes the last frame // correctly. Otherwise the decoded audio is truncated. + SVDEBUG << "file size = " << m_fileSize << ", buffer guard = " << MAD_BUFFER_GUARD << endl; m_fileBufferSize = m_fileSize + MAD_BUFFER_GUARD; m_fileBuffer = new unsigned char[m_fileBufferSize]; memset(m_fileBuffer + m_fileSize, 0, MAD_BUFFER_GUARD);