Merge pull request #296 from RobLoach/audiostream-unload-fixes

AudioStream: Only Unload() if it's ready
This commit is contained in:
Rob Loach
2024-02-27 15:09:54 -05:00
committed by GitHub

View File

@@ -90,7 +90,9 @@ class AudioStream : public ::AudioStream {
* Unload audio stream and free memory
*/
void Unload() {
::UnloadAudioStream(*this);
if (IsReady()) {
::UnloadAudioStream(*this);
}
}
/**