natiny_audio_shutdown
void natiny_audio_shutdown(void);
Stops audio output and clears all audio sources and listeners.
Example
natiny_audio_shutdown();
Notes
- Source and listener handles become invalid for the audio API. To resume
audio, call
natiny_audio_initand 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_destroyandnatiny_audio_listener_destroybefore shutdown if their entity handles must also be invalidated. natiny_backend_shutdownalready performs audio shutdown and also destroys all clips.- Calling this without an open audio device is safe and still clears sources and listeners.