Commit 25a39185 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Muting audio track is now functionnal.

parent 29f285ac
......@@ -129,14 +129,17 @@ TrackHandler::getOutput( qint64 currentFrame, qint64 subFrame )
}
else
{
void* ret = m_tracks[i]->getOutput( currentFrame, subFrame );
//m_tmpAudioBuffer is NULl by default, so it will remain NULL if we continue;
if ( ret == NULL )
continue ;
StackedBuffer<AudioClipWorkflow::AudioSample*>* stackedBuffer =
reinterpret_cast<StackedBuffer<AudioClipWorkflow::AudioSample*>*> ( ret );
if ( stackedBuffer != NULL )
m_tmpAudioBuffer = stackedBuffer->get();
if ( m_tracks[i].activated() == true )
{
void* ret = m_tracks[i]->getOutput( currentFrame, subFrame );
//m_tmpAudioBuffer is NULl by default, so it will remain NULL if we continue;
if ( ret == NULL )
continue ;
StackedBuffer<AudioClipWorkflow::AudioSample*>* stackedBuffer =
reinterpret_cast<StackedBuffer<AudioClipWorkflow::AudioSample*>*> ( ret );
if ( stackedBuffer != NULL )
m_tmpAudioBuffer = stackedBuffer->get();
}
}
}
}
......
Markdown is supported
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