Please refrain from using special formatting where not needed. It only takes away from the readability and distracts from the content. Also make use of the [code=cpp][/code] tags.
What bitrate does your audio recorder, record at?
What values do you get, when you call getSampleRate() and getChannelCount() on the buffer?
Btw. you should always use forward slashes (/) they are supported on every system even Windows. Plus if you use relative paths, the code can work across platforms.