From 03b8a1c3a7f8c59277616b8c0cf62a567acc005b Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Mon, 17 Dec 2012 20:16:54 +0100 Subject: [PATCH] Disabled fix #271 for ogg cracks (the solution slows down the loading too much) --- src/SFML/Audio/SoundFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SFML/Audio/SoundFile.cpp b/src/SFML/Audio/SoundFile.cpp index 676d2758..c0b36719 100644 --- a/src/SFML/Audio/SoundFile.cpp +++ b/src/SFML/Audio/SoundFile.cpp @@ -263,8 +263,9 @@ void SoundFile::initialize(SF_INFO fileInfo) m_sampleCount = static_cast(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); }