Group :: Gráficos
RPM: blender
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: blender-2.41-openal_source.patch
Download
Download
diff -Naurp blender-2.41.orig/intern/SoundSystem/openal/SND_OpenALDevice.cpp blender-2.41/intern/SoundSystem/openal/SND_OpenALDevice.cpp
--- blender-2.41.orig/intern/SoundSystem/openal/SND_OpenALDevice.cpp 2006-01-07 03:14:36 +0300
+++ blender-2.41/intern/SoundSystem/openal/SND_OpenALDevice.cpp 2006-03-04 20:21:04 +0300
@@ -429,13 +429,9 @@ SND_WaveSlot* SND_OpenALDevice::LoadSamp
#if defined(OUDE_OPENAL) || defined (__APPLE__)
alutLoadWAVMemory((char*)memlocation, &sampleformat, &data, &numberofsamples, &samplerate); // openal_2.12
#else
-#ifdef AL_VERSION_1_1
- alutLoadWAVMemory((ALbyte*)memlocation, &sampleformat, &data, &numberofsamples, &samplerate, &loop);// openal_2.14+
-#else
- alutLoadWAVMemory((signed char*)memlocation, &sampleformat, &data, &numberofsamples, &samplerate, &loop);// openal_2.14+
-
-#endif
+ alutLoadWAVMemory((ALbyte*)memlocation, &sampleformat, &data, (ALsizei*)&numberofsamples, (ALsizei*)&samplerate, &loop);// openal_2.14+
#endif
+
/* put it in the buffer */
alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);
}
@@ -445,7 +441,7 @@ SND_WaveSlot* SND_OpenALDevice::LoadSamp
#ifdef __APPLE__
alutLoadWAVFile((ALbyte *)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
#else
- alutLoadWAVFile((ALbyte *)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
+ alutLoadWAVFile((ALbyte *)samplename.Ptr(), &sampleformat, &data, (ALsizei*)&numberofsamples, (ALsizei*)&samplerate, &loop);
#endif
/* put it in the buffer */
alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);