Skip to content

Commit 226522b

Browse files
yilun-zhangstdaede
authored andcommitted
Update iamf2bear api typo
1 parent d1e51f7 commit 226522b

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

code/dep_external/include/bear/iamf_bear_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" {
3939
#endif
4040

4141
EXPORT_API void* CreateBearAPI(char* tf_data_path);
42-
EXPORT_API void DestoryBearAPI(void* pv_thiz);
42+
EXPORT_API void DestroyBearAPI(void* pv_thiz);
4343
EXPORT_API int ConfigureBearDirectSpeakerChannel(void* pv_thiz, int layout,
4444
size_t nsample_per_frame,
4545
int sample_rate);
@@ -49,7 +49,7 @@ EXPORT_API int SetBearDirectSpeakerChannel(void* pv_thiz, int source_id,
4949
// EXPORT_API void SetBearObjectChannel(...);
5050
// EXPORT_API int ConfigureBearHOAChannel(...);
5151
// EXPORT_API void SetBearHOAChannel(...);
52-
EXPORT_API void DestoryBearChannel(void* pv_thiz, int source_id);
52+
EXPORT_API void DestroyBearChannel(void* pv_thiz, int source_id);
5353
EXPORT_API int GetBearRenderedAudio(void* pv_thiz, int source_id, float** out);
5454

5555
#ifdef __cplusplus
-4 KB
Binary file not shown.

code/dep_external/src/binaural/iamf2bear/iamf2bear.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ extern "C" EXPORT_API void *CreateBearAPI(char *tf_data_path)
154154
}
155155
}
156156

157-
extern "C" EXPORT_API void DestoryBearAPI(void *pv_thiz)
157+
extern "C" EXPORT_API void DestroyBearAPI(void *pv_thiz)
158158
{
159159
int i;
160160
BearAPIImplement *thiz = (BearAPIImplement *)pv_thiz;
@@ -374,7 +374,7 @@ extern "C" EXPORT_API int SetBearDirectSpeakerChannel(void *pv_thiz, int source_
374374
return (-1);
375375
}
376376

377-
extern "C" EXPORT_API void DestoryBearChannel(void *pv_thiz, int source_id)
377+
extern "C" EXPORT_API void DestroyBearChannel(void *pv_thiz, int source_id)
378378
{
379379
BearAPIImplement *thiz = (BearAPIImplement *)pv_thiz;
380380

code/dep_external/src/binaural/iamf2bear/iamf_bear_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern "C" {
3939
#endif
4040

4141
EXPORT_API void* CreateBearAPI(char* tf_data_path);
42-
EXPORT_API void DestoryBearAPI(void* pv_thiz);
42+
EXPORT_API void DestroyBearAPI(void* pv_thiz);
4343
EXPORT_API int ConfigureBearDirectSpeakerChannel(void* pv_thiz, int layout,
4444
size_t nsample_per_frame,
4545
int sample_rate);
@@ -49,7 +49,7 @@ EXPORT_API int SetBearDirectSpeakerChannel(void* pv_thiz, int source_id,
4949
// EXPORT_API void SetBearObjectChannel(...);
5050
// EXPORT_API int ConfigureBearHOAChannel(...);
5151
// EXPORT_API void SetBearHOAChannel(...);
52-
EXPORT_API void DestoryBearChannel(void* pv_thiz, int source_id);
52+
EXPORT_API void DestroyBearChannel(void* pv_thiz, int source_id);
5353
EXPORT_API int GetBearRenderedAudio(void* pv_thiz, int source_id, float** out);
5454

5555
#ifdef __cplusplus

code/src/iamf_dec/m2b_rdr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void IAMF_element_renderer_deinit_M2B(binaural_filter_t* binaural_f,
6464
for (i = 0; i < N_SOURCE_ELM; i++) {
6565
if (binaural_f->m2b_elm_id[i] == elm_id) {
6666
if (binaural_f->m2b_source_id[i] >= 0) {
67-
DestoryBearChannel(binaural_f->m2b_api, binaural_f->m2b_source_id[i]);
67+
DestroyBearChannel(binaural_f->m2b_api, binaural_f->m2b_source_id[i]);
6868
binaural_f->m2b_elm_id[i] = -1;
6969
binaural_f->m2b_source_id[i] = -1;
7070
}
@@ -76,7 +76,7 @@ void IAMF_element_renderer_deinit_M2B(binaural_filter_t* binaural_f,
7676
}
7777
}
7878
if (i == N_SOURCE_ELM) {
79-
DestoryBearAPI(binaural_f->m2b_api);
79+
DestroyBearAPI(binaural_f->m2b_api);
8080
binaural_f->m2b_init = 0;
8181
}
8282
}

0 commit comments

Comments
 (0)