summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_interface.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2003-03-08 20:25:51 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2003-03-08 20:25:51 +0000
commit32b0a263de998750596779028eaec96416340442 (patch)
tree1a6d2444cd0ff7ee2b4e9f46892044e8a4a1d5f4 /src/xine-engine/xine_interface.c
parent43946102c62190cb9f62414b84463005c675b691 (diff)
downloadxine-lib-32b0a263de998750596779028eaec96416340442.tar.gz
xine-lib-32b0a263de998750596779028eaec96416340442.tar.bz2
implement XINE_PARAM_AUDIO_AMP_LEVEL so xine's volume can be set independantly from other applications
CVS patchset: 4384 CVS date: 2003/03/08 20:25:51
Diffstat (limited to 'src/xine-engine/xine_interface.c')
-rw-r--r--src/xine-engine/xine_interface.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c
index bc989efc6..430776782 100644
--- a/src/xine-engine/xine_interface.c
+++ b/src/xine-engine/xine_interface.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_interface.c,v 1.44 2003/03/08 17:22:16 f1rmb Exp $
+ * $Id: xine_interface.c,v 1.45 2003/03/08 20:25:52 guenter Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -369,6 +369,11 @@ void xine_set_param (xine_stream_t *stream, int param, int value) {
stream->audio_out->set_property (stream->audio_out, AO_PROP_COMPRESSOR, value);
break;
+ case XINE_PARAM_AUDIO_AMP_LEVEL:
+ if (stream->audio_out)
+ stream->audio_out->set_property (stream->audio_out, AO_PROP_AMP, value);
+ break;
+
case XINE_PARAM_VERBOSITY:
stream->xine->verbosity = value;
@@ -438,6 +443,11 @@ int xine_get_param (xine_stream_t *stream, int param) {
return -1;
return stream->audio_out->get_property (stream->audio_out, AO_PROP_COMPRESSOR);
+ case XINE_PARAM_AUDIO_AMP_LEVEL:
+ if (!stream->audio_out)
+ return -1;
+ return stream->audio_out->get_property (stream->audio_out, AO_PROP_AMP);
+
case XINE_PARAM_VERBOSITY:
return stream->xine->verbosity;