Having a sample rate of multiple of the source yields no benefits. See https://www.audiosciencereview.com/...plate-fusionamp-amplifiers.18537/post-1338143 and the link in it.
Thank you for the suggestions, however, I am not sure you understand the purpose / scope of the tutorial.Worth adding to the tutorial: fix CamillaDSP's processing rate to a multiple of the source and enable rate switching, otherwise everything gets resampled and the bit-perfect path is gone. For sub integration keep the FIR taps modest - latency matters more than filter sharpness at 80 Hz - and measure the result instead of trusting the predicted response.
latency matters more than filter sharpness at 80 Hz
On a Pi 4 or 5 you can expose the USB-C port as a UAC2 gadget (dtoverlay=dwc2 plus g_audio), and Windows 10/11 enumerate UAC2 natively, so no driver is needed. The catch is that the Pi becomes the USB device, so you lose that port for power - power it from the GPIO header or a Y-cable. Worth testing with a loopback measurement to confirm the gadget rate follows the host.
And now we got V5.2b![]()
Thank you!Based on this I don't think you've read the tutorial or have any practical experience using the USB gadget with CamillaDSP. All of this is covered in the section below.
![]()
GitHub - mdsimon2/RPi-CamillaDSP: Guidance on implementing CamillaDSP on a Raspberry Pi
Guidance on implementing CamillaDSP on a Raspberry Pi - mdsimon2/RPi-CamillaDSPgithub.com
To re-iterate, CamillaDSP will NOT follow the sample rate set by the host unless a separate controller is used to restart CamillaDSP at the appropriate sample rate. See below for examples of such controllers.
![]()
GitHub - pavhofman/gaudio_ctl
Contribute to pavhofman/gaudio_ctl development by creating an account on GitHub.github.com
![]()
GitHub - marcoevang/camilladsp-setrate: Automatic sample rate switcher for CamillaDSP
Automatic sample rate switcher for CamillaDSP. Contribute to marcoevang/camilladsp-setrate development by creating an account on GitHub.github.com
![]()
GitHub - HEnquist/camilladsp-controller
Contribute to HEnquist/camilladsp-controller development by creating an account on GitHub.github.com
Michael
Thank you!
I knew about camilladsp-setrate, and used it, but I did not know about the other two projects. After upgrading to CamillaDSP version 4.1 a while back, I found out that camilladsp-setrate did not work with it. I ended up downgrading back to CamillaDSP version 3.0.1 to get camilladsp-setrate working again.
But, seeing the other two projects in your post, I decided to try camilladsp-controller with CamillaDSP version 4.1.3. It is working. The only issue for me is that camilladsp-controller is setup to use a single configuration file. I cannot change the configuration file on the fly in CamillaGUI like I could with camilladsp-setrate. When I change the configuration file CamillaDSP enters an inactive state.
Do you know whether gaudio_ctl works more like camilladsp-setrate, meaning that it will automatically change the samplerate when the streaming samplerate changes, and work with any configuration file I select in CamillaGUI?
Your insight is greatly appreciated.
Again, thank you!
In general I don't think the rate change controllers work well with a GUI / state file setup and are designed to work with a single configuration file. I had some discussion with Henrik about camilladsp-controller and GUI interaction here -> https://www.diyaudio.com/community/...overs-room-correction-etc.349818/post-7919708. I don't think there have been any new developments since them but I may be wrong.
Michael
Michael
Thank you, Michael, for responding so quickly.
I just got gaudio_ctl working. With the help of ChatGPT I created a helper file, running in a python environment, to work with it to make CamillaDSP use the USB stream’s sample rate. It works; regardless of whether the streaming sample rate changes or I choose a different configuration file, CamillaDSP keeps playing. The functionality, at least from the user perspective, mimics what camilladsp-setrate does, but works with CamillaDSP version 4.1.3.
Terry
Absolutely. I put it in Google Docs. Here is the link:Very cool! Would you mind sharing?
Michael
Does this mean we no longer need camilladsp-setrate or camilladsp-controller?
Per the developer, it still still needs more work and won't be ready until v6.From the v5.0.0-beta.1 release notes:
Does this mean we no longer need camilladsp-setrate or camilladsp-controller?