|
|
@ -83,9 +83,6 @@ bool CMusicChannelAL::fillBuffer(IBuffer *buffer, uint length)
|
|
|
|
uint32 size = _MusicBuffer->getNextBytes(tmp, length, length);
|
|
|
|
uint32 size = _MusicBuffer->getNextBytes(tmp, length, length);
|
|
|
|
buffer->unlock(size);
|
|
|
|
buffer->unlock(size);
|
|
|
|
|
|
|
|
|
|
|
|
// add buffer to streaming buffers queue
|
|
|
|
|
|
|
|
_Source->submitStreamingBuffer(buffer);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -130,9 +127,12 @@ void CMusicChannelAL::run()
|
|
|
|
|
|
|
|
|
|
|
|
// fill buffers
|
|
|
|
// fill buffers
|
|
|
|
for(uint i = 0; i < buffers.size(); ++i)
|
|
|
|
for(uint i = 0; i < buffers.size(); ++i)
|
|
|
|
|
|
|
|
{
|
|
|
|
fillBuffer(buffers[i], _Source->getStreamingBufferSize());
|
|
|
|
fillBuffer(buffers[i], _Source->getStreamingBufferSize());
|
|
|
|
|
|
|
|
|
|
|
|
// _Source->updateManualRolloff();
|
|
|
|
// add buffer to streaming buffers queue
|
|
|
|
|
|
|
|
_Source->submitStreamingBuffer(buffers[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// play the source
|
|
|
|
// play the source
|
|
|
|
if (first)
|
|
|
|
if (first)
|
|
|
|