Glitches with windows audio playback

I’m having an issue where there are slight pops and cracks in the audio output when using Windows Audio as the Audio device. These are not very audible with most input material, but with a pure sine wave they can be clearly heard. I tested this also with AudioDeviceManagerTutorial demo project which I modified just to pass the input to output with no modifications. Also here the issue was present. I’m using a separate device for audio playback and reading the inputs from my Audio Interface(RME babyface). I’ve configured the audio devices used to have the same sampling rate and block size so that shouldn’t be the problem.

Is anybody able to reproduce this issue ? Any clues what might be causing this ?

Windows Audio or DirectSound are not very good. Try and use ASIO or WSAPI.