Skip to content

Commit bdde678

Browse files
yilun-zhangstdaede
authored andcommitted
Implement V1.1 reference
1 parent 0ff3bea commit bdde678

33 files changed

Lines changed: 3682 additions & 1031 deletions

code/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
88

99
option(BUILD_SHARED_LIBS "Build shared library" ON)
1010

11-
add_definitions(-DIAMF_PRIMARY_PROFILE=001)
12-
add_definitions(-DIAMF_ADDITIONAL_PROFILE=001)
13-
1411
set(CODEC_LIB_DIR "${PROJECT_SOURCE_DIR}/dep_codecs/lib")
1512
set(CODEC_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/dep_codecs/include")
1613
set(EXTER_LIB_DIR "${PROJECT_SOURCE_DIR}/dep_external/lib")

code/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ repository:
4242
### Basic build
4343

4444
"build.sh" is an example to build, you can run it directly at your side.
45-
(dependent [codec libraries](dep_codecs/lib) and [external libraries](dep_external/lib/binaural) complied under x64 linux have been provided in advance)
45+
(dependent [codec libraries](dep_codecs/lib) and [external libraries](dep_external/lib/binaural) complied under x64 linux have been provided in advance,
46+
if compile other platform version, please refer to [dependent codecs](dep_codecs/README.md) and [dependent externals])
4647

4748
CMake replaces the configure step typical of many projects. Running CMake will
4849
produce configuration and build files for the currently selected CMake
@@ -58,7 +59,7 @@ form of a makefile build is the following:
5859

5960
The IAMF library has few configuration options, There are one option which is used to enable binaural rendering:
6061
Build binaural rendering configuration options. These have the form `MULTICHANNEL_BINAURALIZER` and `HOA_BINAURALIZER`.
61-
(If binaural rendering is not enabled, there is no need to provide external libraries)
62+
(If binaural rendering is not enabled, there is no need to provide external libraries)
6263
~~~
6364
$ cmake ./ -DMULTICHANNEL_BINAURALIZER=ON -DHOA_BINAURALIZER=ON
6465
$ make
@@ -152,6 +153,7 @@ To produce binaural output, please download the following file and place it in y
152153
10 : Sound system extension 712 (2+7+0)
153154
11 : Sound system extension 312 (2+3+0)
154155
12 : Sound system mono (0+1+0)
156+
13 : Sound system extension 916 (6+9+0)
155157
b : Binaural.
156158
-p [dB] : Peak threshold in dB.
157159
-l [LKFS] : Normalization loudness(<0) in LKFS.

code/dep_external/include/bear/iamf_bear_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ extern "C" {
4141
EXPORT_API void* CreateBearAPI(char* tf_data_path);
4242
EXPORT_API void DestroyBearAPI(void* pv_thiz);
4343
EXPORT_API int ConfigureBearDirectSpeakerChannel(void* pv_thiz, int layout,
44+
int sp_flags,
4445
size_t nsample_per_frame,
4546
int sample_rate);
4647
EXPORT_API int SetBearDirectSpeakerChannel(void* pv_thiz, int source_id,
17.2 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)