From: Dirk Jagdmann <doj@cubic.org>
To: perex@suse.cz
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [patch] envy24control save state of LRGang button in config file
Date: Sat, 30 Jul 2005 16:14:00 +0200 [thread overview]
Message-ID: <42EB8B28.1040404@cubic.org> (raw)
In-Reply-To: <42E66ECA.10407@cubic.org>
[-- Attachment #1: Type: text/plain, Size: 240 bytes --]
Hello,
The last mail I sent for this topic contained a non functional patch,
which has not been included in CVS yet.
I resend the patch, which should now work.
--
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org
[-- Attachment #2: envy24control-stereosave.patch --]
[-- Type: text/plain, Size: 2447 bytes --]
Index: Makefile.am
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/envy24control/Makefile.am,v
retrieving revision 1.15
diff -u -r1.15 Makefile.am
--- Makefile.am 21 Dec 2004 17:15:01 -0000 1.15
+++ Makefile.am 26 Jul 2005 16:58:10 -0000
@@ -3,8 +3,8 @@
man_MANS = envy24control.1
envy24control_SOURCES = envy24control.c envy24control.h levelmeters.c midi.c \
mixer.c patchbay.c hardware.c driverevents.c volume.c \
- profiles.c profiles.h midi.h
+ profiles.c profiles.h midi.h config.c config.h
envy24control_LDFLAGS = @ENVY24CONTROL_LIBS@
EXTRA_DIST = envy24control.1 depcomp configure.in-gtk2 \
strstr_icase_blank.c new_process.c README.profiles
Index: envy24control.c
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/envy24control/envy24control.c,v
retrieving revision 1.35
diff -u -r1.35 envy24control.c
--- envy24control.c 24 May 2005 16:52:18 -0000 1.35
+++ envy24control.c 26 Jul 2005 16:58:11 -0000
@@ -22,6 +22,7 @@
#include "envy24control.h"
#include "midi.h"
+#include "config.h"
#define _GNU_SOURCE
#include <getopt.h>
@@ -244,7 +244,9 @@
gtk_widget_show(toggle);
gtk_box_pack_end(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);
/* gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), TRUE); */
-
+ gtk_signal_connect(GTK_OBJECT(toggle), "toggled",
+ GTK_SIGNAL_FUNC(config_set_stereo), (gpointer)stream-1);
+
hbox = gtk_hbox_new(TRUE, 6);
gtk_widget_show(hbox);
gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
@@ -2116,6 +2117,7 @@
}
/* Initialize code */
+ config_open();
level_meters_init();
mixer_init();
patchbay_init();
@@ -2185,6 +2187,7 @@
snd_ctl_close(ctl);
midi_close();
+ config_close();
return EXIT_SUCCESS;
}
Index: mixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-tools/envy24control/mixer.c,v
retrieving revision 1.11
diff -u -r1.11 mixer.c
--- mixer.c 26 Jul 2005 11:37:11 -0000 1.11
+++ mixer.c 26 Jul 2005 16:58:11 -0000
@@ -19,6 +19,7 @@
#include "envy24control.h"
#include "midi.h"
+#include "config.h"
#define MULTI_PLAYBACK_SWITCH "Multi Playback Switch"
#define MULTI_PLAYBACK_VOLUME "Multi Playback Volume"
@@ -263,4 +269,6 @@
if (stream_is_active[stream - 1])
mixer_update_stream(stream, 1, 1);
}
+
+ config_restore_stereo();
}
prev parent reply other threads:[~2005-07-30 14:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-26 17:11 [patch] envy24control save state of LRGang button in config file Dirk Jagdmann
2005-07-27 6:56 ` Jaroslav Kysela
2005-07-30 14:14 ` Dirk Jagdmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42EB8B28.1040404@cubic.org \
--to=doj@cubic.org \
--cc=alsa-devel@lists.sourceforge.net \
--cc=perex@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.