Closed maxdd closed 3 years ago
by using pulseaudio
version: '3.2'
services:
volumio:
image: jbonjean/volumio
container_name: volumio
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- /media/ubuntu/E432F8DB32F8B420/Audio/:/var/lib/mpd/music/Audio/:ro
- /home/ubuntu/Music/:/var/lib/mpd/music/Music/:ro
- /home/ubuntu/docker/volumio/data/:/data
- /run/user/1000/pulse:/pulse:ro
environment:
- HOST=http://192.168.1.52:3000
- PULSE_SERVER=unix:/pulse/native
- PULSE_COOKIE_DATA=home/ubuntu/.config/pulse/cookie
- HOST_USER=1000:1000
- AUDIO_OUTPUT=pulse
devices:
- /dev/snd:/dev/snd
i was able to make it work, is there a difference/reason?
The only issue i'm facing is that the DAC is reporting PCM 44.1Khz or 48Khz no matter what kind of song i play.
I've tried both DSD Direct as well as DoP with plenty DSD files but no luck.
Is there anything else i might want to do on the docker configuration?
If i play a 192Khz/24bit songs and use cat /proc/asound/D50/pcm0p/sub0/hw_params
from my host machine the output is
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 44100
buffer_size: 88200
I'm also encountering plugin issues where i can't basically see any installable plugins nor i can manually install via volumio plugin install
(installation is stuck at 10%) command. Any idea on this would be greatly appreciated
Some news about pulseAudio docker setup, by adding the following entry in the host daemon config of pulseaudio
avoid-resampling = true
About flac they are reproduced at 192Khz consistently (352.8Khz was resampled to 44.1Khz though) About dsd instead i was able to play them but DSD64 was resampled to 44.1Khz PCM, DSD128 was resampled to 384Khz PCM and DSD256 was resampled to 384Khz PCM. At 384Khz a switching noise can be heard which is not that pleasant. My host pulseaudio version is currently 13.99.1
Still it would be plenty better to use ALSA directly bypassing pulseaudio especially because DSD are reproduced as DoP as far as i've understood. Any help would be greatly appreciated.
Sorry but docker is not officially supported, nor recommended (personally, I was never able to get sound out of it) We can't help on that sorry
Hi, i'm trying to use Volumio inside a docker. The host machine is Ubuntu 20.04 and the launching command is
I'm not sure if /dev/shm is even required
Basically the DAC is recognized as D50 but there is no sound coming out
after killing pulseaudio on host (it was keeping the resource busy) with the command:
aplay -D default:CARD=D50 test.wav
i was able to reproduce a sound but not at the expected sample rate. Volumio is anyway not playing any sound.