1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-04 06:09:28 +02:00

Fix comments for WaveTrackFactory, remove friend

This commit is contained in:
Paul Licameli 2020-08-22 21:16:27 -04:00
parent 4ca3e7096f
commit 0e10a27172
2 changed files with 9 additions and 12 deletions

View File

@ -17,14 +17,13 @@
\brief Used only by WaveTrack, a special way to hold location that
can accommodate merged regions.
*//****************************************************************//**
*//****************************************************************/
\class WaveTrackFactory
\brief Used to create a WaveTrack, or a LabelTrack.. Implementation
of the functions of this class are dispersed through the different
Track classes.
*//*******************************************************************/
/*!
@class WaveTrackFactory
@brief Used to create or clone a WaveTrack, with appropriate context
from the project that will own the track.
*/
#include "WaveTrack.h"

View File

@ -673,11 +673,9 @@ class AUDACITY_DLL_API WaveTrackFactory final
private:
const ProjectSettings &mSettings;
SampleBlockFactoryPtr mpFactory;
friend class AudacityProject;
public:
// These methods are defined in WaveTrack.cpp, NoteTrack.cpp,
// LabelTrack.cpp, and TimeTrack.cpp respectively
std::shared_ptr<WaveTrack> DuplicateWaveTrack(const WaveTrack &orig);
std::shared_ptr<WaveTrack> NewWaveTrack(sampleFormat format = (sampleFormat)0,
double rate = 0);
std::shared_ptr<WaveTrack> NewWaveTrack(
sampleFormat format = (sampleFormat)0,
double rate = 0);
};