diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-11-16 10:16:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-16 10:16:59 +0100 |
| commit | 0fb86bc5bafca5fefc1d6a16e8d585659c8a7c01 (patch) | |
| tree | a84126ed48f92555f4160d065db3d816134f6b93 | |
| parent | 6c171494571f4208a050a9fa7b1adf24b5a7a8aa (diff) | |
| parent | 613fd4a3e9a93f71253e5d5179333a44b16e48e4 (diff) | |
Merge pull request #1375 from CrackedPixel/fix-3ds-audio-issue
[audio] fixed issue in 3ds shutdown
| -rw-r--r-- | sokol_audio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sokol_audio.h b/sokol_audio.h index 47290c9d..bce5631a 100644 --- a/sokol_audio.h +++ b/sokol_audio.h @@ -2473,10 +2473,11 @@ _SOKOL_PRIVATE void _saudio_n3ds_backend_shutdown(void) { if (_saudio.backend.n3ds_desc.channel_id >= 0) { ndspChnWaveBufClear(_saudio.backend.n3ds_desc.channel_id); - ndspExit(); _saudio.backend.n3ds_desc.channel_id = -1; } + ndspExit(); + _saudio_free(_saudio.backend.queue_n3ds); _saudio_free(_saudio.backend.buffer_n3ds); _saudio_free(_saudio.backend.buffer); |