Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37908178
en ru br
ALT Linux repositórios
S:3.6.3-alt1
5.0: 2.48a-alt2
4.1: 2.45-alt2.2.1.qa1
4.0: 2.45-alt0.M40.2
3.0: 2.36-alt1.1

Outros repositórios
Upstream:2.45

Group :: Gráficos
RPM: blender

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: blender-2.41-openal_source.patch
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);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009