43 for (
uint j=0; j<maxIdx; j++)
49 for (
uint i=0; i<numIn; i++) {
50 jack_default_audio_sample_t *in = ( jack_default_audio_sample_t* ) jack_port_get_buffer (
inputPorts[i], nframes );
51 for (
uint j=0; j<maxIdx; j++)
83 Eigen::Array<float, Eigen::Dynamic, 1> sinusoidPhase(N, 1), sinusoid(N, 1);
84 sinusoidPhase=Eigen::Array<float, Eigen::Dynamic, 1>::LinSpaced(N,0.,(
double)N/(
double)
getSampleRate())*2.*M_PI;
86 sinusoid=Eigen::Matrix<float,Eigen::Dynamic, 1>::Zero(N,1);
91 audio.col(0).block(0,0,N,1)=sinusoid;
int currentOutputChannel
The current output channel to test.
virtual int processAudio(jack_nframes_t nframes)
The Jack client callback.
virtual int createPorts(string inName, int inCnt, string outName, int outCnt)
int currentInputChannel
The current input channel to test.
unsigned int zeroSampleCnt
The number of samples to train with zeros.
MixerTestAudio()
Constructor.
float gain
The gain for the output.
Mutex recordLock
The lock for when the audio is being played/recorded.
#define NO_ERROR
There is no error.
int samplesProcessed
The number of samples already processed.
vector< float > testFrequencies
Superimposed sinusoidal test frequencies.
int getSampleRate(void) const
virtual ~MixerTestAudio()
Destructor.
int samplesToProcess
The number of samples to process, matching the duration.
vector< jack_port_t * > inputPorts
The input ports.
int setChannels(int outCnt, int inCnt, int testOutCnt)
virtual int destroyPorts()
vector< jack_port_t * > outputPorts
The output ports.
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic > audio
The first channel is the same data sent over each output channel, then the output channels...