forked from bartvdbraak/blender
Fix loading of non-packed sounds for Linux.
This commit is contained in:
parent
a970419d0e
commit
c635a0eead
@ -433,12 +433,8 @@ SND_WaveSlot* SND_OpenALDevice::LoadSample(const STR_String& name,
|
|||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
|
alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate);
|
||||||
#elif defined(WIN32)
|
|
||||||
alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
|
|
||||||
#else
|
#else
|
||||||
alutLoadWAV((char*)samplename.Ptr(), &data,
|
alutLoadWAVFile((signed char*)samplename.Ptr(), &sampleformat, &data, &numberofsamples, &samplerate, &loop);
|
||||||
&sampleformat, &numberofsamples,
|
|
||||||
&samplerate, &frequency);
|
|
||||||
#endif
|
#endif
|
||||||
/* put it in the buffer */
|
/* put it in the buffer */
|
||||||
alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);
|
alBufferData(m_buffers[buffer], sampleformat, data, numberofsamples, samplerate);
|
||||||
|
Loading…
Reference in New Issue
Block a user