summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 4a72161..5dec74a 100644
--- a/audio.c
+++ b/audio.c
@@ -822,7 +822,7 @@ static void AlsaInitMixer(void)
const char *name;
name = snd_mixer_selem_get_name(alsa_mixer_elem);
- if (strcasecmp(name, alsa_mixer_elem_name) == 0) {
+ if (!strcasecmp(name, alsa_mixer_elem_name)) {
snd_mixer_selem_get_playback_volume_range(alsa_mixer_elem,
&alsa_mixer_elem_min, &alsa_mixer_elem_max);
AlsaRatio =
@@ -2151,6 +2151,18 @@ void AudioSetDeviceAC3(const char *device)
}
/**
+** Set pcm audio mixer channel.
+**
+** @param channel name of the mixer channel (fe. PCM or Master)
+**
+** @note this is currently used to select alsa/OSS output module.
+*/
+void AudioSetChannel(const char *channel)
+{
+ AudioMixerChannel = channel;
+}
+
+/**
** Initialize audio output module.
**
** @todo FIXME: make audio output module selectable.