dddomin3 / DSPi

Digital Signal Processing (or Pi). Adventures in making my Raspberry Pi 3 realtime, and running audio DSP.
82 stars 4 forks source link

Making real time audio - still getting glitches #42

Open jmidt opened 5 years ago

jmidt commented 5 years ago

Hi. I am one of the main contributors of OTTO and we have been working on getting our system to run smoothly on the RPi. We have been using your repo as a guideline, so thank you for putting it up! However, we are still experiencing audio glitches after trying many different setups, so we were wondering if we could ask you some questions about your setup, and tips and tricks you might have learned. We won't take up much of your time, but any help would be greatly appreciated if you can spare the time.

I should mention that it is mostly topisani who has been working on this on our end.

I look forward to your answer,

Best, Jonatan

dddomin3 commented 5 years ago

Hey! I'd be glad to help, feel free to PM me and we can work it out.

Best way to avoid audio glitches on the RasPi is either to shut off the networking stack (since it shares a controller with the USB stack), be more conservative with your Jack.d settings (Increasing Latency) or to avoid the USB bus altogether, and have some sort of peripheral that can process your sound (https://blokas.io/store/ for full duplex audio).

There are also some tricks left around the repo for some things (like certain settings I've experimented with) that can help. Though, I've found that a mutli-pronged approach where you're scientific about settings you've changed (I've used this repo to branch, and test different configurations) tends to be the best way to go around things.

And I'm active in general, but haven't committed to this repository in a while, since the device has been treating me well. Occasionally, I'll try to grab a new Raspian distro and compile a realtime kernel, but the patches don't always match up with the kernel version of Raspian, so I end up just giving up, ahaha.

dddomin3 commented 5 years ago

https://github.com/dddomin3/DSPi/blob/master/bash/dspiSwitcher.sh#L32

Here's where I turn off wireless networking to avoid some audio glitches