Skip to content

Commit

Permalink
Ignore release frames for single-streamed instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
PhysSong committed Oct 22, 2017
1 parent fbfcb43 commit 7878331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/InstrumentSoundShaping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ f_cnt_t InstrumentSoundShaping::envFrames( const bool _only_vol ) const

f_cnt_t InstrumentSoundShaping::releaseFrames() const
{
if( m_envLfoParameters[Volume]->isUsed() )
if( !m_instrumentTrack->instrument()->flags().testFlag( Instrument::IsSingleStreamed )
&& m_envLfoParameters[Volume]->isUsed() )
{
return m_envLfoParameters[Volume]->releaseFrames();
}
Expand Down

0 comments on commit 7878331

Please sign in to comment.