[MPlayer-dev-eng] [PATCH] unable to attach to mixer

eviv bulgroz eviv.bulgroz at yahoo.com
Sun Jul 11 17:15:31 CEST 2004


kringla wrote:

> Hi there
> I have tried for a while to get rid of a problem I have with mplayer. 
> I posted to a debian-user list, mplayer-user list and have not got an 
> answers at all. Searching google I see that others have had/are having 
> similar problems and that they also doesn't get to the solution. So 
> Now i forward my original message to this list in hope of getting a 
> response.
>
> -------- Original Message --------
> Subject: [MPlayer-users] unable to attach to mixer
> Date: Sat, 10 Jul 2004 00:28:15 +0200
> From: kringla <kringla at home.se>
> Reply-To: MPlayer usage questions, features,  bugreports 
> <mplayer-users at mplayerhq.hu>
> To: mplayer-users at mplayerhq.hu
>
> Hello.
> I compiled the latest version of mplayer v1.0pre4 as described here:
> http://www.princessleia.com/MPlayer.html
>
> I am using kernel 2.6.7 with an aureal Vortex (au8820) soundcard working
> very nice. I can play music and change volume with alsamixer, and the
> volume-control in xmms is changing the volume. But mplayer is not able
> to do this.
>
> These messages are coming:
> alsa-control: mixer attach  error: No such file or directory
> ALSA lib control.c:654:(snd_ctl_open_noupdate) Invalid CTL
>
>
gmplayer sets mixer_device from gtkAOOSSMixer even if alsa is used.
The problem was hidden until: 
http://mplayerhq.hu/pipermail/mplayer-dev-eng/2004-June/026951.html

A further gmplayer enhancement would to be able to configure the "alsa" 
audio driver from the preferences in a similar way to the "oss" driver.
Additionaly, amixer "simple mixer controls" or "regular controls" 
command-line syntax would be a nice standard to follow for both mplayer 
and gmplayer.

eviv

Index: main/Gui/interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.95
diff -u -r1.95 interface.c
--- main/Gui/interface.c    26 Jun 2004 13:26:10 -0000    1.95
+++ main/Gui/interface.c    11 Jul 2004 11:21:52 -0000
@@ -797,12 +797,12 @@
       ao_plugin_cfg.pl_extrastereo_mul=gtkAOExtraStereoMul;
      }
 #ifdef USE_OSS_AUDIO
-    mixer_device=gstrdup( gtkAOOSSMixer );
     if ( audio_driver_list && !gstrncmp( audio_driver_list[0],"oss",3 ) 
&& gtkAOOSSDevice )
      {
       char * tmp = calloc( 1,strlen( gtkAOOSSDevice ) + 7 );
       sprintf( tmp,"oss:%s",gtkAOOSSDevice );
       gaddlist( &audio_driver_list,tmp );
+      mixer_device=gstrdup( gtkAOOSSMixer );
      }
 #endif
 #ifdef HAVE_SDL




More information about the MPlayer-dev-eng mailing list