AudioMusicParam class

Music playback parameters.

Describes the music resource and playback behavior used by MusicStore.startPlay. The SDK supports playing multiple tracks simultaneously, so each track is identified by a unique id used to control start/stop/volume and so on.

Constructors

AudioMusicParam({int id = 0, String? path, int loopCount = 0})

Properties

hashCode → int
The hash code for this object.
no setterinherited
id ↔ int
Music ID. Since the SDK allows playing multiple tracks at the same time, this ID is used to mark a track for start/stop/volume control, etc. When 0, an ID will be generated internally based on path.
getter/setter pair
loopCount ↔ int
Number of times to loop the track. 0 means play once without looping.
getter/setter pair
path ↔ String?
Full path or URL of the audio file. Supported formats: MP3, AAC, M4A, WAV.
getter/setter pair
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