volume: converted volume_mixer_type to an enum
Don't use CPP macros when you can use C enums.
This commit is contained in:
parent
a54f14f31d
commit
68f1aed452
11
src/volume.c
11
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user