mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 23:33:50 +02:00
All tracks allocated with make_shared, no more make_unique...
... so that we can use Track::SharedPointer without undefined behavior even on tracks that don't yet belong to any TrackList. Also fix the return type of function template TrackList::Add and remove some casts.
This commit is contained in:
@@ -49,7 +49,8 @@ class WaveTrackCache;
|
||||
void MixAndRender(TrackList * tracks, TrackFactory *factory,
|
||||
double rate, sampleFormat format,
|
||||
double startTime, double endTime,
|
||||
std::unique_ptr<WaveTrack> &uLeft, std::unique_ptr<WaveTrack> &uRight);
|
||||
std::shared_ptr<WaveTrack> &uLeft,
|
||||
std::shared_ptr<WaveTrack> &uRight);
|
||||
|
||||
void MixBuffers(unsigned numChannels, int *channelFlags, float *gains,
|
||||
samplePtr src,
|
||||
|
||||
Reference in New Issue
Block a user