summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_interface.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-12-31 23:29:06 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-12-31 23:29:06 +0000
commit124884bacd4a6cf07c1f09169c12755d85683ece (patch)
tree936478ca3ff4f5fb39adfbad5d6767ff1dfc937b /src/xine-engine/xine_interface.c
parent0ecb9732a0a50ea49bcfb8346438dbcf835544ff (diff)
downloadxine-lib-124884bacd4a6cf07c1f09169c12755d85683ece.tar.gz
xine-lib-124884bacd4a6cf07c1f09169c12755d85683ece.tar.bz2
Add a mute feature to the software amp.
CVS patchset: 5967 CVS date: 2003/12/31 23:29:06
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 22d707082..63d4297eb 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.74 2003/12/14 00:28:02 f1rmb Exp $
+ * $Id: xine_interface.c,v 1.75 2003/12/31 23:29:06 jcdutton Exp $
*
* convenience/abstraction layer, functions to implement
* libxine's public interface
@@ -380,6 +380,11 @@ void xine_set_param (xine_stream_t *stream, int param, int value) {
stream->audio_out->set_property (stream->audio_out, AO_PROP_AMP, value);
break;
+ case XINE_PARAM_AUDIO_AMP_MUTE:
+ if (stream->audio_out)
+ stream->audio_out->set_property (stream->audio_out, AO_PROP_AMP_MUTE, value);
+ break;
+
case XINE_PARAM_AUDIO_CLOSE_DEVICE:
if (stream->audio_out)
stream->audio_out->set_property (stream->audio_out, AO_PROP_CLOSE_DEVICE, value);
@@ -488,6 +493,11 @@ int xine_get_param (xine_stream_t *stream, int param) {
return -1;
return stream->audio_out->get_property (stream->audio_out, AO_PROP_AMP);
+ case XINE_PARAM_AUDIO_AMP_MUTE:
+ if (!stream->audio_out)
+ return -1;
+ return stream->audio_out->get_property (stream->audio_out, AO_PROP_AMP_MUTE);
+
case XINE_PARAM_EQ_30HZ:
case XINE_PARAM_EQ_60HZ:
case XINE_PARAM_EQ_125HZ: