27#ifndef __DECORRELATOR_INTERNAL_H_INCLUDED__
28#define __DECORRELATOR_INTERNAL_H_INCLUDED__
42#if !defined(DECORRELATOR_FRAME_SIZE)
43# if defined(FRAME_SIZE)
44# define DECORRELATOR_FRAME_SIZE ( FRAME_SIZE )
46# define DECORRELATOR_FRAME_SIZE ( 128 )
49#define HOP_SIZE ( 128 )
50#define HYBRID_BANDS ( HOP_SIZE + 5 )
51#define TIME_SLOTS ( DECORRELATOR_FRAME_SIZE / HOP_SIZE )
54#if (DECORRELATOR_FRAME_SIZE % HOP_SIZE != 0)
55# error "DECORRELATOR_FRAME_SIZE must be an integer multiple of HOP_SIZE"
66typedef struct _decorrelator
PROC_STATUS
Current status of the processing loop.
CODEC_STATUS
Current status of the codec.
#define HYBRID_BANDS
Number of frequency bands.
A multi-channel decorrelator.
void decorrelator_setCodecStatus(void *const hDecor, CODEC_STATUS newStatus)
Sets codec status.
Main include header for the Spatial_Audio_Framework (SAF)
Include header for SAF externals.
Main structure for decorrelator.
int enableTransientDucker
1: transient extractor is enabled, 0: disabled
float ** InputFrameTD
Input time-domain signals; MAX_NUM_CHANNELS x DECORRELATOR_FRAME_SIZE.
int new_nChannels
New number of input/output channels (current value will be replaced by this after next re-init)
float progressBar0_1
Current (re)initialisation progress, between [0..1].
CODEC_STATUS codecStatus
see CODEC_STATUS
float_complex *** InputFrameTF
Input time-frequency domain signals; HYBRID_BANDS x MAX_NUM_CHANNELS x TIME_SLOTS.
float decorAmount
The mix between decorrelated signals and the input signals [0..1], 1: fully decorrelated 0: bypassed.
float_complex *** transientFrameTF
Transient time-frequency domain signals; HYBRID_BANDS x MAX_NUM_CHANNELS x TIME_SLOTS.
void * hSTFT
afSTFT handle
char * progressBarText
Current (re)initialisation step, string.
float ** OutputFrameTD
Output time-domain signals; MAX_NUM_CHANNELS x DECORRELATOR_FRAME_SIZE.
int afSTFTdelay
for host delay compensation
void * hDucker
Transient extractor/Ducker handle.
int nChannels
Current number of input/output channels.
int compensateLevel
1: apply a sqrt(nChannels)/nChannels scaling on the output signals, 0: disabled
float_complex *** OutputFrameTF
Output time-frequency domain signals; HYBRID_BANDS x MAX_NUM_CHANNELS x TIME_SLOTS.
PROC_STATUS procStatus
see PROC_STATUS
void * hDecor
Decorrelator handle.