If recording is too short or something, not sure really, but this can lead to wrong buffer size.. I had to change my code to size of 1024 because I had issues with this in my app, started from your example. Thanks anyway for your effort. This report is mine ;).