From 1eef218aeb91fa8f1f744a651fb26f350be1c9d2 Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Mon, 29 May 2017 15:53:06 +0200 Subject: [PATCH] fix export project for sampletracks with vst effects on it (#3571) * fix export project for sampletracks with vst effects on it * removed playTriggered Signal --- src/tracks/SampleTrack.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/tracks/SampleTrack.cpp b/src/tracks/SampleTrack.cpp index af1060703..8624497d4 100644 --- a/src/tracks/SampleTrack.cpp +++ b/src/tracks/SampleTrack.cpp @@ -71,6 +71,8 @@ SampleTCO::SampleTCO( Track * _track ) : { connect( timeLine, SIGNAL( positionMarkerMoved() ), this, SLOT( playbackPositionChanged() ) ); } + //playbutton clicked or space key / on Export Song set isPlaying to false + connect( Engine::getSong(), SIGNAL( playbackStateChanged() ), this, SLOT( playbackPositionChanged() ) ); //care about loops connect( Engine::getSong(), SIGNAL( updateSampleTracks() ), this, SLOT( playbackPositionChanged() ) ); //care about mute TCOs @@ -79,11 +81,6 @@ SampleTCO::SampleTCO( Track * _track ) : connect( getTrack()->getMutedModel(), SIGNAL( dataChanged() ),this, SLOT( playbackPositionChanged() ) ); //care about TCO position connect( this, SIGNAL( positionChanged() ), this, SLOT( updateTrackTcos() ) ); - //playbutton clicked or space key - if( gui ) - { - connect( gui->songEditor(), SIGNAL( playTriggered() ), this, SLOT( playbackPositionChanged() ) ); - } switch( getTrack()->trackContainer()->type() ) {