Audaspace: add support for WASAPI on Windows

This adds WASAPI as audio backend on Windows.
WASAPI is the modern standard audio API on
Windows introduced with Windows Vista.

Ref T86590
This commit is contained in:
2021-03-11 19:22:56 +01:00
parent d33339ebf4
commit bc57985306
16 changed files with 570 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ static PyStructSequence_Field app_builtopts_info_fields[] = {
{"sdl_dynload", NULL},
{"jack", NULL},
{"pulseaudio", NULL},
{"wasapi", NULL},
{"libmv", NULL},
{"mod_oceansim", NULL},
{"mod_remesh", NULL},
@@ -224,6 +225,12 @@ static PyObject *make_builtopts_info(void)
SetObjIncref(Py_False);
#endif
#ifdef WITH_WASAPI
SetObjIncref(Py_True);
#else
SetObjIncref(Py_False);
#endif
#ifdef WITH_LIBMV
SetObjIncref(Py_True);
#else