VulcanoLE/headers/VulcanoLE/Audio/Types.h

22 lines
442 B
C
Raw Normal View History

2021-02-20 18:13:51 +01:00
#pragma once
2021-05-02 17:25:03 +02:00
#define BUFFER_SIZE 1024
2021-02-20 18:13:51 +01:00
struct stereoSampleFrame {
2021-02-20 18:13:51 +01:00
float l;
float r;
};
using stereoSample = struct stereoSampleFrame;
2021-02-20 18:13:51 +01:00
struct outputSample {
explicit outputSample(int fftSize) {
leftChannel = new double[fftSize];
rightChannel = new double[fftSize];
}
~outputSample() {
delete[] leftChannel;
delete[] rightChannel;
}
double *leftChannel;
double *rightChannel;
};