When I open an exclusive mode audio stream on one of my speakers, there is a strange buzzing noise. This buzzing noise does not happen under the same conditions on my other devices, nor does it happen in exclusive push mode or shared mode in general.
The problem seems to be that WASAPI is setting the periodicity to be 5 milliseconds higher than what I requested, for no reason in particular. I've tried 10 ms to see timeGetTime() to reveal a period of 15 ms, so I tried requesting 15 ms instead. The period then became 20 ms. This does not happen with my other devices, which are streamed under the same conditions as the problem device, and timeGetTime() reveals a periodicity equal to that requested. Is this a glitch in a driver somewhere, or might I be making an assumption in my code that I shouldn't be?
UPDATE: The buzzing noise goes away when I send a packet of silence before starting the stream. I'm not sure how this affects the periodicity, so I'm still looking for an explanation.