Skip to content

Refactor and improve audio system - #77

Merged
dogo merged 1 commit into
masterfrom
refactor/audio
Sep 14, 2024
Merged

Refactor and improve audio system#77
dogo merged 1 commit into
masterfrom
refactor/audio

Conversation

@dogo

@dogo dogo commented Sep 14, 2024

Copy link
Copy Markdown
Owner
  • 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.

- 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.
@dogo
dogo merged commit e734857 into master Sep 14, 2024
@dogo
dogo deleted the refactor/audio branch September 14, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant