News for hackers. Stuff that matters.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by gaudat on Wednesday March 22, 2023 @11:12AM (#35262257)
And these peripherals can run at hundreds of MHz doing real work in every cycle. I can probably do very low latency audio processing with an interrupt firing at the sample rate. Delay is a few samples instead of at least couple of ms like on a PC with an audio interface.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by milesvp on Wednesday March 22, 2023 @12:16PM (#35263346)
You probably could, but I’d recommend getting a chip with a dedicated I2S peripheral and use freertos with a high priority dedicated audio task that’s sole task is processing audio. You really don’t want to miss an audio sample. It’s very audible, and depending on what you’re doing makes audio processing essentially a hard real-time constraint.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by ta988 on Thursday March 23, 2023 @10:26AM (#35275323)
FreeRTOS has a massive effect on throughput. If your audioprocessing is predictible and your interrupts too there is no reason to need that overhead.
Re:Unpopular Opinion: Don’t Use a Raspberry Pi for That by ta988 on Thursday March 23, 2023 @10:28AM (#35275360)
Yes working on a Arm M7 at 480MHz I get 1 to 3 samples latency on most things I'm doing (mostly synthesis). And that's on a single core even.