Skip to contentSkip to conversation

too many alsamixer sliders

PATCH New Maarten de Boer 4 participants 5 messages Apr 26, 2002 – Apr 29, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

Updating my fltk alsamixer frontend, alsamixergui, I once again found that alsamixer (and therefore alsamixergui) shows a lot of sliders. With my Audigy, it's really too much. I think it would be very nice to be able to configure alsamixer, to show only a subset of sliders. I guess a .alsamixerrc file in the users homedirectory. But maybe the /etc/asound.state could be used for that as well? It would be nice to have several presets or groups..

Do you have any suggestions about how to do this? I would not mind implementing it (I think it's won't be to much work), but I'd like to have your opinion first.

Maarten

#1 lore raw

PATCH 1/1 acoonectgui cannot build

aconnectgui won't build withouth these fixes :

Fl_PBConnector.H renamed from Fl_PBConnector.H.orig +1 -1
@@ -1,7 +1,7 @@
 #ifndef __PBConnector__
 #define __PBConnector__
 
-#include <Fl/Fl_Widget.H>
+#include <FL/Fl_Widget.H>
 #include "Fl_PBConnector_T.H"
 #include "Layout.H"
 
Fl_PBConnection.H renamed from Fl_PBConnection.H.orig +2 -2
@@ -1,8 +1,8 @@
 #ifndef __PBConnection__
 #define __PBConnection__
 
-#include <Fl/Fl_Widget.H>
-#include <Fl/Fl_Group.H>
+#include <FL/Fl_Widget.H>
+#include <FL/Fl_Group.H>
 
 class Fl_PBConnector;
 
Fl_PBConnection.cxx renamed from Fl_PBConnection.cxx.orig +2 -2
@@ -2,8 +2,8 @@
 #include "Fl_PBConnector.H"
 #include "Fl_PBWindow.H"
 
-#include <Fl/fl_draw.H>
-#include <Fl/Fl.H>
+#include <FL/fl_draw.H>
+#include <FL/Fl.H>
 
 void Fl_PBConnection::set(Fl_PBConnector* a, Fl_PBConnector* b) 
 {
Fl_PBConnector.cxx renamed from Fl_PBConnector.cxx.orig +1 -1
@@ -1,7 +1,7 @@
 #include "Fl_PBConnection.H"
 #include "Fl_PBConnector.H"
 
-#include <Fl/fl_draw.H>
+#include <FL/fl_draw.H>
 
 Fl_PBConnector::Fl_PBConnector(int X,int Y,Fl_PBConnector_T T)
 :Fl_Widget(X,Y,8,CONNECTOR_DISTANCE) {
Fl_FrameGroup.H renamed from Fl_FrameGroup.H.orig +1 -1
@@ -16,7 +16,7 @@
 		fl_draw_box(FL_ENGRAVED_FRAME,x(),y()+5,w(),h()-5,FL_BLACK);
 		fl_color(color());
 		fl_font(labelfont(),labelsize());
-		fl_rectf(x()+10,y(),fl_width(label())+4,10);
+		fl_rectf(x()+10,y(),int(fl_width(label()))+4,10);
 		fl_color(labelcolor());
 		fl_draw(label(),x()+12,y()+10);
 		Fl_Group::draw();
Fl_PBPort.cxx renamed from Fl_PBPort.cxx.orig +1 -1
@@ -1,6 +1,6 @@
 #include "Fl_PBPort.H"
 #include "Fl_PBConnector.H"
-#include <Fl/Fl_Box.H>
+#include <FL/Fl_Box.H>
 
 Fl_PBPort::Fl_PBPort(int X,int Y,int W,int H,char* L,int P,Fl_PBConnector_T T)
 :Fl_Group(X,Y,W,H)

(using libfltk1.1-1.1.0)

Signature · 2 lines
"il a ete brule au 28e degre" (the naheulbeuk witch)
"c curieux, gcc fonctionne" (gwenole)
#2 lore raw

PATCH 1/1 alsamixergui cannot build

alsamixergui won't build withouth these fixes :

Fl_Pixmap_Button.H renamed from Fl_Pixmap_Button.H.orig +1 -1
@@ -48,7 +48,7 @@
 #endif
 	
 	if (pw<0) {
-#if FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION == 0
+#if FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION >= 0
 		fl_measure_pixmap(p->data,pw,ph);
 #else
 		fl_measure_pixmap(p->data(),pw,ph);
Fl_AM.cxx renamed from Fl_AM.cxx.orig +1 -1
@@ -215,7 +215,7 @@
 	Fl::add_timeout(0.05,gui_idle_cb,0);
 	
 #if FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION >= 1
-	Fl::visible_focus(0);
+//	Fl::visible_focus(0);
 #endif
 
 	Fl::run();

i just packaged both alsamixergui and aconnectgui into mandrake contribs.

Signature · 2 lines
"il a ete brule au 28e degre" (the naheulbeuk witch)
"c curieux, gcc fonctionne" (gwenole)
#3 lore raw
In reply to Maarten de Boer

At Fri, 26 Apr 2002 12:41:15 +0200,

Quoted 11 lines · Maarten de Boer

Hello,

Updating my fltk alsamixer frontend, alsamixergui, I once again found that alsamixer (and therefore alsamixergui) shows a lot of sliders. With my Audigy, it's really too much. I think it would be very nice to be able to configure alsamixer, to show only a subset of sliders. I guess a .alsamixerrc file in the users homedirectory. But maybe the /etc/asound.state could be used for that as well? It would be nice to have several presets or groups..

yep there are some problems regarding the control api:

- control names are sometimes too ambiguous

- controls are not structured
thus we see too many controls in a row on alsamixer.

but i don't think it's good to put extra grouping info to the general control api (at least on kernel level), partly because changing the api should be avoided, and partly because the grouping is a kind of tastes and each of us may have different ideas to assort them.

i once tried to write a mixer in a script language.
it uses config files for each driver, which define the grouping and actions of controls, so that the mixer elements are sorted and looked "ordinary". the project was aborted for a while just due to lack of time...

it would be possible to define a general config, such as based on xml. not sure whether it's worthy, though.

Takashi

#4 lore raw
In reply to Maarten de Boer
Quoted 11 lines · Maarten de Boer

Hello,

Updating my fltk alsamixer frontend, alsamixergui, I once again found that alsamixer (and therefore alsamixergui) shows a lot of sliders. With my Audigy, it's really too much. I think it would be very nice to be able to configure alsamixer, to show only a subset of sliders. I guess a .alsamixerrc file in the users homedirectory. But maybe the /etc/asound.state could be used for that as well? It would be nice to have several presets or groups..

Quoted 8 lines

Do you have any suggestions about how to do this? I would not mind implementing it (I think it's won't be to much work), but I'd like to have your opinion first.

Maarten

Maybe having a key in alsamixer to switch between playback and capture sliders groups. Currently, playback and capture sliders are side by side, creating a rather long line of sliders.

Cheers
James