This commit is contained in:
jorgenkraghjakobsen
2020-06-13 22:08:10 +02:00
Unverified
parent 01ecba26e6
commit 4cb1d491eb
2 changed files with 5 additions and 2 deletions

View File

@@ -197,7 +197,11 @@ static void dsp_i2s_task_handler(void *arg)
dsp_audio[i*4+2] = (valint[1] & 0xff);
dsp_audio[i*4+3] = ((valint[1] & 0xff00)>>8);
}
i2s_write_expand(0, (char*)dsp_audio, chunk_size,16,32, &bytes_written, portMAX_DELAY);
if (bits_per_sample == 16) {
i2s_write(0,(char*)audio, chunk_size, &bytes_written, portMAX_DELAY);
} else
{ i2s_write_expand(0, (char*)audio, chunk_size,16,32, &bytes_written, portMAX_DELAY);
}
}
break;

View File

@@ -17,7 +17,6 @@
//ESP-IDF stuff
#include "board.h"
//#include "audio_element.h"
#include "es8388.h"