Disabled fix #271 for ogg cracks (the solution slows down the loading too much)

This commit is contained in:
Laurent Gomila 2012-12-17 20:16:54 +01:00
parent d41837bf16
commit 03b8a1c3a7

View File

@ -263,8 +263,9 @@ void SoundFile::initialize(SF_INFO fileInfo)
m_sampleCount = static_cast<std::size_t>(fileInfo.frames) * fileInfo.channels; m_sampleCount = static_cast<std::size_t>(fileInfo.frames) * fileInfo.channels;
// Enable scaling for Vorbis files (float samples) // Enable scaling for Vorbis files (float samples)
if (fileInfo.format & SF_FORMAT_VORBIS) // @todo enable when it's faster (it currently has to iterate over the *whole* music)
sf_command(m_file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE); //if (fileInfo.format & SF_FORMAT_VORBIS)
// sf_command(m_file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE);
} }