From a1069854cfb2de481c6be2eef16952dd48ac56e0 Mon Sep 17 00:00:00 2001 From: Connor McAdams Date: Thu, 22 Apr 2021 16:10:10 -0400 Subject: [PATCH] include: Don't pack XACT_RUNTIME_PARAMETERS structure. Move the XACT_RUNTIME_PARAMETERS structure definition outside of the packing directive that the other structures are placed within. It isn't packed in Windows, and was included with the others by mistake. Signed-off-by: Connor McAdams Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- include/xact3.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/include/xact3.h b/include/xact3.h index 9b8f480829e..a1df1a51330 100644 --- a/include/xact3.h +++ b/include/xact3.h @@ -354,23 +354,6 @@ typedef struct XACT_NOTIFICATION_CUE } XACT_NOTIFICATION_CUE, *LPXACT_NOTIFICATION_CUE; typedef const XACT_NOTIFICATION_CUE *LPCXACT_NOTIFICATION_CUE; -typedef struct XACT_WAVE_PROPERTIES -{ - char friendlyName[WAVEBANK_ENTRYNAME_LENGTH]; - WAVEBANKMINIWAVEFORMAT format; - DWORD durationInSamples; - WAVEBANKSAMPLEREGION loopRegion; - BOOL streaming; -} XACT_WAVE_PROPERTIES, *LPXACT_WAVE_PROPERTIES; -typedef const XACT_WAVE_PROPERTIES *LPCXACT_WAVE_PROPERTIES; - -typedef struct XACT_WAVE_INSTANCE_PROPERTIES -{ - XACT_WAVE_PROPERTIES properties; - BOOL backgroundMusic; -} XACT_WAVE_INSTANCE_PROPERTIES, *LPXACT_WAVE_INSTANCE_PROPERTIES; -typedef const XACT_WAVE_INSTANCE_PROPERTIES *LPCXACT_WAVE_INSTANCE_PROPERTIES; - typedef struct XACT_NOTIFICATION_MARKER { XACTINDEX cueIndex; @@ -442,6 +425,25 @@ typedef void (__stdcall *XACT_NOTIFICATION_CALLBACK)( const XACT_NOTIFICATION *pNotification ); +#include + +typedef struct XACT_WAVE_PROPERTIES +{ + char friendlyName[WAVEBANK_ENTRYNAME_LENGTH]; + WAVEBANKMINIWAVEFORMAT format; + DWORD durationInSamples; + WAVEBANKSAMPLEREGION loopRegion; + BOOL streaming; +} XACT_WAVE_PROPERTIES, *LPXACT_WAVE_PROPERTIES; +typedef const XACT_WAVE_PROPERTIES *LPCXACT_WAVE_PROPERTIES; + +typedef struct XACT_WAVE_INSTANCE_PROPERTIES +{ + XACT_WAVE_PROPERTIES properties; + BOOL backgroundMusic; +} XACT_WAVE_INSTANCE_PROPERTIES, *LPXACT_WAVE_INSTANCE_PROPERTIES; +typedef const XACT_WAVE_INSTANCE_PROPERTIES *LPCXACT_WAVE_INSTANCE_PROPERTIES; + typedef struct XACT_RUNTIME_PARAMETERS { DWORD lookAheadTime; @@ -457,8 +459,6 @@ typedef struct XACT_RUNTIME_PARAMETERS } XACT_RUNTIME_PARAMETERS, *LPXACT_RUNTIME_PARAMETERS; typedef const XACT_RUNTIME_PARAMETERS *LPCXACT_RUNTIME_PARAMETERS; -#include - #define XACT_FLAG_CUE_STOP_RELEASE XACT_FLAG_STOP_RELEASE #define XACT_FLAG_CUE_STOP_IMMEDIATE XACT_FLAG_STOP_IMMEDIATE