1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-29 16:08:46 +01:00

Track::SetLinked() and Track::SetChannel() are private...

... but class WaveTrack needs to invoke SetLinked still during project load
This commit is contained in:
Paul Licameli
2018-09-20 12:28:41 -04:00
parent beebe648fb
commit 32d767c7f5
2 changed files with 6 additions and 2 deletions

View File

@@ -327,8 +327,11 @@ private:
Track *GetLink() const;
bool GetLinked () const { return mLinked; }
public:
friend WaveTrack; // WaveTrack needs to call SetLinked when reloading project
void SetLinked (bool l);
void SetChannel(ChannelType c) { mChannel = c; }
private:
// No need yet to make this virtual
void DoSetLinked(bool l);
@@ -380,7 +383,6 @@ public:
void Offset(double t) { SetOffset(GetOffset() + t); }
virtual void SetOffset (double o) { mOffset = o; }
void SetChannel(ChannelType c) { mChannel = c; }
virtual void SetPan( float ){ ;}
virtual void SetPanFromChannelType(){ ;};