Wav Player
Dear all
I use two WAV Player in my sketch. According to Wiki, the audio file must not exceed the size of the available DMO memory.
Adau 1467 has 20,480 words (32 bits). Does this mean that 81,920 bytes are available for 8 bit samples? Does this apply to each Wav Player or to all of them together?
Thx
Audio Signal Processors
wav player
Audio Products
software
adau1467
sigma studio 4.7
SigmaDSP Audio Processors
ADAU 1467
Show More
Hello Meeh,
Yes, you can have multiple instances of that wav player module, but total memory it takes should not exceed the data memory of the DSP. Look at the below screenshots. I have used a 48KB wav file with two instances of that module.
Buffer length shown here is 12038. The data memory in the DSP is a 32-bit word. Hence, 12038*32 = 385216 bits.
385216/8= 48152 bytes.
I have used two of this and got the output as expected. See the capture window that how much memory it takes.
You asked about that bits per sample, above screenshot is 32 bits per sample and below posted screenshot is 16 bits per sample.
You can see in the capture window that the memory it takes is same for both options. only buffer length variable holds different numbers, but the data memory allocated is the same.
In the core each sample is a 32 bit word.
If your wav file is too long or you need more memory, then go for external SPI based wav module. which has a trigger in it. please refer the info on that module here.
Regards,
Harish
Dear Harish
Thank you for your prompt and detailed answer. That helps me.
Best regards, Richard
Please log in to reply.



