Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebu/libear
A C++ library to render ADM content according to Recommendation ITU-R BS.2127
https://github.com/ebu/libear
Last synced: 20 days ago
JSON representation
A C++ library to render ADM content according to Recommendation ITU-R BS.2127
- Host: GitHub
- URL: https://github.com/ebu/libear
- Owner: ebu
- License: apache-2.0
- Created: 2019-07-15T14:38:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T09:37:23.000Z (7 months ago)
- Last Synced: 2024-08-01T03:22:22.637Z (4 months ago)
- Language: C++
- Homepage:
- Size: 573 KB
- Stars: 28
- Watchers: 7
- Forks: 10
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# libear — Recommendation ITU-R BS.2127 core library
[![](https://github.com/ebu/libear/workflows/Linux/badge.svg)](https://github.com/ebu/libear/actions?workflow=Linux)
[![](https://github.com/ebu/libear/workflows/macOS/badge.svg)](https://github.com/ebu/libear/actions?workflow=macOS)
[![](https://github.com/ebu/libear/workflows/Windows/badge.svg)](https://github.com/ebu/libear/actions?workflow=Windows)
[![Documentation Status](https://readthedocs.org/projects/libear/badge/?version=latest)](https://libear.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/ebu/libear/branch/master/graph/badge.svg)](https://codecov.io/gh/ebu/libear)*libear* is a C++14 library to render ADM content according to [Recommendation
ITU-R BS.2127](https://www.itu.int/rec/R-REC-BS.2127). It is not a complete
application, but provides components to calculate gains and apply them to
audio, for embedding into applications which need to render ADM content.[Read the documentation](https://libear.readthedocs.io/en/latest/) to get
started.## Installation
### Dependencies
- compiler with C++14 support
- Boost header libraries (version 1.57 or later)
- Boost.Optional
- Boost.Variant
- CMake build system (version 3.5 or later)### Installation
To manually install the library you have to recursively clone the git
repository and then use the CMake build system to build and install it.``` shell
git clone --recursive https://github.com/ebu/libear.git
cd libear
mkdir build && cd build
cmake ..
make
make install
```### Use from CMake Projects
As the library uses CMake as a build system it is really easy to set up
and use if your project does too. Assuming you have installed the
library, the following code shows a complete CMake example to compile a
program which uses the libear.``` cmake
cmake_minimum_required(VERSION 3.5)
project(libear_example VERSION 1.0.0 LANGUAGES CXX)find_package(ear REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example PRIVATE ear)
```### Use as a Subproject
If you prefer not to install the library on your system you can also use
the library as a CMake subproject. Just add the folder containing the
repository to your project (for example, by using a git submodule) and
you can use the ear target:``` cmake
cmake_minimum_required(VERSION 3.5)
project(libear_example VERSION 1.0.0 LANGUAGES CXX)add_subdirectory(submodules/libear)
add_executable(example example.cpp)
target_link_libraries(example PRIVATE ear)
```Note that if `libear` is used as a CMake subproject the default values of the
options- `EAR_UNIT_TESTS`
- `EAR_EXAMPLES`
- `EAR_PACKAGE_AND_INSTALL`are automatically set to `FALSE`.
## License
```
Copyright 2019 The libear AuthorsLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```