mendsley / tinyaudio

minimal cross platform 16bit stereo PCM output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IXAudio2::Initialize doesn't exist anymore?

asm128 opened this issue · comments

Hi! I've download the project but when trying to build on windows it says that there is no method IXAudio2::Initialize(), then I've found this:

The DirectX SDK versions of XAUDIO2 included three member functions that are not present in the Windows 8 version: GetDeviceCount, GetDeviceDetails, and Initialize. These enumeration methods are no longer provided and standard Windows Audio APIs should be used for device enumeration instead.

Maybe we should include conditional code for Windows 7 and otherwise use the latest api with XAudio2Create()? I believe using the helper function was avoided in case the dll was missing but maybe in most recent Windows such dll is always included.