Skip to content

Commit

Permalink
Simplify HRTF filter, change option to reflect it
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
  • Loading branch information
kode54 committed Oct 2, 2023
1 parent 2eabd72 commit 4d0123e
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 427 deletions.
17 changes: 3 additions & 14 deletions Audio/Output/HeadphoneFilter.h
Expand Up @@ -12,26 +12,15 @@
#import <Cocoa/Cocoa.h>

@interface HeadphoneFilter : NSObject {
vDSP_DFT_Setup dftSetupF;
vDSP_DFT_Setup dftSetupB;

int fftSize;
int fftSizeOver2;
int bufferSize;
int paddedBufferSize;
int channelCount;

DSPSplitComplex signal_fft;
DSPSplitComplex input_filtered_signal_per_channel[2];
DSPSplitComplex input_filtered_signal_totals[2];
DSPSplitComplex *impulse_responses;

float **mirroredImpulseResponses;

float **prevInputs;

float *left_result;
float *right_result;

float *paddedSignal;
float *paddedSignal[2];
}

+ (BOOL)validateImpulseFile:(NSURL *)url;
Expand Down

0 comments on commit 4d0123e

Please sign in to comment.