Fix for [#26652] "Audio Muted" in Time Line Editor is not working
[blender-staging.git] / intern / audaspace / intern / AUD_SequencerFactory.cpp
index 77d83458c683478369b850e31d932cc1108fb4f0..f49dd94fe111c62c140717766538fd901c867b80 100644 (file)
 
 typedef std::list<AUD_SequencerReader*>::iterator AUD_ReaderIterator;
 
-AUD_SequencerFactory::AUD_SequencerFactory(AUD_Specs specs, void* data,
+AUD_SequencerFactory::AUD_SequencerFactory(AUD_Specs specs, bool muted,
+                                                                                  void* data,
                                                                                   AUD_volumeFunction volume) :
        m_specs(specs),
+       m_muted(muted),
        m_data(data),
        m_volume(volume)
 {
@@ -62,6 +64,16 @@ AUD_SequencerFactory::~AUD_SequencerFactory()
        }
 }
 
+void AUD_SequencerFactory::mute(bool muted)
+{
+       m_muted = muted;
+}
+
+bool AUD_SequencerFactory::getMute() const
+{
+       return m_muted;
+}
+
 AUD_IReader* AUD_SequencerFactory::newReader()
 {
        AUD_SequencerReader* reader = new AUD_SequencerReader(this, m_entries,