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

eviv bulgroz eviv.bulgroz at yahoo.com
Sun Jul 11 20:36:49 CEST 2004


Maciej Paszta wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Sunday 11 of July 2004 01:12, kringla wrote:
>  
>
>>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
>>    
>>
>
>I have a similiar problem, however it only occurs when using gmplayer. When I 
>play movie with mplayer everything is ok( both have the same configuration, 
>
>  
>
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