[opendev] The Background Music Box
-
@cyperghost where would i apply these changes exactly? unless i make the changes to any instance mpg123 starts?
-
@mitu this would go just in the /home directory?
-
@majikill You can try modifying the script that starts the BGM music and add the
-f
parameter as @cyperghost mentioned. The.asoundrc
configuration file I was mentioning should be added in$HOME
(which translates to/home/pi
). -
@mitu awesome. perfect guys thank you. im gonna try both and see what works best for me.
-
@mitu i managed to create the .asoundrc file where it should be. but when i launch alsasound i only have a single mixer. i did put the file in /home/pi
-
@majikill Can you run
speaker-test -D mp3
and see if you get any errors ? Then start
alsamixer
and see if you have 2 mixer devices. -
@mitu that worked! im curious why tho. once the test is run, does it force alsa to load the file i created?
-
@mitu ok well kinda worked. i see the softmaster in the mixer. but pcm still controls the volume for bgm
-
@majikill said in [opendev] The Background Music Box:
but pcm still controls the volume for bgm
You need to tell
mpg321
to use the newly created device - as I said in my initial post:mpg321 -o alsa --audiodevice mp3 <path/to/file>
-
@mitu ok, i think i get it now. im using this as a crash course in writing scripts, so im sorry if i dont understand how this should work. but this is a huge help, thank you.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.