[Headphone Filter] Minor changes
Change a variable type, to avoid a warning. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
833e298d3d
commit
e6908ac945
|
@ -15,10 +15,10 @@
|
||||||
vDSP_DFT_Setup dftSetupF;
|
vDSP_DFT_Setup dftSetupF;
|
||||||
vDSP_DFT_Setup dftSetupB;
|
vDSP_DFT_Setup dftSetupB;
|
||||||
|
|
||||||
size_t fftSize;
|
int fftSize;
|
||||||
size_t fftSizeOver2;
|
int fftSizeOver2;
|
||||||
size_t bufferSize;
|
int bufferSize;
|
||||||
size_t paddedBufferSize;
|
int paddedBufferSize;
|
||||||
int channelCount;
|
int channelCount;
|
||||||
|
|
||||||
DSPSplitComplex signal_fft;
|
DSPSplitComplex signal_fft;
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
- (id)initWithImpulseFile:(NSURL *)url forSampleRate:(double)sampleRate withInputChannels:(int)channels withConfig:(uint32_t)config;
|
- (id)initWithImpulseFile:(NSURL *)url forSampleRate:(double)sampleRate withInputChannels:(int)channels withConfig:(uint32_t)config;
|
||||||
|
|
||||||
- (void)process:(const float *)inBuffer sampleCount:(size_t)count toBuffer:(float *)outBuffer;
|
- (void)process:(const float *)inBuffer sampleCount:(int)count toBuffer:(float *)outBuffer;
|
||||||
|
|
||||||
- (void)reset;
|
- (void)reset;
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,7 @@ static impulseCache *_sharedController = nil;
|
||||||
|
|
||||||
paddedBufferSize = fftSize;
|
paddedBufferSize = fftSize;
|
||||||
fftSizeOver2 = (fftSize + 1) / 2;
|
fftSizeOver2 = (fftSize + 1) / 2;
|
||||||
const size_t fftSizeOver2Plus1 = fftSizeOver2 + 1; // DFT float overwrites plus one, double doesn't
|
const int fftSizeOver2Plus1 = fftSizeOver2 + 1; // DFT float overwrites plus one, double doesn't
|
||||||
|
|
||||||
dftSetupF = vDSP_DFT_zrop_CreateSetup(nil, fftSize, vDSP_DFT_FORWARD);
|
dftSetupF = vDSP_DFT_zrop_CreateSetup(nil, fftSize, vDSP_DFT_FORWARD);
|
||||||
dftSetupB = vDSP_DFT_zrop_CreateSetup(nil, fftSize, vDSP_DFT_INVERSE);
|
dftSetupB = vDSP_DFT_zrop_CreateSetup(nil, fftSize, vDSP_DFT_INVERSE);
|
||||||
|
|
Loading…
Reference in New Issue