NAME
audio.h - Bark full-duplex audio capture, playback, tone synthesis, and device enumeration.
SYNOPSIS
Classes
Audio input or output device descriptor returned by bark_audio_list_devices().
Configuration options for bark_audio_start() and bark_audio_reconfigure().
Audio capture and device callbacks.
Macros
Built-in noise-gate AudioWorklet processor identifier.
Typedefs
Opaque audio engine handle.
Audio input or output device descriptor returned by bark_audio_list_devices().
Configuration options for bark_audio_start() and bark_audio_reconfigure().
Audio capture and device callbacks.
Functions
Create an audio engine handle.
Start audio capture and playback with cfg.
Reconfigure devices or processing hints without recreating the handle.
Stop audio capture and playback.
Enumerate audio input/output devices (delivers snapshot via on_devices).
Set linear playback gain [0.0..2.0] for mixer slot.
Read recent output peak amplitude [0..1] for mixer slot.
Push 48 kHz mono float32 PCM samples into playback mixer slot.
Mute (muted != 0) or unmute microphone transmission.
Enable or disable local microphone sidetone monitoring.
Update a named float parameter on an attached browser AudioWorklet.
Synthesize a brief notification sine tone at freq_hz for duration_ms.
Read recent microphone capture peak amplitude in [0..1].
Pump main-thread audio callbacks (on_devices, on_input_level).
Stop and destroy the audio engine handle.
Detailed Description
Bark full-duplex audio capture, playback, tone synthesis, and device enumeration.
Headless audio capture, playback, device enumeration, and multi-slot PCM mixer.
Runs identically over native OS audio devices (miniaudio) and browser WebAudio. Application-specific DSP (noise gates, push-to-talk, ASR feeds) plugs into on_capture_pcm().
Author
Generated automatically by Doxygen for Bark from the source code.