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:
commit
624bab7826
9 changed files with 28 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue