Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate SFX code to miniaudio #49

Closed
Tracked by #42
nmlgc opened this issue Aug 19, 2023 · 0 comments
Closed
Tracked by #42

Migrate SFX code to miniaudio #49

nmlgc opened this issue Aug 19, 2023 · 0 comments
Assignees
Labels
Portability Porting the game away from 32-bit Windows

Comments

@nmlgc
Copy link
Owner

nmlgc commented Aug 19, 2023

SDL's audio subsystem would be fully DIY and software-mixed, so we do have to use another library if we don't want to write our own panning and SFX/BGM looping code. SDL_mixer's architecture with a fixed amount of channels doesn't really fit a vintage DirectSound-based system with unlimited buffers, is quite bloated with codecs we'll probably never use, and would still require me to write BGM looping code myself. miniaudio, on the other hand, is pretty much perfect for want we want to do here:

  • Directly portable to every platform that matters
  • Can output via SDL_audio for platforms it doesn't support natively
  • Sane defaults
  • Decently documented
  • Allows us to do everything we want to do in the foreseeable future in a single line of code
  • Comes with exactly the codecs we need, and no more
  • Made by the same developer who also wrote the best FLAC library back in 2018, which I used for thcrap's BGM modding
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portability Porting the game away from 32-bit Windows
Projects
None yet
Development

No branches or pull requests

1 participant