Skip to content

Commit a23a03e

Browse files
addressing build error for GCC
1 parent bd350a8 commit a23a03e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/src/test__examples.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void test__saf_example_ambi_dec(void){
193193
}
194194

195195
void test__saf_example_ambi_enc(void){
196-
int nSH, i, ch, framesize, j, delay;
196+
int nSH, i, ch, framesize, j;//, delay;
197197
void* hAmbi;
198198
float direction_deg[2][2];
199199
float** inSig, *y;
@@ -208,7 +208,7 @@ void test__saf_example_ambi_enc(void){
208208
direction_deg[0][1] = 0.0f;
209209
direction_deg[1][0] = 20.0f; /* encode to loudspeaker direction: index 8 */
210210
direction_deg[1][1] = -45.0f;
211-
delay = ambi_enc_getProcessingDelay();
211+
//delay = ambi_enc_getProcessingDelay();
212212

213213
/* Create and initialise an instance of ambi_enc */
214214
ambi_enc_create(&hAmbi);

test/src/test__reverb_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
void test__ims_shoebox_RIR(void){
2828
void* hIms;
2929
float maxTime_s;
30-
float mov_src_pos[3], mov_rec_pos[3];
30+
_Atomic_FLOAT32 mov_src_pos[3], mov_rec_pos[3];
3131
int sourceID_1, sourceID_3, sourceID_4, receiverID;
3232
int i;
3333

@@ -98,7 +98,7 @@ void test__ims_shoebox_RIR(void){
9898
void test__ims_shoebox_TD(void){
9999
void* hIms;
100100
float maxTime_s;
101-
float mov_src_pos[3], mov_rec_pos[3];
101+
_Atomic_FLOAT32 mov_src_pos[3], mov_rec_pos[3];
102102
float** src_sigs, ***rec_sh_outsigs;
103103
int sourceIDs[4], receiverIDs[1];
104104
int i;

test/src/test__utilities_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ void test__quaternion(void){
175175

176176
for(i=0; i<1000; i++){
177177
/* Randomise the quaternion values */
178-
rand_m1_1(Q.Q, 4);
178+
rand_m1_1((float*)Q.Q, 4);
179179

180180
/* Normalise to make it valid */
181-
norm = L2_norm(Q.Q, 4);
181+
norm = L2_norm((float*)Q.Q, 4);
182182
Q.w /= norm;
183183
Q.x /= norm;
184184
Q.y /= norm;

0 commit comments

Comments
 (0)