You are not logged in.

#1 2008-04-26 13:13:53

Perre
Member
Registered: 2008-01-22
Posts: 189

How do I control freevo volume with softvol?

Hi!

I'm setting up a media center and I've had some problems controlling the volume of my digital output. I remedied this by using the alsa plugin "softvol". I edited the mpd config file so that it uses software volume. Now I can control the digital output volume using sonata volume slider, and also directly through alsamixer (I named the softvol volume control "SoftMaster"). In other words I've managed to control the volume of my digital output.

Only problem is that when using mplayer this doesn't work. I tried adding the following to the mplayer config file:

ao=sdl
softvol=yes
softvol-max=200

but it doesn't make a difference. Trying to change the volume of mplayer using any of the options in alsamixer does nothing and only the volume slider in mplayer itself can control it's volume. How do I make mplayer work with my "SoftMaster"? I need this to work so that I can control the volume of my digital output while in freevo (I use mplayer for media playing in freevo).

Last edited by Perre (2008-04-26 23:20:31)

Offline

#2 2008-04-26 15:47:42

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: How do I control freevo volume with softvol?

Ok, I got it working by configuring ~/.mplayer/config like this:

ao="alsa" #audio out
mixer-channel="SoftMaster"
srate=48000

This made the volume control in mplayer use SoftMaster form alsamixer. But now it seems Freevo is giving me a hard time too.
After doing alot of searching it looks like I have to use alsamixer2.py plugin with freevo. There I should be able to define which
mixer freevo should use from alsamixer. Only problem is that freevo doesn't react to changes in "SoftMaster".

I added this to local_conf.py

# User defined
ALSAMIXER2_MAIN_CTRL = 'SoftMaster'
ALSAMIXER2_CTRLS = [
   ('SoftMaster',    'default', 50, 0, 100),
   ]

When running freevo I now can move the "SoftMaster"slider in alsamixer up and down with my remote. I other words, I can control the
"SoftMaster"-volume from within freevo. Only thing is it doesn't affect the actual loudness of the music/movies. I'm on the right track, but
there's something I'm not seeing. Can anyone help me?

Offline

Board footer

Powered by FluxBB