1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

Merge branch 'bsongis/Taranis_audio_freeze' of https://github.com/opentx/opentx into next

This commit is contained in:
Andre Bernet 2014-01-05 12:26:14 +01:00
commit 624bab7826
9 changed files with 28 additions and 4 deletions

View file

@ -337,10 +337,15 @@ void AudioQueue::pushBuffer(AudioBuffer *buffer)
{
buffer->state = AUDIO_BUFFER_FILLED;
if (dacQueue(buffer))
buffer->state = AUDIO_BUFFER_PLAYING;
__disable_irq();
bufferWIdx = nextBufferIdx(bufferWIdx);
if (dacQueue(buffer)) {
buffer->state = AUDIO_BUFFER_PLAYING;
}
__enable_irq();
}
void mix(uint16_t * result, int sample, unsigned int fade)