Audio4Linux / JDSP4Linux

An audio effect processor for PipeWire and PulseAudio clients
GNU General Public License v3.0
915 stars 35 forks source link

After reconnect device James maps to wrong output device ID #114

Closed ca5ua1 closed 1 year ago

ca5ua1 commented 1 year ago

When I reconnect bluetooth headphones there is no sound until I change manually to my headphones

 unbuffer -p /usr/bin/jamesdsp 

[00:06:14.325] [INF] Application version: 2.4-0-g49994d2 (Pipewire flavor)
[00:06:14.326] [INF] Qt library version: 5.15.9
[00:06:14.326] [DBG] Launched by system session manager: no
[00:06:14.326] [DBG] Environment id: 3e59531ced2848238b6cd8d3b90644b2
[00:06:14.326] [INF] SingleInstanceMonitor::isServiceReady: Service registration successful
[00:06:14.366] [INF] ============ Initializing audio service ============
[00:06:14.366] [INF] Compiled with PipeWire support.
[00:06:14.366] [INF] This application flavor does not support PulseAudio.
[00:06:14.366] [INF] If you want to use this application with PulseAudio, you need to recompile this app with proper support enabled.
[00:06:14.366] [INF] Refer to the README for more detailed information.
[00:06:14.366] [INF]
[00:06:14.366] [DBG] MainWindow::ctor: Blocklisted apps:
[00:06:14.366] [DBG] MainWindow::ctor: Blocklist mode: block
[00:06:14.366] [DBG] PwPipelineManager: compiled with pipewire: 0.3.60
[00:06:14.366] [DBG] PwPipelineManager: linked to pipewire: 0.3.70
[00:06:14.367] [DBG] PwPipelineManager: core version: 0.3.70
[00:06:14.368] [DBG] PwPipelineManager: core name: pipewire-0
[00:06:14.368] [DBG] PwPipelineManager: found metadata: settings
[00:06:14.368] [DBG] PwPipelineManager: found metadata: default
[00:06:14.368] [DBG] PwPipelineManager: found metadata: route-settings
[00:06:14.368] [DBG] PwPipelineManager: Audio/Source 46 alsa_input.usb-MUSIC-BOOST_ES212_USB_Microphone_ES-212-00.mono-fallback was added
[00:06:14.368] [DBG] PwPipelineManager: Audio/Sink 51 alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo was added
[00:06:14.368] [DBG] PwPipelineManager: Audio/Sink 50 alsa_output.pci-0000_2d_00.1.hdmi-stereo was added
[00:06:14.368] [DBG] PwPipelineManager: Stream/Output/Audio 260 Music Player Daemon was added
[00:06:14.368] [DBG] PwPipelineManager: Audio/Sink 156 bluez_output.14_3F_A6_81_52_EB.1 was added
[00:06:14.368] [DBG] PwPipelineManager: Music Player Daemon port 114 is connected to bluez_output.14_3F_A6_81_52_EB.1 port 221
[00:06:14.368] [DBG] PwPipelineManager: Music Player Daemon port 245 is connected to bluez_output.14_3F_A6_81_52_EB.1 port 58
[00:06:14.368] [DBG] PwPipelineManager: Audio/Sink 262 jamesdsp_sink was added
[00:06:14.368] [DBG] PwPipelineManager: new metadata property: 0, default.configured.audio.sink, Spa:String:JSON, { "name": "jamesdsp_sink" }
[00:06:14.368] [DBG] PwPipelineManager: new metadata property: 0, default.configured.audio.source, Spa:String:JSON, {"name":"easyeffects_source"}
[00:06:14.368] [DBG] PwPipelineManager: new metadata property: 0, default.audio.sink, Spa:String:JSON, {"name":"bluez_output.14_3F_A6_81_52_EB.1"}
[00:06:14.368] [DBG] PwPipelineManager: new metadata property: 0, default.audio.source, Spa:String:JSON, {"name":"alsa_input.usb-MUSIC-BOOST_ES212_USB_Microphone_ES-212-00.mono-fallback"}
[00:06:14.368] [DBG] PwPipelineManager: new metadata property: 260, target.node, Spa:Id, 273
[00:06:14.371] [DBG] PwPipelineManager: new metadata property: 0, default.audio.sink, Spa:String:JSON, {"name":"jamesdsp_sink"}
[00:06:14.374] [DBG] PwPipelineManager: Music Player Daemon port 114 is connected to jamesdsp_sink port 442
[00:06:14.374] [DBG] PwPipelineManager: Music Player Daemon port 245 is connected to jamesdsp_sink port 226
[00:06:14.384] [DBG] PwPipelineManager: Filter jdsp_PwJamesDspPlugin_JamesDsp, id = 267, was added
*** pw_filter_add_listener called from wrong context, check thread and locking: Operation not permitted
[00:06:14.386] [DBG] PwJamesDspPlugin: JamesDsp successfully connected to pipewire graph
[00:06:14.387] [DBG] FilterContainer:  link from node 267 to output device 4294967295 failed
kf.notifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
[00:06:14.477] [DBG] ConfigContainer::getString: Key 'Exec' not found
[00:06:14.490] [INF] ============ Initializing user interface ============
[00:06:14.495] [DBG] DspHost::update called
[00:06:14.496] [DBG] DspHost::update: Property changed: bass_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: bass_maxgain -> QVariant(QString, "5")
[00:06:14.496] [DBG] DspHost::update: Property changed: compression_aggressiveness -> QVariant(QString, "800")
[00:06:14.496] [DBG] DspHost::update: Property changed: compression_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: compression_maxatk -> QVariant(QString, "30")
[00:06:14.496] [DBG] DspHost::update: Property changed: compression_maxrel -> QVariant(QString, "200")
[00:06:14.496] [DBG] DspHost::update: Property changed: convolver_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: convolver_file -> QVariant(QString, "\"\"")
[00:06:14.496] [DBG] DspHost::update: Property changed: convolver_optimization_mode -> QVariant(QString, "0")
[00:06:14.496] [DBG] DspHost::update: Property changed: convolver_waveform_edit -> QVariant(QString, "\"-80;-100;0;0;0;0\"")
[00:06:14.496] [DBG] DspHost::update: Property changed: crossfeed_bs2b_fcut -> QVariant(QString, "700")
[00:06:14.496] [DBG] DspHost::update: Property changed: crossfeed_bs2b_feed -> QVariant(QString, "60")
[00:06:14.496] [DBG] DspHost::update: Property changed: crossfeed_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: crossfeed_mode -> QVariant(QString, "0")
[00:06:14.496] [DBG] DspHost::update: Property changed: ddc_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: ddc_file -> QVariant(QString, "\"\"")
[00:06:14.496] [DBG] DspHost::update: Property changed: graphiceq_enable -> QVariant(bool, true)
[00:06:14.496] [DBG] DspHost::update: Property changed: graphiceq_param -> QVariant(QString, "\"GraphicEQ: 20 -5.7; 21 -5.7; 22 -5.8; 23 -5.8; 24 -5.9; 26 -6; 27 -6.1; 29 -6.2; 30 -6.3; 32 -6.5; 34 -6.6; 36 -6.9; 38 -7.1; 40 -7.4; 43 -7.7; 45 -7.9; 48 -8.2; 50 -8.4; 53 -8.6; 56 -8.8; 59 -9; 63 -9.2; 66 -9.4; 70 -9.5; 74 -9.6; 78 -9.7; 83 -9.7; 87 -9.7; 92 -9.7; 97 -9.8; 103 -9.8; 109 -9.8; 115 -9.8; 121 -9.8; 128 -9.8; 136 -9.8; 143 -9.8; 151 -9.6; 160 -9.5; 169 -9.5; 178 -9.4; 188 -9.3; 199 -9.3; 210 -9.3; 222 -9.3; 235 -9.3; 248 -9.2; 262 -9.1; 277 -9.1; 292 -8.9; 309 -8.8; 326 -8.7; 345 -8.5; 364 -8.4; 385 -8.3; 406 -8.2; 429 -8.1; 453 -8; 479 -7.9; 506 -7.8; 534 -7.7; 565 -7.5; 596 -7.3; 630 -7.1; 665 -6.8; 703 -6.5; 743 -6.1; 784 -5.6; 829 -5.2; 875 -4.8; 924 -4.4; 977 -4.3; 1032 -4.7; 1090 -5.3; 1151 -5.8; 1216 -6.1; 1284 -6.2; 1357 -6.2; 1433 -6.2; 1514 -6.3; 1599 -6.4; 1689 -6.6; 1784 -6.8; 1885 -7.1; 1991 -7.2; 2103 -7.3; 2221 -7.2; 2347 -6.8; 2479 -6.4; 2618 -5.7; 2766 -4.7; 2921 -3.6; 3086 -2.7; 3260 -2.1; 3443 -1.9; 3637 -1.8; 3842 -1.9; 4058 -2.1; 4287 -2.6; 4528 -3.3; 4783 -4.1; 5052 -4.4; 5337 -4.2; 5637 -4; 5955 -3.7; 6290 -3.3; 6644 -2.9; 7018 -2.7; 7414 -2.8; 7831 -2.9; 8272 -3.4; 8738 -4.5; 9230 -5.3; 9749 -5.5; 10298 -4.9; 10878 -3.6; 11490 -2.1; 12137 -0.7; 12821 -0.2; 13543 -0.2; 14305 -0.2; 15110 -0.2; 15961 -0.2; 16860 -0.2; 17809 -0.2; 18812 -0.2; 19871 -0.2\"")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_bassboost -> QVariant(QString, "0.25000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_decay -> QVariant(QString, "2.08000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_delay -> QVariant(QString, "0.00000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_enable -> QVariant(bool, false)
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_finaldry -> QVariant(QString, "-7.00000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_finalwet -> QVariant(QString, "-9.00000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lfo_spin -> QVariant(QString, "0.70000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lfo_wander -> QVariant(QString, "0.30000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lpf_bass -> QVariant(QString, "600")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lpf_damp -> QVariant(QString, "9000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lpf_input -> QVariant(QString, "18000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_lpf_output -> QVariant(QString, "17000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_osf -> QVariant(QString, "1")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_reflection_amount -> QVariant(QString, "0.30000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_reflection_factor -> QVariant(QString, "1.00000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_reflection_width -> QVariant(QString, "0.70000")
[00:06:14.496] [DBG] DspHost::update: Property changed: reverb_wet -> QVariant(QString, "-8.00000")
[00:06:14.497] [DBG] DspHost::update: Property changed: reverb_width -> QVariant(QString, "1.00000")
[00:06:14.497] [DBG] DspHost::update: Property changed: liveprog_enable -> QVariant(bool, false)
[00:06:14.497] [DBG] DspHost::update: Property changed: liveprog_file -> QVariant(QString, "\"\"")
[00:06:14.497] [DBG] DspHost::update: Property changed: master_enable -> QVariant(bool, true)
[00:06:14.497] [DBG] DspHost::update: Property changed: master_limrelease -> QVariant(QString, "60")
[00:06:14.497] [DBG] DspHost::update: Property changed: master_limthreshold -> QVariant(QString, "0")
[00:06:14.497] [DBG] DspHost::update: Property changed: master_postgain -> QVariant(QString, "0")
[00:06:14.497] [DBG] DspHost::update: Property changed: stereowide_enable -> QVariant(bool, false)
[00:06:14.497] [DBG] DspHost::update: Property changed: stereowide_level -> QVariant(QString, "60")
[00:06:14.497] [DBG] DspHost::update: Property changed: tone_enable -> QVariant(bool, false)
[00:06:14.497] [DBG] DspHost::update: Property changed: tone_eq -> QVariant(QString, "\"25.0;40.0;63.0;100.0;160.0;250.0;400.0;630.0;1000.0;1600.0;2500.0;4000.0;6300.0;10000.0;16000.0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0\"")
[00:06:14.498] [DBG] DspHost::update: Property changed: tone_filtertype -> QVariant(QString, "0")
[00:06:14.498] [DBG] DspHost::update: Property changed: tone_interpolation -> QVariant(QString, "0")
[00:06:14.499] [DBG] DspHost::update: Property changed: tube_enable -> QVariant(bool, false)
[00:06:14.499] [DBG] DspHost::update: Property changed: tube_pregain -> QVariant(QString, "200")
[00:06:14.499] [ERR] DspHost::updateConvolver: Impulse response is empty. Disabling convolver.
[00:06:14.499] [DBG] DspHost::updateConvolver: Unable to read impulse response. No file selected or abnormal channel count?
[00:06:14.499] [DBG] DspHost::refreshLiveprog: Referenced file does not exist anymore. Disabling liveprog.
QFSFileEngine::open: No file name specified
[00:06:14.499] [ERR] DspHost::refreshLiveprog: Cannot open file path. Disabling liveprog.
QIODevice::read (QFile, ""): device not open
[00:06:14.499] [DBG] DspHost::refreshLiveprog: @init section not found
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
[00:06:14.681] [DBG] AssetManager::extractGroup: 5 assets extracted (type 0)
[00:06:14.681] [DBG] AssetManager::extractGroup: 3 assets extracted (type 1)
[00:06:14.919] [INF] MainWindow::ctor: UI initialized
[00:06:15.062] [DBG] AppConfig::isAppBlocked("Music Player Daemon") -> false
[00:06:15.062] [DBG] PipewireAudioService: new default output device: bluez_output.14_3F_A6_81_52_EB.1
[00:06:15.063] [DBG] PwPipelineManager: new metadata property: 260, target.node, Spa:Id, 262
[00:06:23.541] [DBG] ConfigContainer::getString: Key 'Exec' not found
[00:06:52.011] [DBG] PwPipelineManager: Audio/Sink bluez_output.14_3F_A6_81_52_EB.1 was removed
[00:06:52.011] [DBG] PwPipelineManager: Remote error res: No such file or directory
[00:06:52.011] [DBG] PwPipelineManager: Remote error message: unknown resource 72 op:2
[00:06:53.442] [DBG] PwPipelineManager: Audio/Sink 214 bluez_output.14_3F_A6_81_52_EB.1 was added
[00:06:54.134] [DBG] PwPipelineManager: Audio/Sink bluez_output.14_3F_A6_81_52_EB.1 was removed
[00:07:00.537] [DBG] PwPipelineManager: Audio/Sink 211 bluez_output.14_3F_A6_81_52_EB.1 was added
[00:07:07.750] [DBG] FilterContainer:  link from node 267 to output device 156 failed
[00:07:28.297] [DBG] FilterContainer:  link from node 267 to output device 156 failed
[00:07:29.168] [DBG] FilterContainer:  link from node 267 to output device 156 failed

 pacman -Q pipewire jamesdsp     
pipewire 1:0.3.70-1
jamesdsp 2.4-1.1

 uname -a                   
Linux Casual-PC 6.2.13-zen-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:49:44 +0000 x86_64 GNU/Linux
timschneeb commented 1 year ago

This should be fixed by https://github.com/Audio4Linux/JDSP4Linux/releases/tag/2.5.0 (if not, please re-open).