PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.39k stars 291 forks source link

wasapi: Fix wrong sign in timeInfo.inputBufferAdcTime calculation. #850

Closed kleinerm closed 8 months ago

kleinerm commented 9 months ago

ADC capture time must be earlier than currentTime, as the capture time of any received samples in a buffer must be in the past.

Fix the wrong sign in calculation to fix this.

RossBencina commented 9 months ago

@kleinerm thanks!

@dmitrykos Phil and I think this looks good, if you're ok with it would you like to go ahead and merge it please.

dmitrykos commented 8 months ago

@RossBencina, sorry noticed this thread only now and the fix looks correct. Merged.