Commit 88ac32c2 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Ask the worflow to mute/unmute a track when requested

parent 8a1ce434
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <QGraphicsWidget> #include <QGraphicsWidget>
#include <QPainter> #include <QPainter>
#include <QDebug> #include <QDebug>
#include "MainWorkflow.h"
class GraphicsTrack : public QGraphicsWidget class GraphicsTrack : public QGraphicsWidget
{ {
...@@ -64,7 +65,19 @@ public: ...@@ -64,7 +65,19 @@ public:
void setTrackEnabled( bool enabled ) void setTrackEnabled( bool enabled )
{ {
if ( enabled == m_enabled ) return;
m_enabled = enabled; m_enabled = enabled;
MainWorkflow::TrackType type;
if ( m_type == Audio )
type = MainWorkflow::AudioTrack;
else
type = MainWorkflow::VideoTrack;
if ( enabled )
MainWorkflow::getInstance()->unmuteTrack( m_trackNumber, type );
else
MainWorkflow::getInstance()->muteTrack( m_trackNumber, type );
} }
bool trackEnabled() bool trackEnabled()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment