0

Hifiberry DAC+ Pro and Pi Musicbox: How to mix two sources

Hello.

I'm using Pi Musicbox to stream Spotify and to play local mp3-files as part of my home automation system (Home Assistant). System is running on Raspberry Pi 3+

Before switching to Hifiberry I was using RPi 3.5mm analog output and my system was working like I wanted. I could have Spotify playing music and I could throw a mp3-file (voice notification) over the music.

Now when I switched to Hifiberry, I can only do either one at a time: Play Spotify OR play local mp3. They don't mix anymore. If Spotify is playing and I try to play mp3-file, that mp3-file will remain silent while Spotify continues to play. If I pause Spotify, that mp3-file is able to play.

I've been googling around a lot and tried so so many configurations that it doesn't make any sense to post them here.

Settings files I have been modifying:

/etc/asound.conf  (according to https://www.hifiberry.com/docs/software/mixing-different-audio-sources/)

/etc/mopidy/mopidy.conf

mixer = alsamixer

output = hifiberry_dacplus

[alsamixer]
enabled = true
card = 0
control = DSP Program (also tried PCM, Master)

 

Here are some prints from commands I have seen asked:

root@MusicBox:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

 

root@MusicBox:~# sudo amixer scontrols
Simple mixer control 'DSP Program',0
Simple mixer control 'Analogue',0
Simple mixer control 'Analogue Playback Boost',0
Simple mixer control 'Auto Mute',0
Simple mixer control 'Auto Mute Mono',0
Simple mixer control 'Auto Mute Time Left',0
Simple mixer control 'Auto Mute Time Right',0
Simple mixer control 'Clock Missing Period',0
Simple mixer control 'Deemphasis',0
Simple mixer control 'Digital',0
Simple mixer control 'Max Overclock DAC',0
Simple mixer control 'Max Overclock DSP',0
Simple mixer control 'Max Overclock PLL',0
Simple mixer control 'Volume Ramp Down Emergency Rate',0
Simple mixer control 'Volume Ramp Down Emergency Step',0
Simple mixer control 'Volume Ramp Down Rate',0
Simple mixer control 'Volume Ramp Down Step',0
Simple mixer control 'Volume Ramp Up Rate',0
Simple mixer control 'Volume Ramp Up Step',0

2 comments

Please sign in to leave a comment.