Closed escalator2015 closed 1 year ago
You need this conversion, as pcm chunks could be allocated in IRAM or DRAM. If memory is located in IRAM you will get a kernel panic if you do 8 bit writes. But it seems there is used a wrong index in the loop. It should be cnt instead of i i think
I understand, you are using internal ram and I am using wrover module with external spi ram. So my code only works for spi ram allocation.
Hi, in develop branch the opus_decoder_task seems to have a mistake (at least for 16 bit samples) when data is decoded and transfered to audio output buffer, there is no need to convert data as the decoder already gives 16 bits samples ready to play. So a single line of code does the job:
I am not compiling dsp processor code and the full path is 16 bits from server. It works flawessly in opus mode this way. You would remove or comment the following as is not correct for 16 bits: