MiniAudioOutputContextPlatformInterface class abstract

Abstract audio output context: configure a sink, push PCM, control it.

Lifecycle: create → configure → start → writeFrames* → (stop/clear) → destroy. Controls (volume/pan/pitch) may be set before or after configure; they persist across re-configure.

Properties

bufferedFrames int
Frames currently queued (readable) in the ring.
no setter
hashCode int
The hash code for this object.
no setterinherited
isStarted bool
Whether playback is currently running.
no setter
pan double
Stereo pan: -1.0 = left, 0.0 = center, +1.0 = right.
getter/setter pair
pitch double
Playback rate / pitch: 1.0 = normal (alters speed and pitch).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume double
Master gain: 0.0 = silence, 1.0 = unity (may exceed 1).
getter/setter pair
writableFrames int
Free space (writable frames) in the ring.
no setter

Methods

addLostListener(MiniAVContextLostListener listener) → void Function()
Subscribe to a one-shot lost notification (output device removed).
clear() Future<void>
Drop all queued samples (flush / seek).
configure(String deviceId, MiniAVAudioInfo format, {int bufferFrames = 0}) Future<void>
Configure the output stream. format describes the PCM you will push (float32 is the canonical layout). bufferFrames is the ring depth (0 = ~100 ms at the format's sample rate).
destroy() Future<void>
Destroy this context and release resources.
getConfiguredFormat() Future<MiniAVAudioInfo>
The configured stream format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Begin playback. On web this resumes the AudioContext, so call it from a user gesture (e.g. a Play button) to satisfy autoplay policy.
stop() Future<void>
Pause playback. Queued samples remain buffered; start resumes.
toString() String
A string representation of this object.
inherited
writeFrames(Float32List interleaved, int frameCount) int
Push interleaved float32 PCM. Returns the number of frames accepted, which may be less than frameCount when the ring is full (the caller drops the remainder in live mode, or retries after a short delay in paced mode). Synchronous — this is the per-chunk hot path.

Operators

operator ==(Object other) bool
The equality operator.
inherited