mumble-voip / mumblekit

Objective-C-based Mumble client framework for iOS and Mac OS X
http://mumble-voip.github.com/mumblekit/
BSD 3-Clause "New" or "Revised" License
154 stars 70 forks source link

Fix a bug with buffer size calculation in the AudioUnit inputCallback #44

Closed emiliopavia closed 7 years ago

emiliopavia commented 8 years ago

This commit fixes an error in the formula used to check if the buffer is too small.

Moreover the AudioUnitRender function modifies the mDataByteSize members with the actual read bytes count. This makes the buffer continuosly reallocated even if not necessary. This commit resets the mDataByteSize member to the actual buffer size.

huxingyi commented 8 years ago

+1

ThuggishNuggets commented 8 years ago

+1