summaryrefslogtreecommitdiffstats
path: root/src/app/xineEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/xineEngine.cpp')
-rw-r--r--src/app/xineEngine.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp
index 346af68..8a23f82 100644
--- a/src/app/xineEngine.cpp
+++ b/src/app/xineEngine.cpp
@@ -455,6 +455,12 @@ VideoWindow::posTimeLength( PosTimeLength type ) const
return 0; //--warning
}
+bool
+VideoWindow::isMuted() const
+{
+ return xine_get_param(m_stream, XINE_PARAM_AUDIO_AMP_MUTE);
+}
+
uint
VideoWindow::volume() const
{
@@ -595,6 +601,12 @@ VideoWindow::setStreamParameter( int value )
xine_set_param( m_stream, parameter, value );
}
+void
+VideoWindow::setMuted(bool mute)
+{
+ xine_set_param(m_stream, XINE_PARAM_AUDIO_AMP_MUTE, mute);
+}
+
const Engine::Scope&
VideoWindow::scope()
{