TeamsPeach native capture DSP (dsp/)
===================================================================

The native microphone capture processor is linked as Rust code from TeamsPeach's
dsp/ crate. It runs Sonora's integrated AEC3, noise suppression and adaptive AGC2
chain according to the selected settings. There is no renderer WebAssembly ABI.
The noise-only filter-bank implementation remains a Rust-test-only behavioral
reference, not a second production capture stage.

Pinned Sonora packages include (all 0.3.0, BSD-3-Clause):
  sonora, sonora-aec3, sonora-agc2, sonora-common-audio,
  sonora-fft, sonora-ns, sonora-simd.

Source:     https://github.com/dignifiedquire/sonora
Commit:     1632d47c1e77d0857f9145bd175134b348541e11 (per the published crates'
            .cargo_vcs_info.json)
Registry:   crates.io; package checksums (SHA-256 of the .crate files)
            sonora              0.3.0  d461e6c9ad112f8728919387a4bc5639fd28631f2070171efad38676e907edd8
            sonora-aec3         0.3.0  f2809c3fda13f71deac22d0ddb6c02c493f254d3da2afe59a7e256a8f15bcffe
            sonora-agc2         0.3.0  501b5dd3f8bdc8c983dc64a131cef22a429f3ff879d6f0007b8bfe46ec7b96aa
            sonora-common-audio 0.3.0  2c05dfa300c14dc8498751ce2c5b87aad2acf1892d4f9d66b92ae2f372a83410
            sonora-fft          0.3.0  ec3529f2cf748f1acc85d9403ffa08a3fe69dec6bf22383910b3bd21aca2fd26
            sonora-ns           0.3.0  31c0a62e78419a174dbf9c9c01943c1ecd8c298a68d15c4fb4906cb19f0428b9
            sonora-simd         0.3.0  f939d8e63a2a0baa7555294d7b09c5e3d382f28358755b920e13ad527658c8fa

sonora is a pure Rust port of the WebRTC Native Code audio processing module
(M145 plus later upstream fixes), via PulseAudio's webrtc-audio-processing
extraction. TeamsPeach vendors sonora and sonora-agc2, retaining local mono AGC2
borrowed-channel processing to avoid frame copies. Upstream 0.3.0's generic limiter
subsumes the former local limiter descriptor-allocation patch. Exact modified files,
upstream archive checksums and patch scope are in dsp/vendor/provenance.json;
upstream license and copyright texts are retained in each vendored package.
Other pinned Sonora packages use their registry sources. No end-to-end
allocation-free guarantee or bit-identical behavior with TeamSpeak's proprietary
DSP is claimed.

The native executable also uses the Rust standard library (core, alloc, std and
its bundled allocator and math routines), licensed MIT OR Apache-2.0. Current
resolved DSP dependency license texts are in denoise-THIRD-PARTY-NOTICES.txt;
that file includes locked optional, build-time and target-specific dependencies
and is not a complete inventory of the native executable's dependencies.

License of the Sonora packages (BSD-3-Clause, verbatim):

Copyright (c) 2011, The WebRTC Project Authors. All rights reserved.
Copyright (c) 2016, Arun Raghavan and contributors. All rights reserved.
Copyright (c) 2026, dignifiedquire. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.

  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.

  * Neither the name of Google nor the names of its contributors may
    be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
