natiny.audio.shutdown

Lua
natiny.audio.shutdown()

Stops audio output and clears all audio sources and listeners.

Example

Lua
natiny.audio.shutdown()

Notes

  • The entity nodes that back sources and listeners are not destroyed by this call. Use natiny.audio.source_destroy and natiny.audio.listener_destroy before shutdown if their entity handles must also be invalidated.