locked
XAudio2 : How to use XAudio2AmplitudeRatioToDecibels (define XAUDIO2_HELPER_FUNCTIONS) ?

    Question

  • Hello,

    the help of the function XAudio2AmplitudeRatioToDecibels says:

    You must explicitly define XAUDIO2_HELPER_FUNCTIONS in your build for this function to become available."

    Can you please elaborate where to define it ?

    I tried simply #define XAUDIO2_HELPER_FUNCTIONS

    and the function still seems unrecognizable.

    Thanks!

    Saturday, March 22, 2014 5:12 PM

Answers

  • Before you include the header the first time (perhaps in your pch.h, some global .h file, or in your .cpp)

    #define XAUDIO2_HELPER_FUNCTIONS
    #include <xaudio2.h>

    Sunday, March 23, 2014 4:14 PM