Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[split] moOde 8.3.0 and CamillaDSP Volume
#1
Hi,
I updated to 8.3.0 today, it was available via the System menu.
I was looking forward to the CamillaDSP Volume and Loudness functions, so I enabled the Volume option. I found that the volume was louder than before (i.e. MPD Software controlled), and that there are large jumps in the volume when going from one radio station to another one. So for now I reverted to MPD, I'll try the loudness later.
Another remark is that the dropdown for the Camilla selection has issues with scrolling on my iPad (Air 2) and iPhone (SE 2020): scrolling often blocks, and the options at the end of the list are hidden by the control panel at the bottom and can't be selected.

Thanks for the great moOde,
Willem
running moOde on an Allo USBridge Sig
W
Reply
#2
I too have found alarming jumps in volume with the Camilla Loudness or Volume engaged. Just pausing a track resulted in a big jump in volume when resuming play.
Allo USBridge Sig, SMSL Sanskrit Mk.ll.
Reply
#3
The CamillaDSP 64-bit volume control uses a logarithmic curve that is different than the one used by MPD. It's quite steep from 0 - 20 and then tapers off. MPD's curve is much less steep from 0 - 20.

I can repro the scroll behavior in the Library views where the Playbar is at the bottom. I'll add to the TODO list to investigate.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
The issue with Camilla Volume is, for me at least, more than just the difference between the curves. If I play at low volume, pause play and then begin play again, the sound returns at much higher volume than before.
Reply
#5
(03-17-2023, 11:32 AM)jonners Wrote: The issue with Camilla Volume is, for me at least, more than just the difference between the curves. If I play at low volume, pause play and then begin play again, the sound returns at much higher volume than before.

It works fine on my end on two different systems.

Post output from the command below


Code:
ls -l /var/lib/cdsp/
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Code:
Last login: Fri Mar 17 16:35:05 2023 from fe80::872:a149:5b3b:5e0%eth0
pi@moode:~ $ ls -l /var/lib/cdsp/
total 4
-rw-r--r-- 1 mpd root 20 Mar 17 16:39 camilladsp_volume_state
pi@moode:~ $
(03-17-2023, 12:24 PM)Tim Curtis Wrote:
(03-17-2023, 11:32 AM)jonners Wrote: The issue with Camilla Volume is, for me at least, more than just the difference between the curves. If I play at low volume, pause play and then begin play again, the sound returns at much higher volume than before.

It works fine on my end on two different systems.

Post output from the command below


Code:
ls -l /var/lib/cdsp/
Reply
#7
That looks ok,

Maybe there is something unique about your configuration. Feel free to post the startup log and I'll have a look.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(03-17-2023, 05:17 PM)Tim Curtis Wrote: That looks ok,

Maybe there is something unique about your configuration. Feel free to post the startup log and I'll have a look.

