From b33eceda7e553e541c8f5a6a199b6903c80879ec Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Sun, 7 Sep 2014 16:20:17 -0400 Subject: [PATCH] Make loop end move with sample end --- plugins/audio_file_processor/audio_file_processor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index e3331f128..f7b131b9e 100644 --- a/plugins/audio_file_processor/audio_file_processor.cpp +++ b/plugins/audio_file_processor/audio_file_processor.cpp @@ -373,6 +373,12 @@ void audioFileProcessor::startPointChanged( void ) { m_loopPointModel.setValue( m_startPointModel.value() ); } + + // nudge loop point with end + if( m_loopPointModel.value() > m_endPointModel.value() ) + { + m_loopPointModel.setValue( m_endPointModel.value() ); + } pointChanged(); @@ -380,7 +386,7 @@ void audioFileProcessor::startPointChanged( void ) void audioFileProcessor::endPointChanged( void ) { - // same as start + // same as start, for now startPointChanged(); }