From 8180153253ec6198e412f1ed7a37c05f8a45b797 Mon Sep 17 00:00:00 2001 From: yero Date: Wed, 25 Nov 2026 19:27:10 +0800 Subject: [PATCH 1/3] Archives the repository --- README.md | 112 +++--------------------------------------------------- 1 file changed, 5 insertions(+), 107 deletions(-) diff --git a/README.md b/README.md index e0650b7..4f8512a 100644 --- a/README.md +++ b/README.md @@ -1,109 +1,7 @@ # Open Binaural Renderer (obr) -The `obr` binaural rendering library is designed to render immersive audio content. - -## Features - -The library is written using C++ and it utilizes [Bazel](https://bazel.build/) build system. A CMake configuration is -also provided. - -The library renders the following types of Audio Elements: - -* Ambisonics (from 1st to 4th order). -* Channel-based (e.g. 5.1, 7.1.4). See [Loudspeaker Layouts](docs/loudspeaker_layouts.md) for the full list of supported - loudspeaker layouts. -* Object-based. The API allows for controlling the position of the object in the 3D space. Currently only single - channel, point-source objects are supported. - -### Encoding to Ambisonics - -* Handling of channel and object-based audio elements is done by encoding the required input channels into an - intermediate Ambisonic bed and subsequently rendering the bed using a set of FIR filters matching its Ambisonic order. -* The calculation of spherical harmonic (SH) coefficients used during the encoding process is based on - the [Resonance Audio](https://github.com/resonance-audio/resonance-audio/)' - s [AssociatedLegendrePolynomialsGenerator](https://github.com/resonance-audio/resonance-audio/blob/master/resonance_audio/ambisonics/associated_legendre_polynomials_generator.h) - class. - -### Ambisonics to Binaural - -* The binaural renderer is based on the principle of using Head Related Transfer Functions (HRTFs) and Binaural Room - Impulse Responses (BRIRs) decomposed using SH coefficients. -* The FIR filters were designed as a combination of anechoic and reverberant filters. -* The FIR filtering (convolution) mechanism employed in this library is based on - the [Resonance Audio](https://github.com/resonance-audio/resonance-audio/)' - s [AmbisonicBinauralDecoder](https://github.com/resonance-audio/resonance-audio/blob/master/resonance_audio/ambisonics/ambisonic_binaural_decoder.h) - class and its dependencies. -* The library uses asymmetric binaural processing, this means it employs dedicated filters for left and right ears. -* Binaural filter matrices are loaded from embedded assets. -* The rendering filters are selected depending on the Ambisonic order matching the input Audio Element. Channel- and - object-based Audio Elements are first encoded to 3rd Order Ambisonics and then rendered using filters of the same - order, -* The following table summarizes the binaural filter lengths per each SH channel for Direct, Ambient, and Reverberant - types at a 48 kHz sampling rate: - -| Filter Type | Filter Length (samples) | Sampling Rate | -|-------------|-------------------------|---------------| -| Direct | 256 | 48 kHz | -| Ambient | 8192 | 48 kHz | -| Reverberant | 8192 | 48 kHz | - -## Usage - -### C++ API - -The `ObrImpl` class is the main interface for the binaural renderer. It provides methods to configure audio elements, -process audio buffers, and retrieve information about the renderer. See [obr_cli_lib.cc](obr/cli/obr_cli_lib.cc) for an -example -of how to use the library. Listed below are the main methods required to configure the renderer and process audio data. - -#### Constructor - -In order to instantiate the renderer, the `ObrImpl` constructor needs to be called. It takes the following arguments: - -* `buffer_size_per_channel`: The size of the audio processing buffer for each audio channel. -* `sampling_rate`: The sampling rate of the audio data. - -```cpp -ObrImpl(int buffer_size_per_channel, int sampling_rate); -``` - -#### Configuration - -In order to render immersive audio using `obr`, the renderer needs to be configured using the `AddAudioElement` method. -The method accepts `AudioElementType` enums defined within the [audio_element_type.h](obr/renderer/audio_element_type.h) -file and `BinauralFilterProfile` enums defined within -the [audio_element_config.h](obr/renderer/audio_element_config.h) file. If the second argument is not provided, the -filter type defaults to `kAmbient`. - -```cpp -absl::Status AddAudioElement(AudioElementType type, - BinauralFilterProfile filter_type); -``` - -#### Audio processing callback - -Once the renderer is configured, the rendering of audio data can be done using the `Process` method. The method uses [ -`AudioBuffer`](obr/audio_buffer/audio_buffer.h) class for storing input and output audio data. - -```cpp - void Process(const AudioBuffer& input_buffer, AudioBuffer* output_buffer); -``` - -### Command Line Interface (CLI) - -The command line interface provides a straightforward way to render audio files of certain types. The CLI is built as a -standalone executable and can be run as follows: - -``` - obr_cli - --input_type=<1OA|2OA|3OA|4OA|7.1.4|OBA> - --oba_metadata_file= (required for OBA) - --input_file= - --output_file= - --buffer_size= (optional, default is 256) - --filter_type= (optional, default is Ambient) -``` - -## Testing - -The library is tested using Google Test framework. The tests are located in `test` subdirectories. +> [!IMPORTANT] +> **This repository is archived and no longer maintained.** +> +> Development continues at [**AOMediaCodec/oar**](https://github.com/AOMediaCodec/oar/), where `obr` +> lives as a [submodule](https://github.com/AOMediaCodec/oar/tree/main/src/renderer/obr/obr_capi/obr). From 14b9bc0ef65bcf02f4ff6554553eab40921283ff Mon Sep 17 00:00:00 2001 From: yero Date: Wed, 25 Nov 2026 20:16:42 +0800 Subject: [PATCH 2/3] Changes to warning --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4f8512a..06d49b3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Open Binaural Renderer (obr) - -> [!IMPORTANT] -> **This repository is archived and no longer maintained.** -> -> Development continues at [**AOMediaCodec/oar**](https://github.com/AOMediaCodec/oar/), where `obr` -> lives as a [submodule](https://github.com/AOMediaCodec/oar/tree/main/src/renderer/obr/obr_capi/obr). +> [!WARNING] +> **This repository is archived and no longer actively maintained.** +> It is preserved for historical reference. No new features, bug fixes, or security patches will be provided. +> For alternatives or active development, see [AOMediaCodec/oar](https://github.com/AOMediaCodec/oar/), where `obr` +> lives as a [submodule](https://github.com/AOMediaCodec/oar/tree/main/src/renderer/obr/obr_capi/obr) From ce9b09889aa34902e524a44858096d49d0b0f684 Mon Sep 17 00:00:00 2001 From: yero Date: Wed, 25 Nov 2026 20:38:04 +0800 Subject: [PATCH 3/3] Removes actions and workflows --- .github/actions/obr-builder/action.yml | 24 --------- .github/workflows/ci-bazel.yml | 69 -------------------------- 2 files changed, 93 deletions(-) delete mode 100644 .github/actions/obr-builder/action.yml delete mode 100644 .github/workflows/ci-bazel.yml diff --git a/.github/actions/obr-builder/action.yml b/.github/actions/obr-builder/action.yml deleted file mode 100644 index 8626024..0000000 --- a/.github/actions/obr-builder/action.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: obr-builder - -description: Run unit tests for obr. - -inputs: - platform: - description: "The platform to build for." - type: string - default: linux - -runs: - using: composite - steps: - - shell: bash - run: | - # Configure platform-specific settings. - if [[ "${{inputs.platform}}" == "windows" ]]; then - # Windows works best with a very short path as per https://bazel.build/configure/windows#long-path-issues. - echo "startup --output_user_root=C:/" >> .bazelrc - fi - - # Run all unit tests. - bazelisk test -c opt --test_output=errors obr/... - diff --git a/.github/workflows/ci-bazel.yml b/.github/workflows/ci-bazel.yml deleted file mode 100644 index 2db47bd..0000000 --- a/.github/workflows/ci-bazel.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Bazel build and tests on multiple platforms. - -on: [push, pull_request, workflow_dispatch] - -jobs: - linux-amd64: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Build - uses: ./.github/actions/obr-builder - with: - platform: linux - - name: Upload Bazel test logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: bazel-test-logs-linux-amd64 - path: bazel-testlogs/**/*.log - - macos-arm64: - runs-on: macos-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Build - uses: ./.github/actions/obr-builder - with: - platform: macos - - name: Upload Bazel test logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: bazel-test-logs-macos-arm64 - path: bazel-testlogs/**/*.log - - macos-amd64: - runs-on: macos-13 - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Build - uses: ./.github/actions/obr-builder - with: - platform: macos - - name: Upload Bazel test logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: bazel-test-logs-macos-amd64 - path: bazel-testlogs/**/*.log - - windows: - runs-on: windows-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Build - uses: ./.github/actions/obr-builder - with: - platform: windows - - name: Upload Bazel test logs - if: always() - uses: actions/upload-artifact@v4 - with: - name: bazel-test-logs-windows - path: bazel-testlogs/**/*.log -