22 lines
442 B
C
22 lines
442 B
C
#pragma once
|
|
#define BUFFER_SIZE 1024
|
|
|
|
struct stereoSampleFrame {
|
|
float l;
|
|
float r;
|
|
};
|
|
|
|
using stereoSample = struct stereoSampleFrame;
|
|
|
|
struct outputSample {
|
|
explicit outputSample(int fftSize) {
|
|
leftChannel = new double[fftSize];
|
|
rightChannel = new double[fftSize];
|
|
}
|
|
~outputSample() {
|
|
delete[] leftChannel;
|
|
delete[] rightChannel;
|
|
}
|
|
double *leftChannel;
|
|
double *rightChannel;
|
|
}; |