Skip to content

Commit 25f6ed3

Browse files
committed
renamed parameter
1 parent 5a48ffe commit 25f6ed3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/include/tvconv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ int tvconv_getNumListenerPositions(void* const hTVCnv);
141141
float tvconv_getListenerPosition(void* const hTVCnv, int index, int dim);
142142

143143
/** Returns the index of the current IR position */
144-
int tvconv_getPositionIdx(void* const hTVCnv);
144+
int tvconv_getListenerPositionIdx(void* const hTVCnv);
145145

146146
/** Returns the current coordinate of dimension dim (0 ... NUM_DIMENSIONS-1) */
147147
float tvconv_getTargetPosition(void* const hTVCnv, int dim);

examples/src/tvconv/tvconv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ void tvconv_create
5858
pData->nListenerPositions = 0;
5959
pData->position_idx = 0;
6060
for (int d = 0; d < NUM_DIMENSIONS; d++){
61+
pData->sourcePosition[d] = 0.0f;
6162
pData->targetPosition[d] = 0.0f;
6263
pData->minDimensions[d] = 0.0f;
6364
pData->maxDimensions[d] = 0.0f;
@@ -355,7 +356,7 @@ float tvconv_getListenerPosition(void* const hTVCnv, int index, int dim)
355356
return pData->listenerPositions[index][dim];
356357
}
357358

358-
int tvconv_getPositionIdx(void* const hTVCnv)
359+
int tvconv_getListenerPositionIdx(void* const hTVCnv)
359360
{
360361
tvconv_data *pData = (tvconv_data*)(hTVCnv);
361362
return pData->position_idx;

0 commit comments

Comments
 (0)