revert libsamplerate addition

sadge
This commit is contained in:
Kae 2024-08-03 13:36:16 +10:00
parent 4f511c2aaa
commit bef86811c9
4 changed files with 2 additions and 11 deletions

View File

@ -20,7 +20,7 @@ jobs:
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libxmu-dev libxi-dev libgl-dev libglu1-mesa-dev libsamplerate0-dev libsdl2-dev
sudo apt-get install -y pkg-config libxmu-dev libxi-dev libgl-dev libglu1-mesa-dev libsdl2-dev
- name: Install CMake & Ninja
uses: lukka/get-cmake@latest

View File

@ -486,11 +486,9 @@ set(STAR_EXT_LIBS ${STAR_EXT_LIBS}
)
if(STAR_BUILD_GUI)
find_package(SampleRate CONFIG REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
set(STAR_EXT_GUI_LIBS
SampleRate::samplerate
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
)

View File

@ -271,9 +271,6 @@ 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()));

View File

@ -2,11 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
"glew",
"libsamplerate",
{
"name": "sdl2",
"features": [ "samplerate" ]
},
"sdl2",
"libvorbis",
"zlib",
"freetype",