File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Source/Processors/FileReader Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,6 @@ int64 FileReader::getCurrentSample()
315315
316316void FileReader::setPlaybackStart (int64 startSample)
317317{
318- LOGD (" Settings start sample: " , startSample);
319318 this ->startSample = startSample;
320319 this ->totalSamplesAcquired = startSample;
321320
@@ -325,7 +324,6 @@ void FileReader::setPlaybackStart(int64 startSample)
325324
326325void FileReader::setPlaybackStop (int64 stopSample)
327326{
328- LOGD (" Settings stop sample: " , stopSample);
329327 this ->stopSample = stopSample;
330328 currentNumScrubbedSamples = stopSample - startSample;
331329}
Original file line number Diff line number Diff line change @@ -384,12 +384,9 @@ void PlaybackButton::setState(bool isActive)
384384
385385 this ->isActive = isActive;
386386
387- if (isActive && !fileReader->playbackIsActive ())
388- {
387+ if (!isActive) // Pressed play
389388 static_cast <FileReaderEditor*>(fileReader->getEditor ())->updatePlaybackTimes ();
390- fileReader->startAcquisition ();
391- }
392- else if (!isActive)
389+ else if (!isActive && fileReader->playbackIsActive ())
393390 fileReader->stopAcquisition ();
394391}
395392
@@ -729,9 +726,7 @@ void FileReaderEditor::buttonClicked (Button* button)
729726 } else if (button == playbackButton) {
730727
731728 playbackButton->setState (!playbackButton->getState ());
732-
733- if (playbackButton->getState ())
734- acquisitionIsActive = true ;
729+ fileReader->togglePlayback ();
735730
736731 }
737732
You can’t perform that action at this time.
0 commit comments