summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi_utils.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-04-01 02:20:12 -0700
committerKevin Mitchell <kevmitch@gmail.com>2015-04-01 02:30:19 -0700
commit4987c1906d26745cb6a69449f6aa579387e1d9fe (patch)
treebe2e0c0eeecc65ebc4ec91fe5dc92258cdfc6b55 /audio/out/ao_wasapi_utils.h
parentd4e31166b7299e0d05c312c8d16c72b1b03af4af (diff)
downloadmpv-4987c1906d26745cb6a69449f6aa579387e1d9fe.tar.bz2
mpv-4987c1906d26745cb6a69449f6aa579387e1d9fe.tar.xz
ao_wasapi: abstract HRESULT_to_str
Diffstat (limited to 'audio/out/ao_wasapi_utils.h')
-rwxr-xr-xaudio/out/ao_wasapi_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_wasapi_utils.h b/audio/out/ao_wasapi_utils.h
index c0eb77388d..330a502046 100755
--- a/audio/out/ao_wasapi_utils.h
+++ b/audio/out/ao_wasapi_utils.h
@@ -29,13 +29,13 @@
char *mp_GUID_to_str_buf(char *buf, size_t buf_size, const GUID *guid);
char *mp_PKEY_to_str_buf(char *buf, size_t buf_size, const PROPERTYKEY *pkey);
+char *mp_HRESULT_to_str_buf(char *buf, size_t buf_size, HRESULT hr);
#define mp_GUID_to_str(guid) mp_GUID_to_str_buf((char[40]){0}, 40, (guid))
#define mp_PKEY_to_str(pkey) mp_PKEY_to_str_buf((char[42]){0}, 42, (pkey))
+#define mp_HRESULT_to_str(hr) mp_HRESULT_to_str_buf((char[60]){0}, 60, (hr))
bool wasapi_fill_VistaBlob(wasapi_state *state);
-const char *wasapi_explain_err(const HRESULT hr);
-
void wasapi_list_devs(struct ao *ao, struct ao_device_list *list);
void wasapi_dispatch(void);