diyAudio

diyAudio (https://www.diyaudio.com/forums/index.php)
-   PC Based (https://www.diyaudio.com/forums/pc-based/)
-   -   CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc. (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc.html)

HenrikEnquist 20th April 2021 11:10 AM

Quote:

Originally Posted by pelanj (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6624349.html#post6624349)
I need to update rust, since it will still be an old version in the repository.

Rust moves fast and Debian tends to lag behind a little. But it doesn't really matter, just use rustup to install: rustup.rs - The Rust toolchain installer


And check out the "develop" branch instead of master, then you get the latest version (the very-soon-to-be-released 0.5.0).

pelanj 20th April 2021 11:55 AM

Yes, I will install it using the link you provided. Could you please also post here the link to clone to get the develop branch? As I said, I am only slightly above noob:) Thanks!

xorcz 20th April 2021 12:57 PM

On the project page GitHub - HEnquist/camilladsp: A flexible linux IIR and FIR engine for crossovers, room correction etc. you can choose develop branch instead of master and then download ZIP.
Or git clone --branch develop GitHub - HEnquist/camilladsp: A flexible linux IIR and FIR engine for crossovers, room correction etc.

xorcz 20th April 2021 01:00 PM

Cannot edit,..

HenrikEnquist 20th April 2021 02:03 PM

or

Code:

git clone hxxps://github.com/HEnquist/camilladsp.git
cd camilladsp
git checkout develop

Replace "xx" with "tt" in hxxps! Why on earth does it modify stuff inside a code block..??

Tfive 20th April 2021 02:13 PM

because it's old and dumb vbulletin. did have to do a migration of vb4 to vb5 connect once for a customer. apart from wordpress i have never seen a bigger php tumor in my life!

pelanj 20th April 2021 08:43 PM

I am stuck. When I install rust using the script on a clean Debian, I can call cargo, but not sudo cargo. When installing via apt-get, I can do it, but then I have the old version of rust. I have the cargo directory in $PATH and also the $HOME/.cargo/env line in .bashrc.

What am I missing? Without sudo, it ends with 'access denied'.

HenrikEnquist 20th April 2021 09:05 PM

rustup installs rust and cargo under your user account, which means it's not available for root. Do you need sudo for installing like this? GitHub - HEnquist/camilladsp-config: Help for setting up CamillaDSP, example config files etc
That only works when you use the system package for rust.

To instead use the one from rustup, just do "cargo build" without sudo and with the options you want. Then manually copy the binary with:
Code:

sudo cp target/release/camilladsp /usr/local/bin/

raptorlightning 20th April 2021 10:30 PM

Quick update on my version of the project - The USBStreamer apparently doesn't behave quite right on the recording side. I suggest you don't try to copy this implementation unless you're willing to help me debug Linux and the USBStreamer...

As a note, this has nothing to do with CamillaDSP, as it's reproducible with just using "arecord" from my (known good) media player output with something like the following code:

Code:

sudo arecord -f S32_LE -r 44100 -c 2 -D "hw:CARD=USBStreamer,DEV=0" test.wav
Here's a picture of the, audible, problem:

https://i.imgur.com/uGhBqK6.png
Top is the recorded waveform, bottom is the original. It just zero fills ~32 samples occasionally, and then picks up where it left off, for some reason...

This happens every 10-15 seconds or so - the emulation of somewhat clean vinyl (quiet pops/cracks) is pretty spot on. I have debugged everything in my audio chain and it's specifically the capture side of the USBStreamer with the Raspi4 (Ubuntu Server). "aplay" playback with a file works perfectly with the USBStreamer, as does the whole digital chain from source-to-speakers (including the hat), without the USBStreamer in circuit capturing.

I've tried several things to stop it, mostly Alsa buffer things, but I have no idea why it happens or what to try next, as I'm not a Linux/XMOS guru... The 32 sample length is curious...


Quote:

Originally Posted by raptorlightning (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6620558.html#post6620558)
Well it took a while, but I finally have a solution:

...

The miniDSP USBStreamer I'm using behaves properly as a transmitter. "Properly" is defined as not doing anything to the sample rate until software control requests it. That is done through ALSA and it works quite well. The filter header is:


pelanj 20th April 2021 10:51 PM

I finally managed to compile. So I copy only camilladsp, not the whole content of the folder? Thanks for the advice!


All times are GMT. The time now is 04:02 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 17.65%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Copyright ©1999-2021 diyAudio

Wiki