linuxonly
Member
Thread Starter
- Joined
- Jul 27, 2024
- Posts
- 112
More
- Preamp, Processor or Receiver
- Logitech Z906
- DAC
- AMD FCH Azalia
- Computer Audio
- SPDIF output with alsa, pipewire, wireplumber on Fedora 40
- Streaming Equipment
- Kodi
- Front Height Speakers
- 33 in
- Middle Height Speakers
- 30 in
- Rear Height Speakers
- 57 in
- Video Display Device
- X11/VGA + X11/DVI
Hi again,
Another problematic config. I can see the mysink devices in pavucontrol, the camilladsp too, I've selected the mysinc one as default output but not a sound is ever going to the SPDIF output whereas it worked perfectly fine with Easyeffects (disabled for those tests)
Instructions:
Kodi audio setup:
CDSP setup:
CDSP log:
No activity in the playback tab for CDSP...
Another problematic config. I can see the mysink devices in pavucontrol, the camilladsp too, I've selected the mysinc one as default output but not a sound is ever going to the SPDIF output whereas it worked perfectly fine with Easyeffects (disabled for those tests)
Instructions:
Code:
Pipewire
Pipewire implements both the PulseAudio and Jack APIs. It is therefore supported both via the Pulse and the Jack backends, and there is no need for a specific Pipewire backend.
Pipewire supports creating null-sink like PulseAudio. Create it with:
pactl load-module module-null-sink sink_name=MySink object.linger=1 media.class=Audio/Sink
List sources and sinks with:
pw-cli ls Node
This will list all devices, and the null-sink should be included like this:
id 75, type PipeWire:Interface:Node/3
factory.id = "18"
node.description = "MySink Audio/Sink sink"
node.name = "MySink"
media.class = "Audio/Sink"
This device can be set as the default output in the Gnome sound settings, meaning all desktop audio will use it. The audio sent to this device can then be captured from the monitor output named "MySink.monitor" using the PulseAudio backend.
Kodi audio setup:
Code:
2024-09-13 11:06:36.695 T:41 info <general>: Found 1 Lists of Devices
2024-09-13 11:06:36.695 T:41 info <general>: Enumerated PIPEWIRE devices:
2024-09-13 11:06:36.695 T:41 info <general>: Device 1
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceName : Default
2024-09-13 11:06:36.695 T:41 info <general>: m_displayName : Default
2024-09-13 11:06:36.695 T:41 info <general>: m_displayNameExtra: Default Output Device (PIPEWIRE)
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-09-13 11:06:36.695 T:41 info <general>: m_channels : FL, FR
2024-09-13 11:06:36.695 T:41 info <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2024-09-13 11:06:36.695 T:41 info <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S24NE3,AE_FMT_FLOAT
2024-09-13 11:06:36.695 T:41 info <general>: m_streamTypes : No passthrough capabilities
2024-09-13 11:06:36.695 T:41 info <general>: Device 2
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceName : alsa_output.pci-0000_00_14.2.iec958-stereo
2024-09-13 11:06:36.695 T:41 info <general>: m_displayName : Audio interne Stéréo numérique (IEC958)
2024-09-13 11:06:36.695 T:41 info <general>: m_displayNameExtra: Audio interne Stéréo numérique (IEC958) (PIPEWIRE)
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceType : AE_DEVTYPE_IEC958
2024-09-13 11:06:36.695 T:41 info <general>: m_channels : FL, FR
2024-09-13 11:06:36.695 T:41 info <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2024-09-13 11:06:36.695 T:41 info <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S24NE3,AE_FMT_FLOAT,AE_FMT_RAW
2024-09-13 11:06:36.695 T:41 info <general>: m_streamTypes : STREAM_TYPE_DTS_512,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_AC3
2024-09-13 11:06:36.695 T:41 info <general>: Device 3
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceName : MySink
2024-09-13 11:06:36.695 T:41 info <general>: m_displayName : MySink Audio/Sink sink
2024-09-13 11:06:36.695 T:41 info <general>: m_displayNameExtra: MySink Audio/Sink sink (PIPEWIRE)
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-09-13 11:06:36.695 T:41 info <general>: m_channels : FL, FR
2024-09-13 11:06:36.695 T:41 info <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2024-09-13 11:06:36.695 T:41 info <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S24NE3,AE_FMT_FLOAT
2024-09-13 11:06:36.695 T:41 info <general>: m_streamTypes : No passthrough capabilities
2024-09-13 11:06:36.695 T:41 info <general>: Device 4
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceName : easyeffects_sink
2024-09-13 11:06:36.695 T:41 info <general>: m_displayName : Easy Effects Sink
2024-09-13 11:06:36.695 T:41 info <general>: m_displayNameExtra: Easy Effects Sink (PIPEWIRE)
2024-09-13 11:06:36.695 T:41 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-09-13 11:06:36.695 T:41 info <general>: m_channels : FL, FR
2024-09-13 11:06:36.695 T:41 info <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2024-09-13 11:06:36.695 T:41 info <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S24NE3,AE_FMT_FLOAT
2024-09-13 11:06:36.695 T:41 info <general>: m_streamTypes : No passthrough capabilities
CDSP setup:
Code:
devices:
samplerate: 48000
chunksize: 2048
queuelimit: 4
enable_rate_adjust: true
adjust_period: 10.0
silence_threshold: -80.0
silence_timeout: 60.0
target_level: 0
capture:
channels: 2
device: "MySink.monitor"
format: S32LE
type: Pulse
playback:
channels: 2
device: "MySink"
format: S32LE
type: Pulse
CDSP log:
Code:
$ camilladsp -v ./.config/.camilladsp/stereo.yml
2024-09-13 11:25:06.873557 INFO [src/bin.rs:683] CamillaDSP version 2.0.3
2024-09-13 11:25:06.873584 INFO [src/bin.rs:684] Running on linux, x86_64
2024-09-13 11:25:06.873602 DEBUG [src/bin.rs:728] Loaded state: None
2024-09-13 11:25:06.873608 DEBUG [src/bin.rs:738] Using default initial volume
2024-09-13 11:25:06.873612 DEBUG [src/bin.rs:755] Using default initial mute
2024-09-13 11:25:06.873616 DEBUG [src/bin.rs:765] Initial mute: [false, false, false, false, false]
2024-09-13 11:25:06.873620 DEBUG [src/bin.rs:766] Initial volume: [0.0, 0.0, 0.0, 0.0, 0.0]
2024-09-13 11:25:06.873625 DEBUG [src/bin.rs:768] Read config file Some("./.config/.camilladsp/stereo.yml")
2024-09-13 11:25:06.874134 DEBUG [src/config.rs:1549] 2_sept_730hz-48000.wav is relative
2024-09-13 11:25:06.874148 DEBUG [src/config.rs:1553] Using 2_sept_730hz-48000.wav found relative to config file dir
2024-09-13 11:25:06.874154 DEBUG [src/config.rs:1549] 2_sept_730hz-48000.wav is relative
2024-09-13 11:25:06.874161 DEBUG [src/config.rs:1553] Using 2_sept_730hz-48000.wav found relative to config file dir
2024-09-13 11:25:06.878464 DEBUG [src/filters.rs:178] Read raw data from: '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, number of coeffs: 131072
2024-09-13 11:25:06.879040 DEBUG [src/filters.rs:337] Read wav file '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, channel: 0 of 2, samplerate: 48000, length: 65536
2024-09-13 11:25:06.883703 DEBUG [src/filters.rs:178] Read raw data from: '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, number of coeffs: 131072
2024-09-13 11:25:06.884708 DEBUG [src/filters.rs:337] Read wav file '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, channel: 1 of 2, samplerate: 48000, length: 65536
2024-09-13 11:25:06.884768 DEBUG [src/bin.rs:808] Config is valid
2024-09-13 11:25:06.885177 DEBUG [src/bin.rs:994] Wait for config
2024-09-13 11:25:06.885197 DEBUG [src/bin.rs:1010] Waiting to receive a command
2024-09-13 11:25:06.885202 DEBUG [src/bin.rs:1013] Config change command received
2024-09-13 11:25:06.885206 DEBUG [src/bin.rs:999] New config is available and there are no queued commands, continuing
2024-09-13 11:25:06.885209 DEBUG [src/bin.rs:1036] Config ready, start processing
2024-09-13 11:25:06.885383 DEBUG [src/bin.rs:157] Using channels [true, true]
2024-09-13 11:25:06.885399 WARN [src/audiodevice.rs:523] Needless 1:1 sample rate conversion active. Not needed since enable_rate_adjust=False
2024-09-13 11:25:06.886466 DEBUG [src/audiodevice.rs:465] Creating asynchronous resampler with parameters: SincInterpolationParameters { sinc_len: 64, f_cutoff: 0.91563815, oversampling_factor: 1024, interpolation: Linear, window: Hann2 }
2024-09-13 11:25:06.886574 DEBUG [src/filters.rs:488] Build new pipeline
2024-09-13 11:25:06.886648 DEBUG [src/filters.rs:364] Build filter group from config
2024-09-13 11:25:06.897052 DEBUG [src/filters.rs:178] Read raw data from: '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, number of coeffs: 131072
2024-09-13 11:25:06.899041 DEBUG [src/filters.rs:337] Read wav file '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, channel: 0 of 2, samplerate: 48000, length: 65536
2024-09-13 11:25:06.903618 DEBUG [src/fftconv.rs:50] Conv fir_l is using 32 segments
2024-09-13 11:25:06.908306 DEBUG [src/filters.rs:364] Build filter group from config
2024-09-13 11:25:06.911643 DEBUG [src/filters.rs:178] Read raw data from: '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, number of coeffs: 131072
2024-09-13 11:25:06.912064 DEBUG [src/filters.rs:337] Read wav file '/home/shizuma/.config/.camilladsp/2_sept_730hz-48000.wav', format: FLOAT32LE, channel: 1 of 2, samplerate: 48000, length: 65536
2024-09-13 11:25:06.915593 DEBUG [src/fftconv.rs:50] Conv fir_r is using 32 segments
2024-09-13 11:25:06.918439 DEBUG [src/processing.rs:19] build filters, waiting to start processing loop
2024-09-13 11:25:06.997708 DEBUG [src/bin.rs:265] Playback thread ready to start
2024-09-13 11:25:07.093143 DEBUG [src/bin.rs:275] Capture thread ready to start
2024-09-13 11:25:07.093175 DEBUG [src/bin.rs:278] Both capture and playback ready, release barrier
2024-09-13 11:25:07.093195 DEBUG [src/bin.rs:280] Supervisor loop starts now!
2024-09-13 11:25:07.093246 DEBUG [src/processing.rs:21] Processing loop starts now!
2024-09-13 11:25:07.093404 DEBUG [src/pulsedevice.rs:319] starting captureloop
2024-09-13 11:25:07.093620 DEBUG [src/pulsedevice.rs:168] starting playback loop
2024-09-13 11:23:17.060531 WARN [src/conversions.rs:65] Clipping detected, 21 samples clipped, peak +2.39 dB (131.6%)
2024-09-13 11:23:17.104830 WARN [src/conversions.rs:65] Clipping detected, 19 samples clipped, peak +2.39 dB (131.7%)
2024-09-13 11:23:17.785997 WARN [src/conversions.rs:65] Clipping detected, 31 samples clipped, peak +1.26 dB (115.6%)
2024-09-13 11:23:18.340718 WARN [src/conversions.rs:65] Clipping detected, 52 samples clipped, peak +2.09 dB (127.1%)
2024-09-13 11:23:18.383823 WARN [src/conversions.rs:65] Clipping detected, 54 samples clipped, peak +1.20 dB (114.8%)
2024-09-13 11:23:18.509934 WARN [src/conversions.rs:65] Clipping detected, 38 samples clipped, peak +4.03 dB (159.0%)
q^C2024-09-13 11:25:31.272835 DEBUG [src/bin.rs:835] Received signal: 2
2024-09-13 11:25:31.272958 INFO [src/bin.rs:868] Shutting down
2024-09-13 11:25:31.272984 DEBUG [src/bin.rs:244] Exit requested...
2024-09-13 11:25:31.286479 DEBUG [src/pulsedevice.rs:335] Exit message received, sending EndOfStream
2024-09-13 11:25:31.288132 DEBUG [src/bin.rs:1038] Processing ended with status Ok(Exit)
2024-09-13 11:25:31.288158 DEBUG [src/bin.rs:1048] Exiting
No activity in the playback tab for CDSP...