summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-09-06 20:36:52 +0000
committerphintuka <phintuka>2006-09-06 20:36:52 +0000
commitdd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c (patch)
tree478fce74d173efcbfa8efcf44599688c0813154f
parent1dfa89e4bc38a9f0f57e6a228c9548be937f64b9 (diff)
downloadxineliboutput-dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c.tar.gz
xineliboutput-dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c.tar.bz2
Implemented audio channel selectionxineliboutput-1_0_0pre4
-rw-r--r--device.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/device.c b/device.c
index a3885ef8..b6368fde 100644
--- a/device.c
+++ b/device.c
@@ -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)