Audaspace: Enforce minimal pipewire library version

While I implemented pipewire support I forgot that some of the functions I use is not available in older pipewire versions.

This adds proper library version sanity checks for pipewire.

Pull Request: https://projects.blender.org/blender/blender/pulls/131610
This commit is contained in:
Sebastian Parborg
2025-01-06 18:19:08 +01:00
committed by Sebastian Parborg
parent 4edf250a65
commit bb53214661
4 changed files with 4 additions and 3 deletions

View File

@@ -727,7 +727,7 @@ endif()
if(WITH_PIPEWIRE)
if(AUDASPACE_STANDALONE)
find_package(PkgConfig)
pkg_check_modules(PIPEWIRE ${PACKAGE_OPTION} libpipewire-0.3)
pkg_check_modules(PIPEWIRE ${PACKAGE_OPTION} libpipewire-0.3>=1.1.0)
endif()
if(PIPEWIRE_FOUND)

View File

@@ -53,7 +53,7 @@ bool loadPipeWire()
#undef PIPEWIRE_SYMBOL
return AUD_pw_init != nullptr;
return AUD_pw_check_library_version != nullptr && AUD_pw_check_library_version(1,1,0);
}
AUD_NAMESPACE_END

View File

@@ -38,3 +38,4 @@ PIPEWIRE_SYMBOL(pw_thread_loop_new);
PIPEWIRE_SYMBOL(pw_thread_loop_start);
PIPEWIRE_SYMBOL(pw_thread_loop_stop);
PIPEWIRE_SYMBOL(pw_check_library_version);