#ifndef __ISUB_TYPES__
#define __ISUB_TYPES__
typedef enum {
e_iSubAltInterface_8bit_Mono = 1,
e_iSubAltInterface_8bit_Stereo,
e_iSubAltInterface_16bit_Mono,
e_iSubAltInterface_16bit_Stereo,
e_iSubAltInterface_20bit_Mono,
e_iSubAltInterface_20bit_Stereo,
} iSubAltInterfaceType;
typedef struct _iSubAudioFormat {
iSubAltInterfaceType altInterface;
UInt32 numChannels;
UInt32 bytesPerSample;
UInt32 outputSampleRate;
} iSubAudioFormatType;
typedef struct _sPreviousValues {
float xl_1;
float xr_1;
float xl_2;
float xr_2;
float yl_1;
float yr_1;
float yl_2;
float yr_2;
} PreviousValues;
typedef struct _iSubProcessingParams_t {
float srcPhase;
float srcState;
PreviousValues filterState;
PreviousValues filterState2;
PreviousValues phaseCompState;
float *lowFreqSamples;
float *highFreqSamples;
SInt16 *iSubBuffer;
UInt32 iSubBufferLen;
UInt32 iSubLoopCount;
SInt32 iSubBufferOffset;
iSubAudioFormatType iSubFormat;
UInt32 sampleRate;
UInt32 adaptiveSampleRate;
} iSubProcessingParams_t, *iSubProcessingParamsPtr_t;
#endif