mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +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:
parent
6ffced4881
commit
c174b254a1
@ -2463,7 +2463,7 @@ void Effect::Preview(bool dryOnly)
|
|||||||
t1 = std::min(mT0 + previewLen, mT1);
|
t1 = std::min(mT0 + previewLen, mT1);
|
||||||
|
|
||||||
// Start audio playing
|
// Start audio playing
|
||||||
AudioIOStartStreamOptions options { pProject, rate };
|
auto options = DefaultPlayOptions(*pProject);
|
||||||
int token =
|
int token =
|
||||||
gAudioIO->StartStream(tracks, mT0, t1, options);
|
gAudioIO->StartStream(tracks, mT0, t1, options);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user