#1692 - We flush the queue instead of stopping the audio (the TADA sound

is cut otherwise)
This commit is contained in:
bsongis
2014-09-10 20:05:54 +02:00
parent 5254c553b2
commit 1f77806017
5 changed files with 15 additions and 2 deletions
+9
View File
@@ -931,6 +931,15 @@ void AudioQueue::stopAll()
CoLeaveMutexSection(audioMutex);
}
void AudioQueue::flush()
{
CoEnterMutexSection(audioMutex);
widx = ridx; // clean the queue
varioContext.clear();
backgroundContext.clear();
CoLeaveMutexSection(audioMutex);
}
void audioEvent(uint8_t e, uint16_t f)
{
#if defined(HAPTIC)