audio library

Microphone and playback capture, and the PCM sink.

Classes

MethodChannelXAudioCapture
Production XAudioCapture: ux/audio_capture for commands, ux/audio_capture/events for frames and state.
MethodChannelXAudioSink
Production XAudioSink: ux/audio_sink for commands, ux/audio_sink/events for drain and state.
XAudioCapture
Live PCM from a microphone or from what the device plays, tapped natively and delivered to Dart as XAudioFrames of mono 16 kHz Int16 samples.
XAudioFrame
One chunk of captured microphone audio: mono signed 16-bit PCM at XAudioCapture.sampleRate, with the RMS level of that chunk.
XAudioSink
Push-based playback of mono 16 kHz Int16 PCM: enqueue chunks as they arrive and they play back-to-back, starting before the stream ends.
XAudioSource
An input XAudioCapture.start can open, as the OS names it.

Enums

XAudioCaptureState
Lifecycle of the tap.
XAudioSinkState
Lifecycle of the playback queue.
XAudioSourceKind
What an XAudioSource taps.

Exceptions / Errors

XAudioCaptureException
Thrown by XAudioCapture.start when the tap cannot open, and by XAudioCapture.sources when the platform reply breaks the wire contract.
XAudioSinkException
Thrown by XAudioSink.enqueue when the output cannot open.