1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

MixAndRender returns unique_ptr results (in a std::pair)

This commit is contained in:
Paul Licameli
2016-03-13 03:14:46 -04:00
parent 3015a9c8d9
commit c4fc7e2bf0
4 changed files with 34 additions and 32 deletions

View File

@@ -12,6 +12,8 @@
#ifndef __AUDACITY_MIX__
#define __AUDACITY_MIX__
#include "MemoryX.h"
#include <utility>
#include <wx/string.h>
#include "SampleFormat.h"
@@ -36,10 +38,12 @@ class WaveTrackConstArray;
* no explicit time range to process, and the whole occupied length of the
* input tracks is processed.
*/
bool MixAndRender(TrackList * tracks, TrackFactory *factory,
std::pair<
std::unique_ptr<WaveTrack>,
std::unique_ptr<WaveTrack>
> MixAndRender(TrackList * tracks, TrackFactory *factory,
double rate, sampleFormat format,
double startTime, double endTime,
WaveTrack **newLeft, WaveTrack **newRight);
double startTime, double endTime);
void MixBuffers(int numChannels, int *channelFlags, float *gains,
samplePtr src,