audio library
Microphone and playback capture, and the PCM sink.
Classes
- MethodChannelXAudioCapture
-
Production XAudioCapture:
ux/audio_capturefor commands,ux/audio_capture/eventsfor frames and state. - MethodChannelXAudioSink
-
Production XAudioSink:
ux/audio_sinkfor commands,ux/audio_sink/eventsfor 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.