• Home
  • Documents
  • Download
  • Status
  • FAQ
  • Mailing list
  • Applications
  • Links
  • License
  • Volunteer
  • Contacts

Windows Audio Session API


Official Microsoft document address : http://msdn.microsoft.com/en-us/library/windows/desktop/dd371455(v=vs.85).aspx



Enable WASAPI module

DEFINEs

If you want to enable Windows Audio Session API module, your C++ compiler must add the following DEFINEs:

ENABLE_HOST_WASAPI

Source files

C++ files must include the following two:

  1. CiosAudio/Platforms/Windows/CaWaSAPI.hpp
  2. CiosAudio/Platforms/Windows/CaWaSAPI.cpp

Qt

If you are using Qt, in the following file:

CiosAudio/Platforms/Windows/HostAPIs.pri

Enable the following setting:

HostAPIs += WaSAPI

Libraries

Windows Audio Session API uses DLL dynamic loading. There are no need to link with any library. However, you do need to have to check if "avrt.dll" exists on your Windows system.