unregisterSound
unregisterSound(
alias):void
Defined in: audio/src/assets.ts:107
Remove a sound registered by registerSound. A no-op for aliases
this API never registered. An AudioBuffer is a plain GC’d object with no
destroy step, so unlike unregisterTexture there’s no resource to release
— the registered alias simply stops resolving.
Only evicts the library entry while it still holds the registered sound:
if an asset preloaded under the same alias overwrote it after
registration, that entry belongs to the asset pipeline and is left in
place. An alias registered before AudioPlugin installs is dropped before
it ever reaches the library.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void