2014-03-09 23:13:36 +00:00
|
|
|
/*
|
|
|
|
* This file is part of mpv.
|
|
|
|
*
|
|
|
|
* Original author: Jonathan Yong <10walls@gmail.com>
|
|
|
|
*
|
|
|
|
* mpv is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* mpv is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with mpv. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MP_AO_WASAPI_UTILS_H_
|
|
|
|
#define MP_AO_WASAPI_UTILS_H_
|
|
|
|
|
|
|
|
#include "audio/out/ao_wasapi.h"
|
|
|
|
|
|
|
|
#include "options/m_option.h"
|
|
|
|
#include "common/msg.h"
|
|
|
|
#include "ao.h"
|
|
|
|
#include "internal.h"
|
|
|
|
|
2014-11-28 12:01:10 +00:00
|
|
|
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);
|
2015-04-01 09:20:12 +00:00
|
|
|
char *mp_HRESULT_to_str_buf(char *buf, size_t buf_size, HRESULT hr);
|
2014-11-28 14:02:26 +00:00
|
|
|
#define mp_GUID_to_str(guid) mp_GUID_to_str_buf((char[40]){0}, 40, (guid))
|
2014-11-28 12:01:10 +00:00
|
|
|
#define mp_PKEY_to_str(pkey) mp_PKEY_to_str_buf((char[42]){0}, 42, (pkey))
|
2015-04-01 09:20:12 +00:00
|
|
|
#define mp_HRESULT_to_str(hr) mp_HRESULT_to_str_buf((char[60]){0}, 60, (hr))
|
2014-11-28 12:01:10 +00:00
|
|
|
|
2014-11-28 14:51:06 +00:00
|
|
|
bool wasapi_fill_VistaBlob(wasapi_state *state);
|
2014-03-09 23:13:36 +00:00
|
|
|
|
2015-03-31 19:53:05 +00:00
|
|
|
void wasapi_list_devs(struct ao *ao, struct ao_device_list *list);
|
2014-11-15 06:47:28 +00:00
|
|
|
|
2015-03-29 00:12:48 +00:00
|
|
|
void wasapi_dispatch(struct ao *ao);
|
2014-11-17 10:48:02 +00:00
|
|
|
HRESULT wasapi_thread_init(struct ao *ao);
|
2014-11-14 16:03:12 +00:00
|
|
|
void wasapi_thread_uninit(struct ao *ao);
|
2014-03-11 03:47:33 +00:00
|
|
|
|
|
|
|
HRESULT wasapi_setup_proxies(wasapi_state *state);
|
|
|
|
void wasapi_release_proxies(wasapi_state *state);
|
|
|
|
|
|
|
|
#endif
|