mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Changed: #1030 Don't delete buffers if they will be reused
This commit is contained in:
parent
ac5cd5e41e
commit
f768181706
1 changed files with 3 additions and 0 deletions
|
@ -838,6 +838,9 @@ void CSourceAL::setStreamingBuffersMax(uint buffers)
|
||||||
{
|
{
|
||||||
// create a new buffer
|
// create a new buffer
|
||||||
CBufferAL *buffer = static_cast<CBufferAL*>(_SoundDriver->createBuffer());
|
CBufferAL *buffer = static_cast<CBufferAL*>(_SoundDriver->createBuffer());
|
||||||
|
// use StorageSoftware because buffers will be reused
|
||||||
|
// deleting and recreating them is a waste of time
|
||||||
|
buffer->setStorageMode(IBuffer::StorageSoftware);
|
||||||
_Buffers[buffer->bufferName()] = buffer;
|
_Buffers[buffer->bufferName()] = buffer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue