1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 23:02:42 +02:00

Init mOldGains

I'd neglected to do this, which can lead to unwanted noise.
This commit is contained in:
James Crook 2018-08-24 22:51:31 +01:00
parent 0ce83abbfb
commit 9012b98eca

View File

@ -108,6 +108,8 @@ WaveTrack::WaveTrack(const std::shared_ptr<DirManager> &projDirManager, sampleFo
mRate = (int) rate; mRate = (int) rate;
mGain = 1.0; mGain = 1.0;
mPan = 0.0; mPan = 0.0;
mOldGain[0] = 0.0;
mOldGain[1] = 0.0;
mWaveColorIndex = 0; mWaveColorIndex = 0;
SetDefaultName(TracksPrefs::GetDefaultAudioTrackNamePreference()); SetDefaultName(TracksPrefs::GetDefaultAudioTrackNamePreference());
SetName(GetDefaultName()); SetName(GetDefaultName());