diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2017-07-29 13:31:25 -0700 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-08-07 14:33:03 -0700 |
commit | 6f40c211a50b6c39f17e28bef8478a84853b5c13 (patch) | |
tree | c7ab9b49ca928502a29c112a71465bfe36c9475c /audio/out/ao_wasapi_utils.c | |
parent | 434d3d4976ae279d7cb143dd1c7a32f7dd483e48 (diff) | |
download | mpv-6f40c211a50b6c39f17e28bef8478a84853b5c13.tar.bz2 mpv-6f40c211a50b6c39f17e28bef8478a84853b5c13.tar.xz |
ao_wasapi: reorganize wasapi.h
Remove dead declarations. Move macro only used in wasapi_utils.c closer to use.
Rearrange declaration order.
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
-rw-r--r-- | audio/out/ao_wasapi_utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 7520f224e7..bedddd8302 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -298,6 +298,10 @@ static bool set_ao_format(struct ao *ao, WAVEFORMATEX *wf, return true; } +#define mp_format_res_str(hres) \ + (SUCCEEDED(hres) ? "ok" : ((hres) == AUDCLNT_E_UNSUPPORTED_FORMAT) \ + ? "unsupported" : mp_HRESULT_to_str(hres)) + static bool try_format_exclusive(struct ao *ao, WAVEFORMATEXTENSIBLE *wformat) { struct wasapi_state *state = ao->priv; |