SoundHandle extension type
A handle for a sound that is currently playing.
SoLoud's methods, such as play(), return the SoundHandle of the
newly instanced sound. That handle can then be used in other methods,
such as stop() or seek(), to affect that particular instance.
On the C++ side, sound handles are just raw integers. On the Dart side, they are implemented as an extension type around int that makes them statically type safe. It is not possible, for example, to mistakenly pass a random integer number as if it was a handle, or a sound hash as if it was a handle.
Constructors are marked internal because it should not be possible for users to create a handle from Dart.
- on
Constructors
- SoundHandle(int id)
-
Constructs a valid handle with
id.const