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:
10
src/Mix.h
10
src/Mix.h
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user