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

Fix ringbuffer calloc count #536

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Fix ringbuffer calloc count #536

merged 1 commit into from
Feb 11, 2022

Conversation

finnvoor
Copy link
Contributor

Previously the ring buffer calloc call was allocating kDevice_RingBufferSize * kBytes_Per_Channel * kNumber_Of_Channels * sizeof(Float32) bytes, resulting in gRingBuffer being 4 times larger than necessary (kBytes_Per_Channel and sizeof(Float32) are redundant).

The calloc call now uses the correct kDevice_RingBufferSize * kNumber_Of_Channels count. This no longer takes kLatency_Frame_Size into account, but kLatency_Frame_Size is 0 and unused.

@devinroth
Copy link
Member

devinroth commented Feb 11, 2022 via email

@devinroth devinroth merged commit ef62470 into ExistentialAudio:master Feb 11, 2022
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.

None yet

2 participants