CamillaDSP - Cross-platform IIR and FIR engine for crossovers, room correction etc

Strange... mine used to.

Now I see ->

I'll send you a process trace on email...

//
 

Attachments

  • C4.png
    C4.png
    35.3 KB · Views: 82
  • C5.png
    C5.png
    37.2 KB · Views: 91
  • C6.png
    C6.png
    29.6 KB · Views: 82
Running 1.0.3 on my old MacBook with Catalina. It looks like the logging is consuming some memory. Without the -v option it's stable at ~7 MB, with -v it increases slowly with a few hundred kB per minute. And with -vv it grows much faster, similar to yours (but didn't measure).
What logging level are you running?
 
Next step, trying with camilladsp v1.0.3 again.
Freshly compiled -> works fine
Prebuilt binary from GitHub -> leaks

My only reasonable theory so far is that there was a bug in some library that was used to build the 1.0.3 on GitHub. The freshly compiled one uses slightly newer versions of all dependencies. Cargo automatically makes safe updates, like bumping a dependency that was specified as v1.2.3 to v1.2.7. No idea which library it could be (and don't really want to spend time on figuring it out..).
 
Hi Henrik and TNT,

I think I was quite successful in making the entire S/W pipeline of:

Leawo DVD/BD player -> Blockhole 16-ch device -> CamillaDSP with the test.conf. --> MacBook Air Speakers,

as of yesterday. I was getting some audio. Then, I had an issue with DiracLiveProcessor because there was no filter loaded. If I plug in Dirac virtual device -> DiracLiveProcessor after the Leawo player, I didn't get any audio. So, I managed to put in a working filter in DiracLiveProcessor today. Then I see this:

  • No audio for BD player -> Dirac virtual device -> DiracLiveProcessor -> Blackhole 16-ch -> CamillaDSP -> MacBook Air speaker
  • Some audio for BD player -> Dirac virtual device -> DiracLiveProcessor -> MacBook Air Speakers

When running CamillaDSP, I see following logs using -v option:

------------------

jcamilladsp-config % camilladsp -v -p 1234 test.conf
2023-03-30 06:03:58.124251 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-03-30 06:03:58.124431 INFO [src/bin.rs:712] Running on macos, aarch64
2023-03-30 06:03:58.124940 DEBUG [src/bin.rs:754] Read config file Some("test.conf")
2023-03-30 06:03:58.129577 DEBUG [src/biquad.rs:43] a1=-1.8859130805730577 a2=0.8891266593302319 b0=0.6403105695745386 b1=-1.1893377354197023 b2=0.5522407446023379
2023-03-30 06:03:58.129599 DEBUG [src/biquad.rs:43] a1=-1.8859130805730577 a2=0.8891266593302319 b0=0.6403105695745386 b1=-1.1893377354197023 b2=0.5522407446023379
2023-03-30 06:03:58.129632 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.8308786077344001 b1=-1.6617572154688003 b2=0.8308786077344001
2023-03-30 06:03:58.129667 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.8308786077344001 b1=-1.6617572154688003 b2=0.8308786077344001
2023-03-30 06:03:58.129679 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.014401103863659259 b1=0.028802207727318518 b2=0.014401103863659259
2023-03-30 06:03:58.129690 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.014401103863659259 b1=0.028802207727318518 b2=0.014401103863659259
2023-03-30 06:03:58.129697 DEBUG [src/bin.rs:773] Config is valid
2023-03-30 06:03:58.129712 DEBUG [src/socketserver.rs:260] Start websocket server on 127.0.0.1:1234
2023-03-30 06:03:58.129947 DEBUG [src/bin.rs:857] Wait for config
2023-03-30 06:03:58.129969 DEBUG [src/bin.rs:890] Config ready
2023-03-30 06:03:58.130066 DEBUG [src/bin.rs:213] Using channels [true, true]
2023-03-30 06:03:58.130105 DEBUG [src/coreaudiodevice.rs:305] Using a playback channel capacity of 9 chunks.
2023-03-30 06:03:58.130111 DEBUG [src/filters.rs:450] Build new pipeline
2023-03-30 06:03:58.130266 DEBUG [src/coreaudiodevice.rs:583] Using a capture channel capacity of 17 buffers.
2023-03-30 06:03:58.130267 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130295 DEBUG [src/biquad.rs:43] a1=-1.8859130805730577 a2=0.8891266593302319 b0=0.6403105695745386 b1=-1.1893377354197023 b2=0.5522407446023379
2023-03-30 06:03:58.130314 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130325 DEBUG [src/biquad.rs:43] a1=-1.8859130805730577 a2=0.8891266593302319 b0=0.6403105695745386 b1=-1.1893377354197023 b2=0.5522407446023379
2023-03-30 06:03:58.130339 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130347 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.8308786077344001 b1=-1.6617572154688003 b2=0.8308786077344001
2023-03-30 06:03:58.130356 DEBUG [src/basicfilters.rs:266] Building delay filter 'tweeterdelay' with delay 24 samples
2023-03-30 06:03:58.130371 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130379 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.8308786077344001 b1=-1.6617572154688003 b2=0.8308786077344001
2023-03-30 06:03:58.130388 DEBUG [src/basicfilters.rs:266] Building delay filter 'tweeterdelay' with delay 24 samples
2023-03-30 06:03:58.130404 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130411 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.014401103863659259 b1=0.028802207727318518 b2=0.014401103863659259
2023-03-30 06:03:58.130420 DEBUG [src/filters.rs:355] Build from config
2023-03-30 06:03:58.130430 DEBUG [src/biquad.rs:43] a1=-1.632955007741482 a2=0.690559423196119 b0=0.014401103863659259 b1=0.028802207727318518 b2=0.014401103863659259
2023-03-30 06:03:58.130440 DEBUG [src/processing.rs:19] build filters, waiting to start processing loop
2023-03-30 06:03:58.190793 DEBUG [src/coreaudiodevice.rs:191] Opened CoreAudio playback device MacBook Air Speakers
2023-03-30 06:03:58.190856 DEBUG [src/coreaudiodevice.rs:422] Playback device ready and waiting
2023-03-30 06:03:58.190863 DEBUG [src/bin.rs:323] Playback thread ready to start
2023-03-30 06:03:58.192670 DEBUG [src/coreaudiodevice.rs:255] Set capture stream format
2023-03-30 06:03:58.192798 DEBUG [src/coreaudiodevice.rs:269] Opened CoreAudio capture device BlackHole 16ch
2023-03-30 06:03:58.193005 DEBUG [src/coreaudiodevice.rs:685] Capture device ready and waiting
2023-03-30 06:03:58.193017 DEBUG [src/bin.rs:333] Capture thread ready to start
2023-03-30 06:03:58.193021 DEBUG [src/bin.rs:336] Both capture and playback ready, release barrier
2023-03-30 06:03:58.193028 DEBUG [src/bin.rs:338] Supervisor loop starts now!
2023-03-30 06:03:58.193035 DEBUG [src/processing.rs:21] Processing loop starts now!
2023-03-30 06:03:58.193067 DEBUG [src/coreaudiodevice.rs:691] Capture device starts now!
2023-03-30 06:03:58.193063 DEBUG [src/coreaudiodevice.rs:424] Playback device starts now!
2023-03-30 06:03:58.227850 WARN [src/coreaudiodevice.rs:377] Playback interrupted, no data available
2023-03-30 06:03:58.249076 INFO [src/coreaudiodevice.rs:366] Restarting playback after buffer underrun
2023-03-30 06:03:59.202112 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 46641.914679986454 Hz
2023-03-30 06:03:59.202162 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 46637.0985178261 Hz
2023-03-30 06:04:00.204196 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47990.786375282536 Hz
2023-03-30 06:04:00.204254 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47989.9010932805 Hz
2023-03-30 06:04:01.205316 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48037.10980117606 Hz
2023-03-30 06:04:01.205361 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48039.12564794715 Hz
2023-03-30 06:04:02.207426 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47993.87511675185 Hz
2023-03-30 06:04:02.210763 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47992.99972319064 Hz
2023-03-30 06:04:03.209368 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48003.038107175096 Hz
2023-03-30 06:04:03.209415 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48004.163275963685 Hz
2023-03-30 06:04:04.211545 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47995.71583985653 Hz
2023-03-30 06:04:04.211599 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47993.95887211504 Hz
2023-03-30 06:04:05.213537 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48002.7508384902 Hz
2023-03-30 06:04:05.213573 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48005.23664038667 Hz
2023-03-30 06:04:06.215602 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48004.78175822602 Hz
2023-03-30 06:04:06.215667 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48001.74145147586 Hz
2023-03-30 06:04:07.217804 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47998.05529687727 Hz
2023-03-30 06:04:07.217859 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47999.08846411921 Hz
2023-03-30 06:04:08.220035 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47997.293386671074 Hz
2023-03-30 06:04:08.220082 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47998.55389995107 Hz
2023-03-30 06:04:09.222246 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48001.1170632299 Hz
2023-03-30 06:04:09.222288 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48000.84575958287 Hz
2023-03-30 06:04:10.224409 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48005.35831085534 Hz
2023-03-30 06:04:10.224475 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48003.05405068782 Hz
2023-03-30 06:04:11.226678 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 48000.07581394954 Hz
2023-03-30 06:04:11.226725 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 48001.32053100906 Hz
2023-03-30 06:04:12.229023 DEBUG [src/coreaudiodevice.rs:817] Measured sample rate is 47997.95956014534 Hz
2023-03-30 06:04:12.229081 DEBUG [src/coreaudiodevice.rs:833] Rate watcher, measured sample rate is 47998.01537461362 Hz


It appears that CamillaDSP stopped working for some reason. I attached the test.conf which is almost identical to the example given from GitHub. Could you take a look and find out what went wrong here? Thank you.

Regards,
Jay
 

Attachments

The camilladsp log looks fine. The config is a bit strange in that you specify 4 channels for the output device. The built-in speakers are stereo so that should be just 2. You can then skip the mixer. You can keep the definition, just remove the mixer step from the pipeline.
Hi Henrik,

Thank you for your suggestion. While debugging with your suggestion, I found that blackhole gain was set to 0. Now it works fine, and I can complete the multichannel multi-amping system based on my M1 Mac mini!! Thank you very much again for your helps!

Regards,
Jay
 
I was trying to figure out the Dirac's output sample rate so I can design the FIRs for my crossover, then it appears to be whatever sample rate that Dirac is fed with. Is there anything built-in to resample everything to 96kHz in CamillaDSP? I guess I need to support 44.1/88.2kHz.