Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)

option(BUILD_SHARED_LIBS "Build shared library" ON)

add_definitions(-DIAMF_PRIMARY_PROFILE=001)
add_definitions(-DIAMF_ADDITIONAL_PROFILE=001)

set(CODEC_LIB_DIR "${PROJECT_SOURCE_DIR}/dep_codecs/lib")
set(CODEC_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/dep_codecs/include")
set(EXTER_LIB_DIR "${PROJECT_SOURCE_DIR}/dep_external/lib")
Expand Down Expand Up @@ -131,6 +128,7 @@ if(BUILD_SHARED_LIBS)
if(HOA_BINAURALIZER)
target_link_libraries (${PROJECT_NAME} iamf2resonance)
endif()
target_link_libraries (${PROJECT_NAME} m)
else()
add_library(${PROJECT_NAME} STATIC ${DIR_DEP_EXTERNAL_WAV} ${DIR_IAMF_COMMON}
${DIR_IAMF_DEC_OPUS} ${DIR_IAMF_DEC_AAC} ${DIR_IAMF_DEC_PCM}
Expand Down
6 changes: 4 additions & 2 deletions code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ repository:
### Basic build

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

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

The IAMF library has few configuration options, There are one option which is used to enable binaural rendering:
Build binaural rendering configuration options. These have the form `MULTICHANNEL_BINAURALIZER` and `HOA_BINAURALIZER`.
(If binaural rendering is not enabled, there is no need to provide external libraries)
(If binaural rendering is not enabled, there is no need to provide external libraries)
~~~
$ cmake ./ -DMULTICHANNEL_BINAURALIZER=ON -DHOA_BINAURALIZER=ON
$ make
Expand Down Expand Up @@ -152,6 +153,7 @@ To produce binaural output, please download the following file and place it in y
10 : Sound system extension 712 (2+7+0)
11 : Sound system extension 312 (2+3+0)
12 : Sound system mono (0+1+0)
13 : Sound system extension 916 (6+9+0)
b : Binaural.
-p [dB] : Peak threshold in dB.
-l [LKFS] : Normalization loudness(<0) in LKFS.
Expand Down
1 change: 1 addition & 0 deletions code/dep_external/include/bear/iamf_bear_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ extern "C" {
EXPORT_API void* CreateBearAPI(char* tf_data_path);
EXPORT_API void DestroyBearAPI(void* pv_thiz);
EXPORT_API int ConfigureBearDirectSpeakerChannel(void* pv_thiz, int layout,
int sp_flags,
size_t nsample_per_frame,
int sample_rate);
EXPORT_API int SetBearDirectSpeakerChannel(void* pv_thiz, int source_id,
Expand Down
Binary file modified code/dep_external/lib/binaural/libiamf2bear.so
Binary file not shown.
Binary file modified code/dep_external/lib/binaural/libiamf2resonance.so
Binary file not shown.
Loading