Permalink
Browse files

Disabled fix #271 for ogg cracks (the solution slows down the loading…

… too much)
  • Loading branch information...
1 parent d41837b commit 03b8a1c3a7f8c59277616b8c0cf62a567acc005b @LaurentGomila LaurentGomila committed Dec 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/SFML/Audio/SoundFile.cpp
@@ -263,8 +263,9 @@ void SoundFile::initialize(SF_INFO fileInfo)
m_sampleCount = static_cast<std::size_t>(fileInfo.frames) * fileInfo.channels;
// Enable scaling for Vorbis files (float samples)
- if (fileInfo.format & SF_FORMAT_VORBIS)
- sf_command(m_file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE);
+ // @todo enable when it's faster (it currently has to iterate over the *whole* music)
+ //if (fileInfo.format & SF_FORMAT_VORBIS)
+ // sf_command(m_file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE);
}

0 comments on commit 03b8a1c

Please sign in to comment.