Commit f953b99c authored by Alexandre Julliard's avatar Alexandre Julliard

faudio: Import upstream release 23.03.

parent d462bcdf
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......@@ -484,8 +484,8 @@ extern FAudioGUID DATAFORMAT_SUBTYPE_IEEE_FLOAT;
#define FAUDIO_TARGET_VERSION 8 /* Targeting compatibility with XAudio 2.8 */
#define FAUDIO_ABI_VERSION 0
#define FAUDIO_MAJOR_VERSION 22
#define FAUDIO_MINOR_VERSION 11
#define FAUDIO_MAJOR_VERSION 23
#define FAUDIO_MINOR_VERSION 3
#define FAUDIO_PATCH_VERSION 0
#define FAUDIO_COMPILED_VERSION ( \
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......@@ -290,6 +290,7 @@ uint32_t FACTAudioEngine_Initialize(
NULL
) != 0) {
FAudio_Release(pEngine->audio);
FAudio_PlatformUnlockMutex(pEngine->apiLock);
return FAUDIO_E_INVALID_CALL;
}
}
......@@ -1419,16 +1420,13 @@ uint32_t FACTSoundBank_Destroy(FACTSoundBank *pSoundBank)
FACTCue_Destroy(pSoundBank->cueList);
}
if (pSoundBank->parentEngine != NULL)
{
/* Remove this SoundBank from the Engine list */
LinkedList_RemoveEntry(
&pSoundBank->parentEngine->sbList,
pSoundBank,
pSoundBank->parentEngine->sbLock,
pSoundBank->parentEngine->pFree
);
}
/* Remove this SoundBank from the Engine list */
LinkedList_RemoveEntry(
&pSoundBank->parentEngine->sbList,
pSoundBank,
pSoundBank->parentEngine->sbLock,
pSoundBank->parentEngine->pFree
);
/* SoundBank Name */
pSoundBank->parentEngine->pFree(pSoundBank->name);
......@@ -1595,16 +1593,13 @@ uint32_t FACTWaveBank_Destroy(FACTWaveBank *pWaveBank)
}
}
if (pWaveBank->parentEngine != NULL)
{
/* Remove this WaveBank from the Engine list */
LinkedList_RemoveEntry(
&pWaveBank->parentEngine->wbList,
pWaveBank,
pWaveBank->parentEngine->wbLock,
pWaveBank->parentEngine->pFree
);
}
/* Remove this WaveBank from the Engine list */
LinkedList_RemoveEntry(
&pWaveBank->parentEngine->wbList,
pWaveBank,
pWaveBank->parentEngine->wbLock,
pWaveBank->parentEngine->pFree
);
/* Free everything, finally. */
pWaveBank->parentEngine->pFree(pWaveBank->name);
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
/* FAudio - XAudio Reimplementation for FNA
*
* Copyright (c) 2011-2022 Ethan Lee, Luigi Auriemma, and the MonoGame Team
* Copyright (c) 2011-2023 Ethan Lee, Luigi Auriemma, and the MonoGame Team
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment