summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-03-28 06:52:09 +0000
committerphintuka <phintuka>2007-03-28 06:52:09 +0000
commit2488b705ec79ecefc968975a41eee89e1b809345 (patch)
treed53ae9a67f221ddb93376c51afb023b26a0d6956
parent4f20b549dcc41dd30fc4fc743ed643b5050853ed (diff)
downloadxineliboutput-2488b705ec79ecefc968975a41eee89e1b809345.tar.gz
xineliboutput-2488b705ec79ecefc968975a41eee89e1b809345.tar.bz2
Software volume control
-rw-r--r--frontend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend.c b/frontend.c
index ac4a21a6..edf496db 100644
--- a/frontend.c
+++ b/frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend.c,v 1.34 2007-03-14 17:40:38 phintuka Exp $
+ * $Id: frontend.c,v 1.35 2007-03-28 06:52:09 phintuka Exp $
*
*/
@@ -259,7 +259,9 @@ bool cXinelibThread::IsFinished(void)
void cXinelibThread::SetVolume(int NewVolume)
{
- Xine_Control("VOLUME", NewVolume * 100 / 255);
+ cString str = cString::sprintf("VOLUME %d%s", NewVolume * 100 / 255,
+ xc.sw_volume_control ? " SW" : "");
+ Xine_Control(str);
}
void cXinelibThread::TrickSpeed(int Speed)