natiny_audio_shutdown

C
void natiny_audio_shutdown(void);

Stops audio output and clears all audio sources and listeners.

Example

C
natiny_audio_shutdown();

Notes

  • Source and listener handles become invalid for the audio API. To resume audio, call natiny_audio_init and create new sources and listeners.
  • Clips remain valid and can be reused after audio is initialized again. Destroy them separately with natiny_clip_destroy.
  • 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.
  • natiny_backend_shutdown already performs audio shutdown and also destroys all clips.
  • Calling this without an open audio device is safe and still clears sources and listeners.