Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

kleinerm
Copy link
Contributor

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.

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.

Signed-off-by: Mario Kleiner <[email protected]>
@RossBencina RossBencina self-requested a review October 13, 2023 21:28
@RossBencina RossBencina requested a review from dmitrykos October 13, 2023 21:29
@RossBencina
Copy link
Collaborator

@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 dmitrykos merged commit 7e62dfc into PortAudio:master Oct 30, 2023
11 checks passed
@dmitrykos
Copy link
Collaborator

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

Copy link
Collaborator

@dmitrykos dmitrykos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks correct to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants