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

Windows Direct Sound

DirectSound is part of DirectX, deveoped by Microsoft. It is currently the most frequently used audio driver on Windows platform. CIOS Audio Core on Windows uses Direct Sound as default Host API.

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

Enable Direct Sound module

DEFINEs

If you want to enable Direct Sound module, your C++ compiler must add the following DEFINEs:

ENABLE_HOST_DIRECTSOUND

Source files

C++ files must include the following two:

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

Qt

If you are using Qt, in the following file:

CiosAudio/Platforms/Windows/HostAPIs.pri

Enable the following setting:

HostAPIs += DirectSound

Libraries

Windows Direct Sound must link with "dsound.lib". If your system does not exists dsound.lib, you will have to go to Microsoft official site to download Direct X SDK.