[Taranis] No more audio freeze!

This commit is contained in:
Bertrand Songis
2014-01-05 13:57:11 +01:00
committed by Andre Bernet
parent 499092b479
commit 0f242f5565
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -325,8 +325,9 @@ void AudioQueue::pushBuffer(AudioBuffer *buffer)
{
buffer->state = AUDIO_BUFFER_FILLED;
if (dacQueue(buffer))
if (dacQueue(buffer)) {
buffer->state = AUDIO_BUFFER_PLAYING;
}
bufferWIdx = nextBufferIdx(bufferWIdx);
}