aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/volume.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/volume.c b/src/volume.c
index 4c0667618..3df57ad46 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -37,13 +37,14 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "volume"
-#define VOLUME_MIXER_TYPE_SOFTWARE 0
-#define VOLUME_MIXER_TYPE_HARDWARE 1
-#define VOLUME_MIXER_TYPE_DISABLED 2
-
#define SW_VOLUME_STATE "sw_volume: "
-static int volume_mixer_type = VOLUME_MIXER_TYPE_HARDWARE;
+static enum {
+ VOLUME_MIXER_TYPE_SOFTWARE,
+ VOLUME_MIXER_TYPE_HARDWARE,
+ VOLUME_MIXER_TYPE_DISABLED,
+} volume_mixer_type = VOLUME_MIXER_TYPE_HARDWARE;
+
static int volume_software_set = 100;
/** the cached hardware mixer value; invalid if negative */