Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package FAudio for openSUSE:Factory checked in at 2023-10-19 22:49:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/FAudio (Old) and /work/SRC/openSUSE:Factory/.FAudio.new.1945 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "FAudio" Thu Oct 19 22:49:34 2023 rev:28 rq:1118830 version:23.10 Changes: -------- --- /work/SRC/openSUSE:Factory/FAudio/FAudio.changes 2023-07-26 13:22:39.691556980 +0200 +++ /work/SRC/openSUSE:Factory/.FAudio.new.1945/FAudio.changes 2023-10-19 22:51:59.708607060 +0200 @@ -1,0 +2,7 @@ +Wed Oct 18 22:45:49 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 23.10: + * Minor static analysis fix for F3DAudio + * FACT now supports all publicly known WaveBank format versions + +------------------------------------------------------------------- Old: ---- FAudio-23.07.tar.gz New: ---- FAudio-23.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ FAudio.spec ++++++ --- /var/tmp/diff_new_pack.mrbuZQ/_old 2023-10-19 22:52:00.144622875 +0200 +++ /var/tmp/diff_new_pack.mrbuZQ/_new 2023-10-19 22:52:00.144622875 +0200 @@ -17,7 +17,7 @@ Name: FAudio -Version: 23.07 +Version: 23.10 Release: 0 Summary: A reimplementation of the XNA Game Studio libraries License: Zlib ++++++ FAudio-23.07.tar.gz -> FAudio-23.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/CMakeLists.txt new/FAudio-23.10/CMakeLists.txt --- old/FAudio-23.07/CMakeLists.txt 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/CMakeLists.txt 2023-10-01 16:18:27.000000000 +0200 @@ -29,7 +29,7 @@ # Version SET(LIB_MAJOR_VERSION "0") SET(LIB_MINOR_VERSION "23") -SET(LIB_REVISION "07") +SET(LIB_REVISION "10") SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}.${LIB_REVISION}") # Build Type diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/csharp/FAudio.cs new/FAudio-23.10/csharp/FAudio.cs --- old/FAudio-23.07/csharp/FAudio.cs 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/csharp/FAudio.cs 2023-10-01 16:18:27.000000000 +0200 @@ -79,7 +79,7 @@ public const uint FAUDIO_ABI_VERSION = 0; public const uint FAUDIO_MAJOR_VERSION = 23; - public const uint FAUDIO_MINOR_VERSION = 7; + public const uint FAUDIO_MINOR_VERSION = 10; public const uint FAUDIO_PATCH_VERSION = 0; public const uint FAUDIO_COMPILED_VERSION = ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/include/FAudio.h new/FAudio-23.10/include/FAudio.h --- old/FAudio-23.07/include/FAudio.h 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/include/FAudio.h 2023-10-01 16:18:27.000000000 +0200 @@ -494,7 +494,7 @@ #define FAUDIO_ABI_VERSION 0 #define FAUDIO_MAJOR_VERSION 23 -#define FAUDIO_MINOR_VERSION 7 +#define FAUDIO_MINOR_VERSION 10 #define FAUDIO_PATCH_VERSION 0 #define FAUDIO_COMPILED_VERSION ( \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/src/F3DAudio.c new/FAudio-23.10/src/F3DAudio.c --- old/FAudio-23.07/src/F3DAudio.c 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/src/F3DAudio.c 2023-10-01 16:18:27.000000000 +0200 @@ -1274,7 +1274,7 @@ } } } - else + else if (curConfig != NULL) { listenerToEmitter = VectorScale(emitterToListener, -1.0f); @@ -1351,8 +1351,10 @@ } } } - - + } + else + { + FAudio_assert(0 && "Config info not found!"); } /* TODO: add post check to validate values diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/src/FACT_internal.c new/FAudio-23.10/src/FACT_internal.c --- old/FAudio-23.07/src/FACT_internal.c 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/src/FACT_internal.c 2023-10-01 16:18:27.000000000 +0200 @@ -39,6 +39,8 @@ #define FACT_CONTENT_VERSION_3_4 45 #define FACT_CONTENT_VERSION_3_1 44 #define FACT_CONTENT_VERSION_3_0 43 +#define FACT_CONTENT_VERSION_2_4 41 +#define FACT_CONTENT_VERSION_2_0 37 static inline int FACT_INTERNAL_SupportedContent(uint16_t version) { @@ -3105,7 +3107,17 @@ #define DOSWAP_64(x) x = FAudio_swap64BE(x) fileOffset = offset; - READ(&header, sizeof(header)) + + FAudio_zero(&header, sizeof(header)); + READ(&header.dwSignature, sizeof(header.dwSignature)); + READ(&header.dwVersion, sizeof(header.dwVersion)); + if (header.dwVersion > FACT_CONTENT_VERSION_2_4) + { + READ(&header.dwHeaderVersion, sizeof(header.dwHeaderVersion)); + } + + READ(&header.Segments, sizeof(header.Segments)); + se = header.dwSignature == 0x57424E44; if (se) { @@ -3123,12 +3135,20 @@ return -1; /* TODO: NOT XACT FILE */ } - if (!FACT_INTERNAL_SupportedContent(header.dwVersion)) + /* We support all Wavebank versions - Restore when SoundBank support them also. */ + /*if (!FACT_INTERNAL_SupportedContent(header.dwVersion)) + { + return -2; + } + */ + if ( header.dwVersion < FACT_CONTENT_VERSION_2_4 || + header.dwVersion > FACT_CONTENT_VERSION ) { return -2; } - if (!FACT_INTERNAL_SupportedWBContent(header.dwHeaderVersion)) + if ( header.dwVersion > FACT_CONTENT_VERSION_2_4 && + !FACT_INTERNAL_SupportedWBContent(header.dwHeaderVersion) ) { return -3; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/src/FAudio_internal_simd.c new/FAudio-23.10/src/FAudio_internal_simd.c --- old/FAudio-23.07/src/FAudio_internal_simd.c 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/src/FAudio_internal_simd.c 2023-10-01 16:18:27.000000000 +0200 @@ -48,7 +48,7 @@ /* AArch64 guarantees NEON. */ #define NEED_SCALAR_CONVERTER_FALLBACKS 0 -#elif __MACOSX__ +#elif __MACOSX__ && !defined(__POWERPC__) /* Some build systems may need to specify this. */ #if !defined(__SSE2__) && !defined(__ARM_NEON__) #error macOS does not have SSE2/NEON? Bad compiler? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/FAudio-23.07/src/FAudio_platform_sdl2.c new/FAudio-23.10/src/FAudio_platform_sdl2.c --- old/FAudio-23.07/src/FAudio_platform_sdl2.c 2023-07-01 17:46:02.000000000 +0200 +++ new/FAudio-23.10/src/FAudio_platform_sdl2.c 2023-10-01 16:18:27.000000000 +0200 @@ -55,6 +55,7 @@ static void FAudio_INTERNAL_PrioritizeDirectSound() { int numdrivers, i, wasapi, directsound; + void *dll, *proc; if (SDL_GetHint("SDL_AUDIODRIVER") != NULL) { @@ -62,6 +63,28 @@ return; } + /* Windows 10+ decided to break version detection, so instead of doing + * it the right way we have to do something dumb like search for an + * export that's only in Windows 10 or newer. + * -flibit + */ + if (SDL_strcmp(SDL_GetPlatform(), "Windows") != 0) + { + return; + } + dll = SDL_LoadObject("USER32.DLL"); + if (dll == NULL) + { + return; + } + proc = SDL_LoadFunction(dll, "SetProcessDpiAwarenessContext"); + SDL_UnloadObject(dll); /* We aren't really using this, unload now */ + if (proc != NULL) + { + /* OS is new enough to trust WASAPI, bail */ + return; + } + /* Check to see if we have both Windows drivers in the list */ numdrivers = SDL_GetNumAudioDrivers(); wasapi = -1;