AudioSampleBuffers in DirectSound


#1

Hi jules,

I got some weird noises recently when opening the DirectSound drivers. I think that in wake of getting rid of the old HeapBlocks, some buffers might have been left uninitialized.

In DSoundAudioIODevice::openDevice, I don’t think that the input and output buffers that were previously calloced are not zero’ed any more. A simple call to

inputBuffers.clear() outputBuffers.clear()

fixes it on my end.

Thanks,


#2

Ah, excellent stuff, thanks for spotting that! I’ll go take a look…