nokia-developer/audio-recorder — pull request #3 by kamenlitchev (2013-11-26 11:29:34+00:00)
Title: Fixed ReadBytes overruning the buffer

The ReadBytes method was not properly accounting for cases when the Mic buffer is too big for the dedicated ReadBytes internal buffer. This code tries to deal with the issue by never reading more that what ReadBytes has as array. Tested, but since C++ is something I deal since soon, please, check more thoroughly :)