playSound method

  1. @override
SilentSound playSound({
  1. required AssetReference assetReference,
  2. bool keepAlive = false,
  3. double? gain,
  4. bool looping = false,
  5. 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,
    );