2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
#ifndef LUPPP_TRACK_OUTPUT_H
|
|
|
|
#define LUPPP_TRACK_OUTPUT_H
|
|
|
|
|
2013-08-13 01:02:59 +02:00
|
|
|
#include <iostream>
|
2013-07-30 01:56:13 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2013-08-15 18:17:16 +02:00
|
|
|
#include "buffers.hxx"
|
2013-08-06 22:55:57 +02:00
|
|
|
#include "config.hxx"
|
2013-07-28 14:14:25 +02:00
|
|
|
#include "audioprocessor.hxx"
|
|
|
|
|
2013-07-28 14:31:07 +02:00
|
|
|
#include "eventhandler.hxx"
|
|
|
|
#include "dsp/dsp_dbmeter.hxx"
|
|
|
|
|
2013-07-28 14:14:25 +02:00
|
|
|
class TrackOutput : public AudioProcessor
|
2013-07-27 23:36:58 +02:00
|
|
|
{
|
|
|
|
public:
|
2013-08-15 18:17:16 +02:00
|
|
|
TrackOutput(int t, AudioProcessor* ap);
|
2013-07-28 14:31:07 +02:00
|
|
|
|
|
|
|
/// set main mix, 0-1
|
2013-08-15 18:17:16 +02:00
|
|
|
void setMaster(float value);
|
|
|
|
|
|
|
|
float getMaster();
|
2013-08-05 14:28:43 +02:00
|
|
|
|
|
|
|
/// set send
|
2013-08-15 18:17:16 +02:00
|
|
|
void setSend( int send, float value );
|
2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
/// copies the track output to master buffer, sidechain & post-side buffer
|
2013-08-16 00:51:09 +02:00
|
|
|
void process(unsigned int nframes, Buffers* buffers);
|
2013-07-31 03:27:27 +02:00
|
|
|
|
2013-08-15 18:17:16 +02:00
|
|
|
~TrackOutput();
|
2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
int track;
|
|
|
|
|
|
|
|
float _toMaster;
|
|
|
|
|
|
|
|
float _toReverb;
|
|
|
|
float _toSidechain;
|
|
|
|
float _toPostSidechain;
|
|
|
|
|
|
|
|
/// Pointer to "previous" processor: the graph is backwards
|
|
|
|
AudioProcessor* previousInChain;
|
2013-07-28 14:31:07 +02:00
|
|
|
|
|
|
|
// Metering variables
|
|
|
|
long uiUpdateCounter;
|
|
|
|
long uiUpdateConstant;
|
|
|
|
DBMeter dbMeter;
|
2013-07-27 23:36:58 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LUPPP_TRACK_OUTPUT_H
|
|
|
|
|