hello.wav was not played anymore

This commit is contained in:
Bertrand Songis
2016-08-02 07:37:07 +02:00
parent ba681666a0
commit 0524f24ac6
16 changed files with 38 additions and 51 deletions
+3 -2
View File
@@ -173,7 +173,7 @@ class AudioQueue {
friend void audioTask(void* pdata);
#if defined(SIMU_AUDIO)
friend void *audioThread(void *);
friend void * audioThread(void *);
#endif
#if defined(CLI)
friend void printAudioVars();
@@ -231,7 +231,8 @@ class AudioQueue {
return NULL;
}
bool filledAtleast(int noBuffers) {
bool filledAtleast(int noBuffers)
{
int count = 0;
for(int n= 0; n<AUDIO_BUFFER_COUNT; ++n) {
if (audioBuffers[n].state == AUDIO_BUFFER_FILLED) {