getAmbiance function
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,
);
}