18 Commits

Author SHA1 Message Date
Roman Fomin
e4ec2abd6f
building dependencies with vcpkg on Linux (#1724) 2024-06-06 16:18:28 +07:00
Roman Fomin
31b1e31bbf don't use ilammy/msvc-dev-cmd
Windows-2022 image now contains two installations of vcpkg, see:
https://github.com/microsoft/vcpkg/issues/31808 Don't use Visual Studio
version, switch to MSBuild.
2023-06-08 09:51:21 +07:00
Roman Fomin
92ccae60cc update vcpkg 2023-06-04 21:41:20 +07:00
Roman Fomin
3d3c376ca3 try to fix vcpkg 2023-06-04 21:22:53 +07:00
Roman Fomin
8c33950982 vcpkg: fix sndfile FluidSynth option
* Ignore `C:/Strawberry/perl` PATH in Windows-2022 image. Turns out it contains a broken pkg-config.

* Remove PkgConfigHelper.

* Restore "*.sf3" soundfonts loading.
2023-05-02 13:17:35 +07:00
Roman Fomin
e334052144 disable ".sf3" loading for now
We can fix it, but I don't think it's worth it. I still don't like how it works
(decompress all samples on load).
2023-05-01 10:31:34 +07:00
Roman Fomin
02c06002a2 vcpkg: try to enable sndfile for fluidsynth 2023-05-01 10:22:25 +07:00
Roman Fomin
b49f0adbf4 restore vcpkg.json 2023-04-24 09:13:26 +07:00
Roman Fomin
c4a5b3adc2 default sndfile features include mpeg 2023-04-24 09:09:20 +07:00
Roman Fomin
8faec5ac90 vcpkg: tweak sndfile and fluidsynth features 2023-04-23 18:46:38 +07:00
Roman Fomin
8f214e167f add PkgConfigHelper.cmake, update FindFluidSynth.cmake 2023-04-21 10:07:05 +07:00
Roman Fomin
168317a113
switch to libxmp from libmodplug (#999)
* switch to libxmp from libmodplug

* disable vcpkg build for now
2023-04-20 16:42:41 +07:00
Roman Fomin
732d5878c7 add schema to vcpkg.json 2023-04-08 14:37:10 +07:00
Roman Fomin
8058a800d3
implement modplug stream module (#976)
* update workflows

* implement stream_module_t interface, use it for sndfile and modplug

This way we got the proper pause, loop and gain for the modplug module.
2023-04-06 18:59:53 +07:00
Roman Fomin
1a278d6105
switch to OpenAl for sound mixing (#967)
* switch to OpeanAl for sound mixing

* Rewrote Load_SNDFile() to use float format. Made libsndfile mandatory.

* update main.yml workflow

* implement OpeanAl music streaming

* remove i_sdlmusic.c and SDL_Mixer dependecy

* enable mpeg support in libsndfile

* require SndFile 1.1.0

* check SF_FORMAT_MPEG_LAYER_III symbol

* use AL_GAIN for opl_gain
2023-04-04 19:46:58 +07:00
Fabian Greffrath
95cde386eb
load sound lumps with libsndfile (#864)
* Load sound lumps with libsndfile

* factor out entire sound lump loading into i_sndfile.c

* fix void pointer arithmetics

* fix wav buffer length calculation

* include libsndfile in vcpkg CI
2023-01-11 08:37:45 +01:00
Fabian Greffrath
b22ef7e580 CI: enable libsamplerate support for SDL2 2023-01-09 08:31:13 +01:00
Roman Fomin
b69852fb07
switch to vcpkg for MSVC build (#855)
* switch to vcpkg for MSVC build

* Remove library downloads and install in MSYS2 environment.

* Add vcpkg.json with dependencies.

* add vcpkg to CI

* fix parallel linking conflict (files with the same name)

* use vcpkg targets (fix debug build)

* delete cross compilation toolchain files, update README.md

* switch to ninja for MSVC build

* turn off MSYS2 update

* use binary caching feature, save to GitHub using NuGet backend

* This works much more robust, also it's recommended method:
  https://github.com/microsoft/vcpkg/blob/master/docs/users/binarycaching.md

* move MSVC workflow to separate file, don't run it on pull request
2022-12-30 20:44:59 +07:00