feat(voice): replaced miniaudio with native platform audio backends

- Replaced the miniaudio dependency with custom OS audio device abstractions and backends.
- Implemented platform-specific audio playback and capture for macOS (Audio Queue), Windows (WASAPI), and Linux (PulseAudio/ALSA).
- Added a fallback stub backend returning errors for unsupported platforms.
- Updated audio stream handling with reliable fill guard wakeups and streamlined rate validation.
This commit is contained in:
can1357
2026-08-07 23:34:16 +02:00
parent bc5eee4e24
commit 7cae7ef3f5
17 changed files with 2555 additions and 14386 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ ENV BUN_INSTALL=/opt/bun \
PATH=/opt/bun/bin:/usr/local/cargo/bin:/usr/local/bin:/usr/bin:/bin \
CARGO_TERM_COLOR=never
# clang/libclang-dev: bindgen for maudio-sys (miniaudio); cmake/make/ninja-build:
# audiopus_sys builds bundled libopus via CMake (native audio stack, 17.1.1+).
# clang/libclang-dev: bindgen for pipewire-sys/libspa-sys (Linux desktop capture);
# cmake/make/ninja-build: audiopus_sys builds bundled libopus via CMake.
# bazelisk: hermetic bazel launcher for the native addon build (17.1.5+).
RUN apt-get update \
&& apt-get install -y --no-install-recommends \