Skip to content

Commit

Permalink
Refactor and improve audio system:
Browse files Browse the repository at this point in the history
- Fix potential uninitialized variable issue in `oslDecodeWav` by initializing `streambuffer` to NULL and checking before freeing it.
- Add null checks and improve error handling in `oslAudioCallback_PlaySound_WAV`, `oslAudioCallback_AudioCallback_WAV`, `oslAudioCallback_ReactiveSound_WAV`, and `oslAudioCallback_StandBy_WAV`.
- Improve `oslAudioCallback_DeleteSound_WAV` with added null safety and proper memory management.
- Refactor `oslLoadSoundFileWAV` for better error handling, memory safety, and readability, including consolidated error handling and memory deallocation in case of failure.
  • Loading branch information
dogo committed Sep 14, 2024
1 parent 2be7c05 commit af4665c
Showing 1 changed file with 669 additions and 623 deletions.
Loading

0 comments on commit af4665c

Please sign in to comment.