From f628e36582b637483a01856c9d9c20a4f159b53c Mon Sep 17 00:00:00 2001 From: Starg Date: Sun, 10 Dec 2023 20:53:57 +0900 Subject: [PATCH] [wasapi] Define HRESULT values that are not provided by mingw-w64 yet. --- timidity/wasapi_a.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/timidity/wasapi_a.c b/timidity/wasapi_a.c index f23a1f73..a260a1f7 100644 --- a/timidity/wasapi_a.c +++ b/timidity/wasapi_a.c @@ -151,6 +151,14 @@ typedef struct { #define SPEAKER_MONO (SPEAKER_FRONT_CENTER) #define SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) +#ifndef AUDCLNT_E_EFFECT_NOT_AVAILABLE +#define AUDCLNT_E_EFFECT_NOT_AVAILABLE AUDCLNT_ERR(0x041) +#endif + +#ifndef AUDCLNT_E_EFFECT_STATE_READ_ONLY +#define AUDCLNT_E_EFFECT_STATE_READ_ONLY AUDCLNT_ERR(0x042) +#endif + static HRESULT check_hresult(HRESULT hr, const char *operation) { if (FAILED(hr)) {