SoundSprite class
A SoundSprite combines multiple audio files into a single audio file.
iOS, Windows Phone and some Android phones have very limited HTML5 audio support. They only support playing single file at a time and loading in new files requires user interaction and has a big latency. To overcome this there is a technique to combine all audio into single file and only play/loop certain parts of that file
To generate SoundSprites, please check this GitHub repository: https://github.com/realbluesky/soundsprite
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segmentNames
→ List<
String> -
no setter
-
segments
→ List<
SoundSpriteSegment> -
no setter
- sound → Sound
-
no setter
Methods
-
getSegment(
String name) → SoundSpriteSegment -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
String name, [bool? loop, SoundTransform? soundTransform]) → SoundChannel -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
load(
String url, [SoundLoadOptions? soundLoadOptions]) → Future< SoundSprite>