diff options
author | phintuka <phintuka> | 2007-03-28 06:52:09 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-03-28 06:52:09 +0000 |
commit | 2488b705ec79ecefc968975a41eee89e1b809345 (patch) | |
tree | d53ae9a67f221ddb93376c51afb023b26a0d6956 | |
parent | 4f20b549dcc41dd30fc4fc743ed643b5050853ed (diff) | |
download | xineliboutput-2488b705ec79ecefc968975a41eee89e1b809345.tar.gz xineliboutput-2488b705ec79ecefc968975a41eee89e1b809345.tar.bz2 |
Software volume control
-rw-r--r-- | frontend.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |