Changed: #1030 Don't delete buffers if they will be reused

This commit is contained in:
kervala 2010-07-28 20:12:45 +02:00
parent 45d4a85bc1
commit e38e41c707

View file

@ -838,6 +838,9 @@ void CSourceAL::setStreamingBuffersMax(uint buffers)
{
// create a new buffer
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;
}
}