Commit Graph

53 Commits (master)

Author SHA1 Message Date
Chris Robinson 6815926cc5 Update alffplay to support newer ffmpeg versions 2022-08-20 20:59:15 -07:00
Chris Robinson 13698362f1 Avoid explicitly searching for the WindowsSDK
It's causing problems with various setups. So instead we'll have to assume some
things for Windows (namely that winmm exists, and if dsound isn't in DXSDK_DIR,
it needs to be in the compiler's default paths to be usable).
2021-01-19 17:19:44 -08:00
Chris Robinson fe9ec157fd Use an import target for linking OpenSL 2020-12-24 22:49:55 -08:00
Chris Robinson ee9f0fe306 Recognize ARM64 as a VS platform 2020-11-18 04:20:10 -08:00
HALX99 de060ce09a
macOS osx/ios dynamic framework support (#466)
* OSX bundle support

* Disable framework by default, and fix domain name typo

* Remove info.plist, add efx.h for framework public header

* Fix osx/ios framework PUBLIC_HEADER doesn't work

* Refine comment message

* Auto set CFBundleShortVersionString by var LIB_VERSION

* Set CFBundleVersion from git commit count

* Use space to separate elements in a list

* Specific framework name to variable 'IMPL_TARGET'

* Solve cmake try_compile failed with code sign, and disable framework code sign

* Make ios travis to build dynamic framework bundle by default

* Update ios.toolchain.cmake

Since we solve code sign issue for cmake to generate dynamic framework xcode project, enable strict try_compile by default

* Remove MAKE_CXX_EXTENSIONS from travis-ci

* Combined flat lib armv7;arm64 support

* Remvoe ios.toolchain.cmake since we don't need
[skip appveyor] [skip travis]

* Sets framework name to soft_oal,
avoid ambiguous with system OpenAL.framework

* Fix missing BUNDLE, FRAMEWORK's DESTINATION
Build osx/ios dynamic framework required them.

* Use @rpath instead fullPath to mac local disk
see also:
c80ddef7a4

* CMake, use TRUE for bool value

* Don't disable examples, utils, install

* Make ALSOFT_OSX_FRAMEWORK for APPLE spec

* Remove unused flag and more clearly comment

* More clearly comment for solve armv7 target issue

Co-authored-by: deal <deal@dealdeMac.local>
Co-authored-by: bel <bel@beldeMac.local>
2020-08-24 14:09:02 -07:00
Chris Robinson ed1135f7ae Fix configure-time ffmpeg version detection 2020-08-12 09:48:17 -07:00
HALX99 7cac5304c8
Add ios build for travis (#452)
* Add ios build for travis

* fix cmake command and set osx_image: xcode11

* print cmake version

* print cmake version before config

* [iOS] By default use iphoneos for sysroot

* Use ios.toolchain.cmake to build ios

* By default, don't require gnu extension

* Update CMakeLists.txt

Co-authored-by: deal <deal@dealdeMac.local>
2020-08-01 02:52:36 -07:00
Chris Robinson f409cb4039 Revert "Don't call find_package(WindowsSDK) if the platform ver is already set"
This reverts commit c1383e3a48.
2020-07-09 00:07:33 -07:00
Chris Robinson c1383e3a48 Don't call find_package(WindowsSDK) if the platform ver is already set 2020-07-08 23:32:24 -07:00
HALX99 3702dcb1d3
Enable to detect Windows SDK v2004 2020-06-11 22:39:47 +08:00
Chris Robinson 9b9a65a0bf Use an import target for libsndfile 2020-04-19 04:00:01 -07:00
Chris Robinson 67e54a2669 Add an Oboe backend stub 2020-04-18 15:17:53 -07:00
Chris Robinson 431d01cc7f Use a cmake script to convert a binary file to a header file 2020-04-04 08:46:18 -07:00
Chris Robinson d70912c034 Remove the QSA backend
It's been broken for who knows how long, and could really do with a rewrite for
the new interface anyway.
2020-03-29 20:37:58 -07:00
Aaron Jacobs a3a2305d7a Fix find_package_handle_standard_args name mismatch warnings 2020-03-28 17:43:17 -07:00
Chris Robinson cae78e79e8 Convert the examples from SDL_sound to libsndfile 2020-03-24 15:46:47 -07:00
Chris Robinson 586bc94d51 Use libsndfile for the alplay example 2020-03-24 13:36:49 -07:00
Chris Robinson 9c95f62e95 Remove large file macros
Large file offsets aren't being utilized, and C++ seems to use to 64-bit
offsets anyway.
2019-09-22 11:17:31 -07:00
Minmin Gong becd1cf1bd Enable to detect Windows SDK v1903 2019-08-09 23:04:37 -07:00
Chris Robinson 93d0c8993d Fix OpenSL library name 2019-07-10 19:55:14 -07:00
Chris Robinson e2f2b74d6a Get rid of the custom CHECK_SHARED_FUNCTION_EXISTS function 2019-07-10 19:32:26 -07:00
Chris Robinson ac28b7d0f2 Use a find module for OpenSL 2019-07-10 18:54:43 -07:00
Chris Robinson 5c0dcd1f24 Fix building makehrtf and sofa-info on Windows 2019-01-22 13:17:21 -08:00
Chris Robinson c239ae44f8 Add a FindMySOFA cmake module 2019-01-21 10:21:13 -08:00
wangwenx190 00ad4a2f5d
Update FindWindowsSDK.cmake 2018-11-27 13:20:04 +08:00
wangwenx190 9070426ece
Update FindWindowsSDK.cmake
Support latest Win10 SDK.
2018-11-27 13:18:30 +08:00
Chris Robinson 61de399806 Don't cache SDL2_LIBRARY_TEMP with CMake
Otherwise it keeps prepending and appending the same extra libs and flags with
each invocation.
2018-03-29 18:10:58 -07:00
Chris Robinson c7273ada8e Handle libossaudio as an optional OSS library 2017-09-15 22:22:45 -07:00
Chris Robinson 6b030999cb Don't require SDL_sound for alffplay
Also explicitly link with libz for alffplay, since static ffmpeg libs need it.
2017-02-11 12:56:13 -08:00
Chris Robinson 49fd154829 Update cmake scripts to handle policy 0054 2016-11-22 14:50:55 -08:00
septag ac26b209a6 fixed minor check in FindDSound.cmake 2016-11-03 01:52:40 +03:30
septag d142ba1ab4 Added cmake FindWindowsSDK for FindDSound module and fixed FindDSound.cmake 2016-11-03 00:37:09 +03:30
septag d01d30ad5e Added cmake support for dsound and windows 8/10 SDKs 2016-10-30 14:18:45 +03:30
Chris Robinson 6689c61ff4 Remove the MIDI code
The extension's not going anywhere, and it can't do anything fluidsynth can't.
The code maintenance and bloat is not worth keeping around, and ideally the AL
API would be able to facilitate MIDI-like behavior anyway (envelopes, start-at-
time, etc).
2015-10-20 18:01:27 -07:00
Chris Robinson d5675d5395 Search more aggressively for libs needed by SDL_sound 2015-09-30 21:34:30 -07:00
Chris Robinson f2d59671b2 Add a cmake module to find JACK 2014-12-21 15:48:40 -08:00
Chris Robinson 3a6baab495 Use the current binary dir for shared function checks too 2014-08-20 13:47:56 -07:00
Jesper Särnesjö ba9995a8de Use directories relative to current project in CheckFileOffsetBits.cmake
Enables building OpenAL Soft in a subdirectory of another project.
2014-08-20 13:31:24 -07:00
Chris Robinson dd1df64537 Search for the correct include and lib directories for the DX SDK
And only set them when needed.
2014-08-15 14:26:06 -07:00
Chris Robinson 951870b189 Enable large file support 2014-08-05 05:05:05 -07:00
Chris Robinson d2c0a43498 Add an ffmpeg-based example player
This example shows proper timing and A/V synchronization with an OpenAL stream.
Requires the in-progress AL_SOFTX_source_length extension to avoid manually
keeping track of the buffer queue length.
2014-06-02 17:33:11 -07:00
Chris Robinson 13eac2552e Update the examples to use SDL2
This should make it easier to build the examples on 64-bit, where there are no
premade dev libs for SDL1 on 64-bit mingw. FindSDL_sound.cmake has been
updated to accept SDL or SDL2.
2014-05-23 12:14:51 -07:00
Chris Robinson e78acce652 Don't mix old- and new-style FIND_PACKAGE_HANDLE_STANDARD_ARGS calls
Some (all?) versions of cmake seem to get a bit confused when an old-style
FIND_PACKAGE_HANDLE_STANDARD_ARGS call fails, and the scripts attempt a new-
style call later on. It continues to think it's using old-style, acting as if
REQUIRED_VARS is the message and looks for a VERSION_VAR variable.
2014-05-10 09:34:16 -07:00
Chris Robinson 7fed6383c0 Include FindALSA.cmake
Older versions of CMake don't seem to have it.
2014-04-23 02:12:34 -07:00
Chris Robinson 96c559fbef Use a find module to look for DirectSound 2014-04-19 07:49:27 -07:00
Chris Robinson 887763e41c Use find cmake modules for more backends 2014-04-19 06:35:14 -07:00
Chris Robinson a3c76c3274 Add an option for FLuidSynth to handle MIDI 2013-11-28 03:08:28 -08:00
Chris Robinson fe5428dc49 Add a custom FindSDL_sound cmake module
The one that comes with CMake is broken, incorrectly setting
SDL_SOUND_LIBRARIES, causing warnings, and not even working if the
project is C only.
2013-06-05 19:21:09 -07:00
Chris Robinson a3846ba53b Don't use a custom CheckCCompilerFlag.cmake 2013-03-13 21:29:47 -07:00
Chris Robinson 8dfa2560b1 Use a better method for determining if shared functions exist 2011-07-23 00:48:19 -07:00