Hello,
Somehow DirectSound output is silent in my custom application. ASIO and Windows Audio work fine. However selecting DirectSound device makes the output silent. Callback is called, buffers are passed and filled, however no sound is heard.
The difference seems to be in the way Juce is compiled. I'm using MSVS2010 SP1. Once adding /O1 or /O2 to the compilation flags, the sound disappears. With /Od or no optimization flag at all - the sound comes fine.
Doing #pragma optimize( "", off ) / #pragma optimize( "", on ) around juce_win32_DirectSound.cpp amalgamation part doesn't help.
This was tested with Juce 1.53 and the latest GIT amalgamation. I wonder if there might be any suggestion here, before me spending a lot of time going deeper into this problem?
Thanks,
George.
