You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
char*sofa_filepath; /**< absolute/relevative file path for a sofa file */
99
107
float*hrirs; /**< time domain HRIRs; N_hrir_dirs x 2 x hrir_len */
100
108
float*hrir_dirs_deg; /**< directions of the HRIRs in degrees [azi elev]; N_hrir_dirs x 2 */
101
-
intN_hrir_dirs;/**< number of HRIR directions in the current sofa file */
102
-
inthrir_len;/**< length of the HRIRs, this can be truncated, see "saf_sofa_reader.h" */
103
-
inthrir_fs;/**< sampling rate of the HRIRs, should ideally match the host sampling rate, although not required */
109
+
_Atomic_INT32N_hrir_dirs; /**< number of HRIR directions in the current sofa file */
110
+
_Atomic_INT32hrir_len; /**< length of the HRIRs, this can be truncated, see "saf_sofa_reader.h" */
111
+
_Atomic_INT32hrir_fs; /**< sampling rate of the HRIRs, should ideally match the host sampling rate, although not required */
104
112
105
113
/* vbap gain table for panning the HRIRs */
106
114
inthrtf_vbapTableRes[2]; /**< [azi elev] step sizes in degrees */
@@ -134,40 +142,40 @@ typedef struct _ambi_dec
134
142
float_complex***binframeTF; /**< Output binaural signals in the time-frequency domain; #HYBRID_BANDS x #NUM_EARS x #TIME_SLOTS */
135
143
void*hSTFT; /**< afSTFT handle */
136
144
intafSTFTdelay; /**< for host delay compensation */
137
-
intfs;/**< host sampling rate */
145
+
_Atomic_INT32fs; /**< host sampling rate */
138
146
floatfreqVector[HYBRID_BANDS]; /**< frequency vector for time-frequency transform, in Hz */
139
147
140
148
/* our codec configuration */
141
-
CODEC_STATUScodecStatus;/**< see #CODEC_STATUS */
142
-
floatprogressBar0_1;/**< Current (re)initialisation progress, between [0..1] */
149
+
_Atomic_CODEC_STATUScodecStatus; /**< see #CODEC_STATUS */
150
+
_Atomic_FLOAT32progressBar0_1; /**< Current (re)initialisation progress, between [0..1] */
143
151
char*progressBarText; /**< Current (re)initialisation step, string */
144
152
ambi_dec_codecPars*pars; /**< codec parameters */
145
153
146
154
/* internal variables */
147
-
intloudpkrs_nDims; /**< dimensionality of the current loudspeaker set-up */
148
-
intnew_nLoudpkrs; /**< if new_nLoudpkrs != nLoudpkrs, afSTFT is reinitialised (current value will be replaced by this after next re-init) */
149
-
intnew_binauraliseLS; /**< if new_binauraliseLS != binauraliseLS, ambi_dec is reinitialised (current value will be replaced by this after next re-init) */
150
-
intnew_masterOrder; /**< if new_masterOrder != masterOrder, ambi_dec is reinitialised (current value will be replaced by this after next re-init) */
155
+
intloudpkrs_nDims; /**< dimensionality of the current loudspeaker set-up */
156
+
_Atomic_INT32new_nLoudpkrs; /**< if new_nLoudpkrs != nLoudpkrs, afSTFT is reinitialised (current value will be replaced by this after next re-init) */
157
+
_Atomic_INT32new_binauraliseLS; /**< if new_binauraliseLS != binauraliseLS, ambi_dec is reinitialised (current value will be replaced by this after next re-init) */
158
+
_Atomic_INT32new_masterOrder; /**< if new_masterOrder != masterOrder, ambi_dec is reinitialised (current value will be replaced by this after next re-init) */
151
159
152
160
/* flags */
153
-
PROC_STATUSprocStatus; /**< see #PROC_STATUS */
154
-
intreinit_hrtfsFLAG; /**< 0: no init required, 1: init required */
155
-
intrecalc_hrtf_interpFLAG[MAX_NUM_LOUDSPEAKERS]; /**< 0: no init required, 1: init required */
161
+
_Atomic_PROC_STATUSprocStatus;/**< see #PROC_STATUS */
162
+
_Atomic_INT32reinit_hrtfsFLAG; /**< 0: no init required, 1: init required */
163
+
_Atomic_INT32recalc_hrtf_interpFLAG[MAX_NUM_LOUDSPEAKERS]; /**< 0: no init required, 1: init required */
156
164
157
165
/* user parameters */
158
-
intmasterOrder; /**< Current maximum/master decoding order */
159
-
intorderPerBand[HYBRID_BANDS]; /**< Ambisonic decoding order per frequency band 1..SH_ORDER */
160
-
AMBI_DEC_DECODING_METHODSdec_method[NUM_DECODERS]; /**< decoding methods for each decoder, see #AMBI_DEC_DECODING_METHODS enum */
0 commit comments