Skip to content

Replace union with struct in audio_mixer_voice#192

Merged
inactive123 merged 1 commit intolibretro:masterfrom
phcoder:fixunion
Apr 5, 2022
Merged

Replace union with struct in audio_mixer_voice#192
inactive123 merged 1 commit intolibretro:masterfrom
phcoder:fixunion

Conversation

@phcoder
Copy link
Copy Markdown
Contributor

@phcoder phcoder commented Apr 5, 2022

audio_mixer_play_ogg calls stb_vorbis_close if types.ogg.stream is set
but it overlaps with wav.position and stb_vorbis_close ends up freeing
unallocated space and crashing

Space saving is minor, so let's just split the variants

audio_mixer_play_ogg calls stb_vorbis_close if types.ogg.stream is set
but it overlaps with wav.position and stb_vorbis_close ends up freeing
unallocated space and crashing

Space saving is minor, so let's just split the variants
@phcoder
Copy link
Copy Markdown
Contributor Author

phcoder commented Apr 5, 2022

@twinaphex
@RobLoach This causes ChaiLove to crash

@inactive123 inactive123 merged commit 1c2f24e into libretro:master Apr 5, 2022
@RobLoach
Copy link
Copy Markdown
Member

RobLoach commented Apr 5, 2022

@phcoder Thanks for the investigation here! Was wondering what was causing that to happen 🤔

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