ΣSigmaStudio Ask AI Русский Log in

Wav Player

SigmaDSP & SigmaStudio Meeh Nov 28, 2023 00:00 2 replies Original on forum ↗
Subscribe
Meeh Question
Nov 28, 2023 00:00

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

Harishgowtham Reply
Nov 29, 2023 00:00

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

1854.PNG
1854.PNG
pastedimage1701249444870v1.png
pastedimage1701249444870v1.png
pastedimage1701249773027v2.png
pastedimage1701249773027v2.png
pastedimage1701250780763v3.png
pastedimage1701250780763v3.png
pastedimage1701250785994v4.png
pastedimage1701250785994v4.png
Meeh Reply
Nov 30, 2023 00:00

Dear Harish

Thank you for your prompt and detailed answer. That helps me.

Best regards, Richard