Allright, I'll give you some details: First of all, here is my .asoundrc file :
# start .asoundrc pcm.dsp0 { type plug slave.pcm "dmix" } ctl.mixer0 { type hw card 0 } # end .asoundrc As you can see, only the pcm volume is controlled with dmix (I couldn't find how to use dmix for the main volume), so I have to control the PCM channel with amixer to set the volume properly. That's when I modified ossmixer.py so that it uses amixer instead. To enable alsamixer.py, first copy it to /usr/lib/python2.4/site-packages/freevo/plugins (or something like that, you can find / -name ossmixer.py to find this folder) Then, you have to setup freevo to use it, so edit your ~/.freevo/local_conf.py and add/change the following lines: # Enable alsamixer plugin.remove('mixer') plugin.remove('ossmixer') plugin.activate('alsamixer') # Tell mplayer to use alsa (do it for xine too if you use it) MPLAYER_AO_DEV = 'alsa' # Remember that we have to control the PCM channel (if you control the master channel, there's no need for this line) MAJOR_AUDIO_CTRL='PCM' I think that's about it ... Tell me if it works for you ;) -- Cyril Emmanuel Sale wrote: > Hi cyril, > > I am using a M-Audio Delta 1010 as soundcard, and like your this card > has no built in hardware volume handling, I have to control the volume > by using a Softvolume in my asound.rc file. I am not able to control > the volume by using freevo, your plugin sounds good to me, as amixer > is able to control my softvolume as normal "control", could you > explain me how you plugin could help me and how it works ? > > Thank you. > Emmanuel. > > 2005/12/17, Duncan Webb <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > Cyril wrote: > > >Hi all, > > > >I've been having a few problems with my new onboard soundcard > (sis7012), > >because it has no hardware volume control available. As a > consequence of > >this, the only way to set the volume in freevo (or anything else) > is to > >use alsa's plugin dmix. > >The way ossmixer was made couldn't work with my setup, so as a > result of > >my frustration, I edited the ossmixer.py plugin to make it use > amixer to > >set the volume. > >Then, as it doesn't qualify as 'oss'mixer anymore, I changed its > name > >and cleaned up the code a bit. > > > >I don't know if there's a library to control alsa devices with > python, > >so I only used os.system('amixer ...') calls to set the volume, > but it > >seems to work really well (even to control different channels > apprently). > > > > > http://www.wilstrup.net/pyalsaaudio/ > > >Maybe this plugin could find its place in the default plugins, i > think > >it can be useful for someone :) > > > >alsamixer.py is included, so ... do whatever you want with it :) > > > > > Cool, I'll give it a go, the oss mixer code is not too nice. > > Cheers, > Duncan > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > <http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> > _______________________________________________ > Freevo-devel mailing list > Freevo-devel@lists.sourceforge.net > <mailto:Freevo-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/freevo-devel > <https://lists.sourceforge.net/lists/listinfo/freevo-devel> > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel