diff options
author | phintuka <phintuka> | 2006-09-06 20:36:52 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-09-06 20:36:52 +0000 |
commit | dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c (patch) | |
tree | 478fce74d173efcbfa8efcf44599688c0813154f | |
parent | 1dfa89e4bc38a9f0f57e6a228c9548be937f64b9 (diff) | |
download | xineliboutput-dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c.tar.gz xineliboutput-dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c.tar.bz2 |
Implemented audio channel selectionxineliboutput-1_0_0pre4
-rw-r--r-- | device.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.20 2006-09-06 18:16:56 phintuka Exp $ + * $Id: device.c,v 1.21 2006-09-06 20:36:52 phintuka Exp $ * */ @@ -974,13 +974,14 @@ void cXinelibDevice::SetAudioChannelDevice(int AudioChannel) { TRACEF("cXinelibDevice::SetAudioChannelDevice"); - /*LOGDBG("SetAudioChannelDevice(%d)", (int)AudioChannel);*/ m_AudioChannel = AudioChannel; - // - // TODO - // - // - stereo, left only, right only - // + + switch(AudioChannel) { + default: + case 0: ConfigurePostprocessing("audiochannel", false, NULL); break; + case 1: ConfigurePostprocessing("audiochannel", true, "channel=0"); break; + case 2: ConfigurePostprocessing("audiochannel", true, "channel=1"); break; + } } void cXinelibDevice::SetDigitalAudioDevice(bool On) |