|
|
@ -120,7 +120,7 @@ bool CBufferAL::unlock(uint size)
|
|
|
|
|
|
|
|
|
|
|
|
// Error handling
|
|
|
|
// Error handling
|
|
|
|
if (alGetError() == AL_NO_ERROR)
|
|
|
|
if (alGetError() == AL_NO_ERROR)
|
|
|
|
_IsLoaded = true;
|
|
|
|
_IsLoaded = true; // ->lock() set it to false
|
|
|
|
|
|
|
|
|
|
|
|
return _IsLoaded;
|
|
|
|
return _IsLoaded;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -161,8 +161,7 @@ bool CBufferAL::fill(const uint8 *src, uint size)
|
|
|
|
alBufferData(_BufferName, _SampleFormat, src, size, _Frequency);
|
|
|
|
alBufferData(_BufferName, _SampleFormat, src, size, _Frequency);
|
|
|
|
|
|
|
|
|
|
|
|
// Error handling
|
|
|
|
// Error handling
|
|
|
|
if (alGetError() == AL_NO_ERROR)
|
|
|
|
_IsLoaded = (alGetError() == AL_NO_ERROR);
|
|
|
|
_IsLoaded = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _IsLoaded;
|
|
|
|
return _IsLoaded;
|
|
|
|
}
|
|
|
|
}
|
|
|
|