Dynamic XAudio version detection

This commit is contained in:
Nekotekina 2016-07-21 16:41:40 +03:00
parent 0ae8cc4467
commit a0c0df6e9d
8 changed files with 1486 additions and 112 deletions

View file

@ -102,13 +102,13 @@ cfg::map_entry<std::function<std::shared_ptr<GSRender>()>> g_cfg_gs_render(cfg::
#endif
});
cfg::map_entry<std::function<std::shared_ptr<AudioThread>()>> g_cfg_audio_render(cfg::root.audio, "Renderer", "OpenAL",
cfg::map_entry<std::function<std::shared_ptr<AudioThread>()>> g_cfg_audio_render(cfg::root.audio, "Renderer", 1,
{
{ "Null", PURE_EXPR(std::make_shared<NullAudioThread>()) },
{ "OpenAL", PURE_EXPR(std::make_shared<OpenALThread>()) },
#ifdef _WIN32
{ "XAudio2", PURE_EXPR(std::make_shared<XAudio2Thread>()) },
#endif
{ "OpenAL", PURE_EXPR(std::make_shared<OpenALThread>()) },
});
extern cfg::bool_entry g_cfg_autostart;