From bef86811c9a08711b45523193b2ac7c13850f8c6 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 3 Aug 2024 13:36:16 +1000 Subject: [PATCH] revert libsamplerate addition sadge --- .github/workflows/build_linux.yml | 2 +- source/CMakeLists.txt | 2 -- source/application/StarMainApplication_sdl.cpp | 3 --- source/vcpkg.json | 6 +----- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index 252b467..307b30f 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -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 diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index cdd32f1..d13d59d 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -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 $ $,SDL2::SDL2,SDL2::SDL2-static> ) diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 49d085a..c697a26 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -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())); diff --git a/source/vcpkg.json b/source/vcpkg.json index d397f03..f603aab 100644 --- a/source/vcpkg.json +++ b/source/vcpkg.json @@ -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",