fix(audio): keep 512-frame power-of-two default on SDL2 fallback #1550
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1550
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/sdl2-audio-samples-power-of-two"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Keeps
want.samplesdefaulting to512(power of two) on the SDL2 fallback branch whenSDL_AUDIO_DEVICE_SAMPLE_FRAMESis unset, while preserving480on SDL3 and honoringenv_sampleson both paths. Also tightenstests/test_sdl_audio_library.pyto explicitly verify both the SDL3 hint and the SDL2want.samplesassignment.Why
Follow-up to review feedback from @hckrman101 on #1329: SDL2's
SDL_AudioSpecdocumentation specifies a power-of-two buffer size forsamples, and checking the SDL2 assignment explicitly in the regression test ensuresenv_samplescannot be silently ignored in the SDL2 branch.How it was tested
python3 tests/test_sdl_audio_library.py(4 passed).