mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Add comment about possible thread problems, MixerTrackCluster::UpdateMeter(), first "if" statement:
// Vaughan, 2011-02-04: Now that we're updating all meters from audacityAudioCallback, // this causes an assert if you click Mute while playing, because ResetMeter() resets // the timer, and wxTimerbase says that can only be done from main thread -- // but it seems to work fine.
This commit is contained in:
parent
4c766b2714
commit
812bc6bf65
@ -419,6 +419,10 @@ void MixerTrackCluster::UpdateMeter(const double t0, const double t1)
|
||||
if ((t0 < 0.0) || (t1 < 0.0) || (t0 >= t1) || // bad time value or nothing to show
|
||||
((mMixerBoard->HasSolo() || mLeftTrack->GetMute()) && !mLeftTrack->GetSolo()))
|
||||
{
|
||||
// Vaughan, 2011-02-04: Now that we're updating all meters from audacityAudioCallback,
|
||||
// this causes an assert if you click Mute while playing, because ResetMeter() resets
|
||||
// the timer, and wxTimerbase says that can only be done from main thread --
|
||||
// but it seems to work fine.
|
||||
this->ResetMeter(false);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user