SushiEngine::Simulation::ISoundSource
resolve_sound
virtual std::uint32_t resolve_sound(const Database::AssetId &asset) const =0Parameters
| Name | Type | Description |
|---|---|---|
asset | const Database::AssetId & | The emitter's AudioEmitterParameters::sound_asset. |
Returns
std::uint32_t
The handle, or 0 when the id names no sound this source can load — the emitter then keeps its id and is asked again next frame, rather than losing what the author put on it.
Description
Resolves one authored asset id to a playable sound handle.

