playSound method
SilentSound
playSound({
- required AssetReference assetReference,
- bool keepAlive = false,
- double? gain,
- bool looping = false,
- double pitchBend = 1.0,
override
Play a sound with the given assetReference
.
Implementation
@override
SilentSound playSound({
required final AssetReference assetReference,
final bool keepAlive = false,
final double? gain,
final bool looping = false,
final double pitchBend = 1.0,
}) =>
SilentSound(
channel: this,
gain: gain ?? assetReference.gain,
keepAlive: keepAlive,
looping: looping,
pitchBend: pitchBend,
);