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

Static Methods

load(String url, [ SoundLoadOptions soundLoadOptions ]) → Future<SoundSprite>

Constructors

SoundSprite()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
segmentNames → List<String>

read-only
segments → List<SoundSpriteSegment>

read-only
sound Sound

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

getSegment(String name) SoundSpriteSegment

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
play(String name, [ bool loop, SoundTransform soundTransform ]) SoundChannel

toString() → String

Returns a string representation of this object.

inherited