Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leomccormack committed Apr 20, 2021
1 parent a2d5276 commit f1a2fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/src/ambi_roomsim/ambi_roomsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ void ambi_roomsim_create
memcpy(pData->room_dims, default_room_dims, 3*sizeof(float));
pData->chOrdering = CH_ACN;
pData->norm = NORM_SN3D;
memset(pData->src_pos, 0, ROOM_SIM_MAX_NUM_SOURCES*3*sizeof(float));
memset(pData->rec_pos, 0, ROOM_SIM_MAX_NUM_RECEIVERS*3*sizeof(float));

/* Internal */
pData->hIms = NULL;
Expand All @@ -64,7 +66,6 @@ void ambi_roomsim_create
float rec_pos[3] = {5.2f, 3.5f, 1.4f};
memcpy(pData->rec_pos[0], rec_pos, 3*sizeof(float));
memcpy(pData->rec_pos[1], rec_pos, 3*sizeof(float));

pData->new_sh_order = pData->sh_order;
pData->new_nSources = pData->nSources;
pData->new_nReceivers = pData->nReceivers;
Expand Down

0 comments on commit f1a2fb6

Please sign in to comment.