From dd0ef7cbd38d9555fdd5d0c93d3f5bf13dd5061c Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 6 Sep 2006 20:36:52 +0000 Subject: Implemented audio channel selection --- device.c | 15 ++++++++------- 1 file 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) -- cgit v1.2.3