Skip to content

Conversation

OvJat
Copy link

@OvJat OvJat commented Sep 21, 2025

MIX_CreateSineWaveAudio() has a bug: MIX_LoadAudioWithProperties() require MIX_PROP_AUDIO_LOAD_IOSTREAM_POINTER, but MIX_CreateSineWaveAudio() not set it, MIX_LoadAudioWithProperties always fail.

I set a dummy SDL_IOStream to walk around it , and it works.

PS: The current Unit Test only cover a little code, shall we write high cover Unit Test using GoogleTest?

@sezero sezero requested a review from icculus September 21, 2025 10:08
@icculus
Copy link
Collaborator

icculus commented Sep 21, 2025

Let me see if we can reasonably make this work without making a dummy iostream before we merge this.

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.

3 participants