Skip to content

Commit

Permalink
[wasapi] Define HRESULT values that are not provided by mingw-w64 yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Dec 10, 2023
1 parent 12f9384 commit f628e36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions timidity/wasapi_a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f628e36

Please sign in to comment.