getAmbiance function

Ambiance getAmbiance({
  1. required AssetList assets,
  2. required Sound sound,
  3. Point<double>? position,
})

Get an ambiance from the given sound.

Implementation

Ambiance getAmbiance({
  required final AssetList assets,
  required final Sound sound,
  final Point<double>? position,
}) {
  final reference = getAssetReferenceReference(assets: assets, id: sound.id);
  return Ambiance(
    sound: reference.reference,
    gain: sound.gain,
    position: position,
  );
}