20230317 190725 worker: --
20230317 190725 worker: -- Start moOde 8 series
20230317 190725 worker: --
20230317 190725 worker: Successfully daemonized
20230317 190725 worker: Boot config backed up
20230317 190729 worker: File check (OK)
20230317 190731 worker: Session vacuumed
20230317 190731 worker: Session loaded
20230317 190731 worker: Debug logging (OFF)
20230317 190731 worker: --
20230317 190731 worker: -- Audio debug
20230317 190731 worker: --
20230317 190731 worker: ALSA cards: (0:b1 | 1:Headphones | 2:Audio | 3:empty
20230317 190731 worker: MPD config: (2:iFi (by AMR) HD USB Audio | mixerSadiFi (by AMR) HD USB Audio ) | card:2)
20230317 190731 worker: ALSA mixer actual (iFi (by AMR) HD USB Audio )
20230317 190731 worker: ALSA iFi (by AMR) HD USB Audio volume set to (0%)
20230317 190731 worker: --
20230317 190731 worker: -- System
20230317 190731 worker: --
20230317 190733 getMpdSock(): Connection to MPD failed
20230317 190733 getMpdSock(): Connection to MPD failed
20230317 190734 worker: Host      (moode)
20230317 190734 worker: Hardware  (Allo USBridge SIG [CM3+ Lite 1GB v1.0])
20230317 190750 worker: moOde     (8.3.0 2023-03-14)
20230317 190750 worker: RaspiOS   (11.5)
20230317 190750 worker: Kernel    (5.15.84-v8+ #1613)
20230317 190750 worker: Procarch  (aarch64, 64-bit)
20230317 190750 worker: MPD ver   (0.23.12)
20230317 190750 worker: CPU gov   (ondemand)
20230317 190750 worker: USB boot  (not available)
20230317 190750 worker: File sys  (expanded)
20230317 190750 worker: HDMI port (Off)
20230317 190750 worker: Sys LED0  (On)
20230317 190750 worker: Sys LED1  (sysclass does not exist)
20230317 190750 worker: --
20230317 190750 worker: -- Network
20230317 190750 worker: --
20230317 190750 worker: eth0 adapter exists
20230317 190750 worker: eth0 address check (On)
20230317 190750 worker: eth0 address check (up to 120 secs)
20230317 190750 worker: IP addr (192.168.8.179)
20230317 190750 worker: Netmask (255.255.255.0)
20230317 190750 worker: Gateway (192.168.8.1)
20230317 190750 worker: Pri DNS (192.168.8.1)
20230317 190750 worker: Domain  (lan)
20230317 190750 worker: wlan0 adapter does not exist
20230317 190750 worker: --
20230317 190750 worker: -- Software update
20230317 190750 worker: --
20230317 190750 worker: Automatic check (On)
20230317 190750 worker: Checking for available update...
20230317 190751 worker: Software is up to date
20230317 190751 worker: --
20230317 190751 worker: -- Audio config
20230317 190751 worker: --
20230317 190751 worker: MPD conf update skipped (USB device)
20230317 190751 worker: ALSA card number (2)
20230317 190751 worker: MPD audio output (iFi (by AMR) HD USB Audio)
20230317 190751 worker: Audio formats (S16_LE, S32_LE, SPECIAL, S24_3LE, DSD_U32_BE)
20230317 190751 worker: ALSA mixer name (iFi (by AMR) HD USB Audio )
20230317 190751 worker: MPD mixer type (CamillaDSP)
20230317 190751 worker: Hdwr volume controller exists
20230317 190751 worker: Max ALSA volume (100%)
20230317 190751 worker: ALSA output mode (Default: plughw)
20230317 190751 worker: ALSA loopback (Off)
20230317 190751 worker: Reset renderer active flags
20230317 190752 worker: CamillaDSP (loudness.yml)
20230317 190752 worker: CamillaDSP volume sync (on)
20230317 190752 worker: --
20230317 190752 worker: -- File sharing
20230317 190752 worker: --
20230317 190753 worker: SMB file sharing (On)
20230317 190753 worker: NFS file sharing (Off)
20230317 190753 worker: --
20230317 190753 worker: -- MPD startup
20230317 190753 worker: --
20230317 190754 worker: MPD started
20230317 190754 worker: MPD accepting connections
20230317 190754 worker: MPD output 1 ALSA Default (On)
20230317 190754 worker: MPD output 2 ALSA Bluetooth (Off)
20230317 190754 worker: MPD output 3 HTTP Server (Off)
20230317 190754 worker: MPD crossfade (off)
20230317 190754 worker: MPD ignore CUE files (yes)
20230317 190754 worker: --
20230317 190754 worker: -- Music sources
20230317 190754 worker: --
20230317 190754 worker: USB sources
20230317 190754 worker: DISCL
20230317 190754 worker: DISCL_
20230317 190754 worker: NAS sources
20230317 190754 worker: None configured
20230317 190754 worker: --
20230317 190754 worker: -- Feature availability
20230317 190754 worker: --
20230317 190754 worker: Input select (available)
20230317 190754 worker: Input (MPD)
20230317 190755 worker: Output (iFi (by AMR) HD USB Audio)
20230317 190755 worker: Bluetooth (available)
20230317 190755 worker: AirPlay renderer (available)
20230317 190755 worker: Spotify renderer (available: started)
20230317 190755 worker: Squeezelite (available)
20230317 190755 worker: RoonBridge renderer (not installed)
20230317 190755 worker: Multiroom sender (available)
20230317 190755 worker: Multiroom receiver (available)
20230317 190755 worker: UPnP renderer (available)
20230317 190755 worker: DLNA server (available)
20230317 190755 worker: GPIO button handler (available)
20230317 190755 worker: Stream recorder (available: not installed)
20230317 190755 worker: HTTPS-Only mode (n/a)
20230317 190755 worker: --
20230317 190755 worker: -- Other
20230317 190755 worker: --
20230317 190755 worker: USB volume knob (Off)
20230317 190755 worker: USB auto-mounter (udisks-glue)
20230317 190756 worker: Saved MPD vol level (0)
20230317 190756 worker: Preamp volume level (0)
20230317 190756 worker: MPD volume level (26) restored
20230317 190756 worker: ALSA iFi (by AMR) HD USB Audio volume (100%)
20230317 190756 worker: Auto-play (Off)
20230317 190756 worker: LocalUI (Off)
20230317 190756 worker: Automatic CoverView (Off)
20230317 190756 worker: On-screen keyboard (Off)
20230317 190756 worker: Library scope (all)
20230317 190756 worker: View reset to playback
20230317 190756 worker: Maintenance interval (360 minutes)
20230317 190756 worker: Screen saver activation (Never)
20230317 190756 worker: Session permissions (OK)
20230317 190756 worker: Mount monitor (Off)
20230317 190756 worker: Watchdog started
20230317 190756 worker: Ready
Reply
#9
I don't see anything suspicious in the log.

The basic moving parts of the MPD to CamillaDSP volume proxy are below.

Code:
1. mpd2cdspvolume service. Monitors MPD events and proxies volume changes to CamillaDSP
systemctl status mpd2cdspvolume

2. Volume state file. Maintains CamillaDSP volume level in dB and is used when resuming playback or after restarting.
cat /var/lib/cdsp/camilladsp_volume_state

3. MPD mixer type = null. This results in MPD continuing to emit volume change events but not actually changing the volume.
cat /etc/mpdconf
audio_output {
type "alsa"
name "ALSA Default"
device "_audioout"
mixer_type "null"
dop "no"
stop_dsd_silence "no"
thesycon_dsd_workaround "no"
}

You could try monitoring the CamillaDSP volume slider by opening the Pipeline editor in a separate tab or window. 

It should change as you change the moOde knob. When pausing or stopping play the slider should disappear. It should reappear and reset to the last volume level after resuming.

   
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
Thanks Tim, I'll take a look.
Reply


Forum Jump: