diff options
author | Johns <johns98@gmx.net> | 2012-02-09 16:01:36 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-09 16:01:36 +0100 |
commit | 8c16466d318350b769615ee365ecc2b6a85dda5d (patch) | |
tree | 4ef965fb993d373268fdae7e4e3a4bd668ef15e8 /audio.c | |
parent | ced54a5cf15e49c3da6baed3ad2a0758d2897735 (diff) | |
download | vdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.gz vdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.bz2 |
Set mixer channel through command line option
Diffstat (limited to 'audio.c')
-rw-r--r-- | audio.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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. |