Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5108

SDK • Re: PCM playback issues

$
0
0
I guess you could either add another timer triggered callback function to perform buffer fills when necessary, or add the functionality to one of the functions you already have, such as Keyboard_tasks?

Does Lua assume exclusive access to the SD Card? Whether you stay bare metal, or move to an RTOS, is the challenge to arbitrate the SD Card accesses for the buffer fills with possible SD Card accesses from Lua?
If I'm not mistaken Lua loads and parses the file to byte code and doesn't touch the SD card after that, unless your program is accessing the filesystem. (could be off base on that)

I'll try to see if Keyboard_tasks is suitable. But maybe the timer isn't a bad idea that would carry over to my other project that doesn't use keyboard. If I read the requirement the DMA is paired up so you can queue up about 0.05s or audio per DMA this is enough time to fill one before the other runs out. I'm looking to keep things simple and only support 16bit mono 44100 kHz and maybe slower speeds if I can.

Statistics: Posted by DarkElvenAngel — Thu Oct 24, 2024 12:17 am



Viewing all articles
Browse latest Browse all 5108

Trending Articles