2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
#ifndef LUPPP_TRACK_OUTPUT_H
|
|
|
|
#define LUPPP_TRACK_OUTPUT_H
|
|
|
|
|
2013-07-28 14:14:25 +02:00
|
|
|
#include "audioprocessor.hxx"
|
|
|
|
|
|
|
|
class TrackOutput : public AudioProcessor
|
2013-07-27 23:36:58 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TrackOutput(int t, AudioProcessor* ap) :
|
|
|
|
track(t),
|
2013-07-28 14:14:25 +02:00
|
|
|
previousInChain(ap)
|
2013-07-27 23:36:58 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// copies the track output to master buffer, sidechain & post-side buffer
|
|
|
|
void process(int nframes, Buffers* buffers)
|
|
|
|
{
|
2013-07-28 14:14:25 +02:00
|
|
|
if ( previousInChain )
|
|
|
|
{
|
|
|
|
previousInChain->process( nframes, buffers );
|
|
|
|
}
|
2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
for(int i = 0; i < nframes; i++)
|
|
|
|
{
|
|
|
|
// copy data here
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
int track;
|
|
|
|
|
|
|
|
float _toMaster;
|
|
|
|
|
|
|
|
float _toReverb;
|
|
|
|
float _toSidechain;
|
|
|
|
float _toPostSidechain;
|
|
|
|
|
|
|
|
/// Pointer to "previous" processor: the graph is backwards
|
|
|
|
AudioProcessor* previousInChain;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LUPPP_TRACK_OUTPUT_H
|
|
|
|
|