Warble class

Warble is a Flutter src.plugin for the go-flutter desktop embedding which can play audio from files, assets, or in-memory buffers.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

ensureAsset(AssetBundle source, String name) Future<bool>
ensureAsset ensures that an audio asset has been inflated and cached to the filesystem.
getStream(String id) Future<WarbleStream?>
getStream returns a WarbleStream corresponding to a given ID.
listStreams() Future<List<WarbleStream>>
listStreams returns a list of all currently-loaded WarbleStreams known to the plugin.
wrapAsset(AssetBundle source, String name, {bool buffered = false}) Future<WarbleStream?>
wrapAsset inflates an audio asset to the filesystem (if it has not been inflated by a previous call to wrapAsset or ensureAsset), and returns a WarbleStream which can be used to play the asset.
wrapBuffer(String name, Uint8List buffer, AudioFormat format, {bool buffered = true}) Future<WarbleStream?>
wrapBuffer accepts a byte buffer and returns a WarbleStream which can be used to play it.
wrapFile(File file, {String? name, bool buffered = false}) Future<WarbleStream?>
wrapFile accepts a file and returns a WarbleStream which can be used to play it.