1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 00:19:27 +02:00

Bug 2487 - Playback meters and preview of non-real-time effect

Problem:
Playback meters do not respond during preview of non-real-time effect.

Commit ba6db6e added the meters into AudioIOStartStreamOptions.
However Effect::Preview(bool) was not modified to set the playback meter.

Fix:
In Effect::Preview(bool), use DefaultPlayOptions, which includes a playback meter.
This commit is contained in:
David Bailes 2020-07-16 14:41:48 +01:00
parent 6ffced4881
commit c174b254a1

View File

@ -2463,7 +2463,7 @@ void Effect::Preview(bool dryOnly)
t1 = std::min(mT0 + previewLen, mT1);
// Start audio playing
AudioIOStartStreamOptions options { pProject, rate };
auto options = DefaultPlayOptions(*pProject);
int token =
gAudioIO->StartStream(tracks, mT0, t1, options);