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
+2 -2
View File
@@ -93,10 +93,10 @@ void dacInit()
NVIC_EnableIRQ(DACC_IRQn) ;
}
bool audioPushBuffer(AudioBuffer *buffer)
void audioPushBuffer(AudioBuffer *buffer)
{
buffer->state = AUDIO_BUFFER_FILLED;
dacStart();
return false;
}
extern "C" void DAC_IRQHandler()