diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-08-03 11:54:08 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-08-03 11:54:08 +1000 |
commit | 908fa1ee606b80eec47c6fc70ce018308ef06e98 (patch) | |
tree | 61b3248cb01c1946f169612a15f04e7cbd4c068a /source/application/StarMainApplication_sdl.cpp | |
parent | 497c6efc5555f3c45b7e092b461f39a3d89de865 (diff) |
Add libsamplerate, make Voice bitrate configurable
Diffstat (limited to 'source/application/StarMainApplication_sdl.cpp')
-rw-r--r-- | source/application/StarMainApplication_sdl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index c697a26..49d085a 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -271,6 +271,9 @@ public: #endif Logger::info("Application: Initializing SDL Audio"); +#if SDL_VERSION_ATLEAST(2, 0, 26) + SDL_SetHint(SDL_HINT_AUDIO_RESAMPLING_MODE, "fast"); +#endif if (SDL_InitSubSystem(SDL_INIT_AUDIO)) throw ApplicationException(strf("Couldn't initialize SDL Audio: {}", SDL_GetError())); |