mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: #1030 Allow to queue any buffer not only those managed by CSourceAL
This commit is contained in:
parent
f565acbd40
commit
cec0572a61
1 changed files with 4 additions and 7 deletions
|
@ -200,10 +200,6 @@ void CSourceAL::submitStreamingBuffer(IBuffer *buffer)
|
|||
ALuint bufferName = bufferAL->bufferName();
|
||||
nlassert(bufferName);
|
||||
|
||||
// search if it's in buffers vector
|
||||
if (_Buffers.find(bufferName) == _Buffers.end())
|
||||
return;
|
||||
|
||||
// queue the buffer
|
||||
alSourceQueueBuffers(_Source, 1, &bufferName);
|
||||
alTestError();
|
||||
|
@ -506,12 +502,13 @@ void CSourceAL::setMinMaxDistances( float mindist, float maxdist, bool /* deferr
|
|||
nlassert( (mindist >= 0.0f) && (maxdist >= 0.0f) );
|
||||
_MinDistance = mindist;
|
||||
_MaxDistance = maxdist;
|
||||
// if ((_SoundDriver == NULL) || !_SoundDriver->getOption(ISoundDriver::OptionManualRolloff))
|
||||
// {
|
||||
|
||||
if (!_SoundDriver || !_SoundDriver->getOption(ISoundDriver::OptionManualRolloff))
|
||||
{
|
||||
alSourcef(_Source, AL_REFERENCE_DISTANCE, mindist);
|
||||
alSourcef(_Source, AL_MAX_DISTANCE, maxdist);
|
||||
alTestError();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the min and max distances
|
||||
|
|
Loading…
Reference in a new issue