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)

fluid 8th May 2021 08:45 PM

Quote:

Originally Posted by howabout (https://www.diyaudio.com/forums/pc-based/349818-camilladsp-cross-platform-iir-fir-engine-crossovers-correction-etc-post6643735.html#post6643735)
Thank you for your quick reply, I've followed the recipe on minidsp page (example 1) correcting loudspeaker phase using rephase and importing that to minidsp 2x4 hd


rePhase FIR Tool

The MiniDSP 2x4HD is very tap limited being stuck at 96K and filters in the 20 to 100Hz area need a lot more taps for the filters to be anything other than very low resolution. It is quite hard to make a filter with significant pre-ringing due to low frequency phase shifts with that many taps, but it is easy to make a filter than ruins the response due to not matching the intended target properly.

Camilla would give you the ability to use more taps. Posting in the rephase thread might get you more help on what you are aiming to do and what is going wrong.

katariat 9th May 2021 07:58 PM

@HenrikEnquist, here is the output i get when i put in the -v argument
Code:

2021-05-09 19:54:19.949 DEBUG camilladsp - Read config file Some("test_10_alsa.yml")
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.948313741843362 a2=0.9489816091639206 b0=0.00016696683013967437 b1=0.00033393366027934874 b2=0.00016696683013967437
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.948313741843362 a2=0.9489816091639206 b0=0.00016696683013967437 b1=0.00033393366027934874 b2=0.00016696683013967437
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.041 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.041 DEBUG camilladsp - Config is valid
2021-05-09 19:54:20.041 DEBUG camilladsp - Wait for config
2021-05-09 19:54:20.042 DEBUG camilladsp - Config ready
2021-05-09 19:54:20.042 DEBUG camillalib::filters - Build new pipeline
2021-05-09 19:54:20.042 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.042 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.042 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.043 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.043 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.043 DEBUG camillalib::biquad - a1=-1.948313741843362 a2=0.9489816091639206 b0=0.00016696683013967437 b1=0.00033393366027934874 b2=0.00016696683013967437
2021-05-09 19:54:20.043 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.043 DEBUG camillalib::biquad - a1=-1.948313741843362 a2=0.9489816091639206 b0=0.00016696683013967437 b1=0.00033393366027934874 b2=0.00016696683013967437
2021-05-09 19:54:20.043 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.043 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.043 DEBUG camillalib::filters - Build from config
2021-05-09 19:54:20.043 DEBUG camillalib::biquad - a1=-1.5346539759579207 a2=0.5887907064808636 b0=0.7808611706096961 b1=-1.5617223412193921 b2=0.7808611706096961
2021-05-09 19:54:20.043 DEBUG camillalib::processing - build filters, waiting to start processing loop
2021-05-09 19:54:20.043 DEBUG camillalib::alsadevice - Buffer frames 2048
2021-05-09 19:54:20.051 DEBUG camillalib::alsadevice - Opening audio device "hw:Loopback,0,0" with parameters: HwParams { channels: Ok(2), rate: "Ok(48000) Hz", format: Ok(S16LE), access: Ok(RWInterleaved), period_size: "Ok(512) frames", buffer_size: "Ok(4096) frames" }, SwParams(avail_min: Ok(512) frames, start_threshold: Ok(0) frames, stop_threshold: Ok(4096) frames)
2021-05-09 19:54:20.051 DEBUG camillalib::alsadevice - Audio device "hw:Loopback,0,0" successfully opened
2021-05-09 19:54:20.061 DEBUG camilladsp - Capture thread ready to start
2021-05-09 19:54:20.062 DEBUG camillalib::alsadevice - Opening audio device "hw:S51" with parameters: HwParams { channels: Ok(6), rate: "Ok(48000) Hz", format: Ok(S16LE), access: Ok(RWInterleaved), period_size: "Ok(256) frames", buffer_size: "Ok(2048) frames" }, SwParams(avail_min: Ok(256) frames, start_threshold: Ok(768) frames, stop_threshold: Ok(2048) frames)
2021-05-09 19:54:20.062 DEBUG camillalib::alsadevice - Audio device "hw:S51" successfully opened
2021-05-09 19:54:20.062 DEBUG camilladsp - Playback thread ready to start
2021-05-09 19:54:20.062 DEBUG camilladsp - Both capture and playback ready, release barrier
2021-05-09 19:54:20.062 DEBUG camillalib::alsadevice - Starting captureloop
2021-05-09 19:54:20.062 DEBUG camillalib::alsadevice - Starting playback loop
2021-05-09 19:54:20.063 INFO camillalib::alsadevice - Capture device supports rate adjust
2021-05-09 19:54:20.089 INFO camillalib::alsadevice - Starting playback from Prepared state


HenrikEnquist 9th May 2021 08:30 PM

That log looks like it started up just fine. Then it has to continue and give more output while running, is it doing that?

katariat 9th May 2021 08:41 PM

no, i dont see any additional activity on the screen for camilladsp. With the camailladsp running

i also tried few other things

a) ran a local wave file using VLC. In VLC, i could select the output to the loopback, no sound from the sound card
b) ran speaker-test to the loopback (-D hw:Loopback,0,0)...i could see it toggle through the 6 channels but no sound from the sound card

in both cases there was no additional log on the camilladsp terminal

i did run speakertest (-D hw:S51 -c 6) when camilladsp is not running and i do get sound toggling through the various channels

HenrikEnquist 9th May 2021 08:57 PM

Ok, if there is no more output, then camilladsp is stuck waiting for something. So we need to figure out what it's waiting for and why.
Can you try that again with -vv?
Also, can you try putting another loopback as the playback device? That won't give you any sound, it's just to see if it gets stuck or not.

katariat 9th May 2021 09:17 PM

is there a way i can pipe or send audio to the loopback to test if there is any sound coming out of the sound card. When i run the config file with -vv ....i can copy paste it but its a continuous flow of log output. As of now it seems that the config is up but i am not sure if i am able to send anything to it to process

HenrikEnquist 9th May 2021 09:31 PM

Yes with -vv it quickly gets quite long, just let it run for some 10 seconds and save it to a text file. Then and attach that instead of pasting in the post.

Speaker-test should work fine for sending some sound to the loopback.

katariat 10th May 2021 12:31 AM

1 Attachment(s)
@HenrikEnquist I ran camilladsp with -vv and captured the output in a txt file attached.

Once camilladsp started running, i did speaker-test -c 6 -D hw:Loopback,0,0

no sound came from the sound card.

HenrikEnquist 10th May 2021 06:53 AM

Ok now I see the problem! If you send the sound to "Loopback,0,0", then you have to record it from "Loopback,1,0"!


Try modifying your devices section like this:


Code:

--- 
devices:
  samplerate: 48000
  chunksize: 1024
  capture:
    type: Alsa
    channels: 2
    device: "hw:Loopback,1,0"
    format: S16LE
  playback:
    type: Alsa
    channels: 6
    device: "hw:S51"
    format: S16LE

Then run:
Code:

speaker-test -c 2 -D hw:Loopback,0,0

HenrikEnquist 11th May 2021 10:46 PM

Version 0.5.1 is ready!


New features:
  • Add JACK support.
  • Add GetSupportedDeviceTypes websocket command.
Bugfixes:
  • Handle wav files with extended fmt chunk.
  • Don't allow starting with zero channels.
Get it from here: Release v0.5.1 * HEnquist/camilladsp * GitHub
The pre-built binaries are built without JACK. See the readme for instructions on how to build a version with JACK support.


All times are GMT. The time now is 05:29 PM.


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