Just an update for those who were following this thread, I found a solution today. And it's actually basically what ddf suggested earlier ( and which I actually tried ), maybe ddf suggested a different solution, and I tried something else. But oh well , this is what I did :
basically changed the following code, as ddf suggested :
Code: if (recording)
{
myFile.write(myStream);
bytesWritten+=myStream.size*2;
}
so that it was :
Code: if (isRecording) {
myFile.write(myInput.buffer);
bytesWritten+=myInput.size*2;
}
I completed deleted "void audioStreamWrite", and put that code inside "void audioInputData".
I *think* that's all I did. It's late, so I'm not thinking 100% straight, all I know is that now it works! And it doesn't give me a live microphone output/monitor during recording.
So thankyou for your help everyone, if you need further explaination, feel free to reply here, I'm watching the topic for replies.