Horus audio stall fix. The buffer->state value was set too late.

This commit is contained in:
Damjan Adamic
2016-04-03 23:07:55 +02:00
parent 018fec4863
commit 3ef7326756
6 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ void AudioQueue::wakeup()
// TRACE("pushing buffer %d\n", bufferWIdx);
bufferWIdx = nextBufferIdx(bufferWIdx);
buffer->size = size;
buffer->state = audioPushBuffer(buffer) ? AUDIO_BUFFER_PLAYING : AUDIO_BUFFER_FILLED;
audioPushBuffer(buffer);
__enable_irq();
}
}