Your code, and the example code in the documentation for SoundBufferRecorder both fail for me too. Both fail (for me) at recorder.start() with "Failed to open the audio capture device..." and, in the example code, the buffer.saveToFile fails with "Format not recognised".