Fix loading of non-packed sounds for Linux.
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Thu, 30 Dec 2004 03:08:34 +0000 (03:08 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Thu, 30 Dec 2004 03:08:34 +0000 (03:08 +0000)
intern/SoundSystem/openal/SND_OpenALDevice.cpp

index a7f7b075efaeb3a1ce6882caf778e879e7745d4e..983ee0e7015ca2e4257fcca341ebc332d56c3160 100644 (file)
@@ -433,12 +433,8 @@ SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String& name,
                                {
 #ifdef __APPLE__
                                        alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
-#elif defined(WIN32)
-                                       alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
 #else
-                                       alutLoadWAV((char*)samplename.Ptr(), &data,
-                                               &sampleformat, &numberofsamples,
-                                               &samplerate, &frequency);
+                                       alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
 #endif
                                        /* put it in the buffer */
                                        alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);