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

Properly wrap AudioBufferManager block writes #2725

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Properly wrap AudioBufferManager block writes #2725

merged 1 commit into from
Dec 30, 2024

Conversation

earlephilhower
Copy link
Owner

The memcpy-version of the ABM::write updated the destination and count but neglected to move the source forward. If a block write crossed a frame boundary then the 2nd frame would repeat the data from the first half of the buffer.

Fix by incrementing the source pointer by the same amount as was written.

The memcpy-version of the ABM::write updated the destination and count
but neglected to move the source forward.  If a block write crossed a
frame boundary then the 2nd frame would repeat the data from the first
half of the buffer.

Fix by incrementing the source pointer by the same amount as was written.
@earlephilhower earlephilhower merged commit cc2581a into master Dec 30, 2024
26 checks passed
@earlephilhower earlephilhower deleted the aud1 branch December 30, 2024 00:26
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.

1 participant