[packages/OpenAL] - updated to 1.24.0

qboosh qboosh at pld-linux.org
Sun Nov 17 21:02:29 CET 2024


commit c2e895e4ce74ae745c4726c454932d2209ae2ff5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 17 20:51:12 2024 +0100

    - updated to 1.24.0

 OpenAL-nosse.patch | 122 ++++++++++++++++++++++++++++-------------------------
 OpenAL.spec        |   9 ++--
 2 files changed, 70 insertions(+), 61 deletions(-)
---
diff --git a/OpenAL.spec b/OpenAL.spec
index 81c3ae5..433444a 100644
--- a/OpenAL.spec
+++ b/OpenAL.spec
@@ -16,21 +16,22 @@
 Summary:	Open Audio Library
 Summary(pl.UTF-8):	Otwarta Biblioteka Dźwięku
 Name:		OpenAL
-Version:	1.23.1
+Version:	1.24.0
 Release:	1
 License:	LGPL v2+
 Group:		Libraries
 Source0:	https://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2
-# Source0-md5:	58a73698288d2787451b61f8f4431513
+# Source0-md5:	f2b5d15fd4bf24296022f8eafe31530c
 Patch0:		%{name}-nosse.patch
-URL:		http://www.openal.org/
+URL:		https://www.openal.org/
 %{?with_sdl:BuildRequires:	SDL2-devel >= 2}
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
 BuildRequires:	cmake >= 3.0.2
 %{?with_rtkit:BuildRequires:	dbus-devel}
 %{?with_jack:BuildRequires:	jack-audio-connection-kit-devel}
 BuildRequires:	libmysofa-devel
-BuildRequires:	libstdc++-devel >= 6:5
+# C++17
+BuildRequires:	libstdc++-devel >= 6:7
 %{?with_pipewire:BuildRequires:	pipewire-devel >= 0.3.23}
 BuildRequires:	pkgconfig
 %{?with_portaudio:BuildRequires:	portaudio-devel}
diff --git a/OpenAL-nosse.patch b/OpenAL-nosse.patch
index 4955474..b1fbd31 100644
--- a/OpenAL-nosse.patch
+++ b/OpenAL-nosse.patch
@@ -1,89 +1,97 @@
---- openal-soft-1.20.0/common/alnumeric.h.orig	2019-11-28 09:45:08.000000000 +0100
-+++ openal-soft-1.20.0/common/alnumeric.h	2019-12-04 05:28:38.843039338 +0100
-@@ -191,7 +191,7 @@
+--- openal-soft-1.24.0/common/alnumeric.h.orig	2024-11-17 20:15:56.243784583 +0100
++++ openal-soft-1.24.0/common/alnumeric.h	2024-11-17 20:19:52.912502438 +0100
+@@ -86,7 +86,7 @@ constexpr T RoundUp(T value, al::type_id
   */
  inline int fastf2i(float f) noexcept
  {
--#if defined(HAVE_SSE_INTRINSICS)
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE_MATH__)
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE_MATH__)
      return _mm_cvt_ss2si(_mm_set_ss(f));
  
- #elif defined(_MSC_VER) && defined(_M_IX86_FP)
-@@ -222,7 +222,7 @@
+ #elif defined(_MSC_VER) && defined(_M_IX86_FP) && _M_IX86_FP == 0
+@@ -114,7 +114,7 @@ inline unsigned int fastf2u(float f) noe
  /** Converts float-to-int using standard behavior (truncation). */
  inline int float2int(float f) noexcept
  {
--#if defined(HAVE_SSE_INTRINSICS)
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE_MATH__)
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE_MATH__)
      return _mm_cvtt_ss2si(_mm_set_ss(f));
  
  #elif (defined(_MSC_VER) && defined(_M_IX86_FP) && _M_IX86_FP == 0) \
-@@ -257,7 +257,7 @@
+@@ -145,7 +145,7 @@ inline unsigned int float2uint(float f)
  /** Converts double-to-int using standard behavior (truncation). */
  inline int double2int(double d) noexcept
  {
--#if defined(HAVE_SSE_INTRINSICS)
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE_MATH__)
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE_MATH__)
      return _mm_cvttsd_si32(_mm_set_sd(d));
  
  #elif (defined(_MSC_VER) && defined(_M_IX86_FP) && _M_IX86_FP < 2) \
---- openal-soft-1.20.0/core/fpu_ctrl.cpp.orig	2019-11-28 09:45:08.000000000 +0100
-+++ openal-soft-1.20.0/core/fpu_ctrl.cpp	2019-12-04 18:37:09.810067181 +0100
-@@ -209,7 +209,7 @@
+--- openal-soft-1.24.0/core/fpu_ctrl.cpp.orig	2024-11-16 13:20:51.000000000 +0100
++++ openal-soft-1.24.0/core/fpu_ctrl.cpp	2024-11-17 20:43:07.528280489 +0100
+@@ -31,14 +31,14 @@ namespace {
+ [[maybe_unused]]
+ void disable_denormals(unsigned int *state [[maybe_unused]])
  {
-     if(this->in_mode) return;
- 
--#if defined(HAVE_SSE_INTRINSICS)
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE_MATH__)
-     this->sse_state = _mm_getcsr();
-     unsigned int sseState{this->sse_state};
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE_MATH__)
+     *state = _mm_getcsr();
+     unsigned int sseState{*state};
      sseState &= ~(_MM_FLUSH_ZERO_MASK | _MM_DENORMALS_ZERO_MASK);
-@@ -236,7 +236,7 @@
- {
-     if(!this->in_mode) return;
+     sseState |= _MM_FLUSH_ZERO_ON | _MM_DENORMALS_ZERO_ON;
+     _mm_setcsr(sseState);
  
--#if defined(HAVE_SSE_INTRINSICS)
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE_MATH__)
-     _mm_setcsr(this->sse_state);
+-#elif HAVE_SSE
++#elif HAVE_SSE && defined(__SSE_MATH__)
  
- #elif defined(__GNUC__) && defined(HAVE_SSE)
---- openal-soft-1.21.0/alc/effects/convolution.cpp.orig	2020-11-04 11:00:35.000000000 +0100
-+++ openal-soft-1.21.0/alc/effects/convolution.cpp	2020-11-05 06:23:28.093700396 +0100
-@@ -1,7 +1,7 @@
- #include <stdint.h>
- #include <utility>
+     *state = _mm_getcsr();
+     unsigned int sseState{*state};
+@@ -59,7 +59,7 @@ void disable_denormals(unsigned int *sta
+ [[maybe_unused]]
+ void reset_fpu(unsigned int state [[maybe_unused]])
+ {
+-#if HAVE_SSE_INTRINSICS || HAVE_SSE
++#if (HAVE_SSE_INTRINSICS || HAVE_SSE) && defined(__SSE_MATH__)
+     _mm_setcsr(state);
+ #endif
+ }
+--- openal-soft-1.24.0/alc/effects/convolution.cpp.orig	2024-11-17 20:31:41.705329245 +0100
++++ openal-soft-1.24.0/alc/effects/convolution.cpp	2024-11-17 20:35:48.037328083 +0100
+@@ -13,7 +13,7 @@
+ #include <memory>
+ #include <vector>
  
--#ifdef HAVE_SSE_INTRINSICS
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE__)
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE__)
  #include <xmmintrin.h>
- #elif defined(HAVE_NEON)
+ #elif HAVE_NEON
  #include <arm_neon.h>
-@@ -108,7 +108,7 @@
- 
- void apply_fir(al::span<float> dst, const float *RESTRICT src, const float *RESTRICT filter)
+@@ -171,7 +171,7 @@ constexpr size_t ConvolveUpdateSamples{C
+ void apply_fir(al::span<float> dst, const al::span<const float> input, const al::span<const float,ConvolveUpdateSamples> filter)
  {
--#ifdef HAVE_SSE_INTRINSICS
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE__)
-     for(float &output : dst)
+     auto src = input.begin();
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE__)
+     std::generate(dst.begin(), dst.end(), [&src,filter]
      {
          __m128 r4{_mm_setzero_ps()};
---- openal-soft-1.22.0/common/phase_shifter.h.orig	2022-04-23 03:46:14.000000000 +0200
-+++ openal-soft-1.22.0/common/phase_shifter.h	2022-04-23 12:16:39.561832386 +0200
-@@ -1,7 +1,7 @@
- #ifndef PHASE_SHIFTER_H
- #define PHASE_SHIFTER_H
+--- openal-soft-1.24.0/common/phase_shifter.h.orig	2024-11-17 20:36:07.740554675 +0100
++++ openal-soft-1.24.0/common/phase_shifter.h	2024-11-17 20:37:05.583574646 +0100
+@@ -3,7 +3,7 @@
+ 
+ #include "config_simd.h"
  
--#ifdef HAVE_SSE_INTRINSICS
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE__)
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE__)
  #include <xmmintrin.h>
- #elif defined(HAVE_NEON)
+ #elif HAVE_NEON
  #include <arm_neon.h>
-@@ -116,7 +116,7 @@
- template<size_t S>
- inline void PhaseShifterT<S>::process(al::span<float> dst, const float *RESTRICT src) const
+@@ -92,7 +92,7 @@ NOINLINE inline
+ void PhaseShifterT<S>::process(const al::span<float> dst, const al::span<const float> src) const
  {
--#ifdef HAVE_SSE_INTRINSICS
-+#if defined(HAVE_SSE_INTRINSICS) && defined(__SSE__)
-     if(size_t todo{dst.size()>>1})
+     auto in = src.begin();
+-#if HAVE_SSE_INTRINSICS
++#if HAVE_SSE_INTRINSICS && defined(__SSE__)
+     if(const std::size_t todo{dst.size()>>2})
      {
-         auto *out = reinterpret_cast<__m64*>(dst.data());
+         auto out = al::span{reinterpret_cast<__m128*>(dst.data()), todo};
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/OpenAL.git/commitdiff/c2e895e4ce74ae745c4726c454932d2209ae2ff5



More information about the pld-cvs-commit mailing list