Hello, I'm trying to write an application that grabs audio using DirectSound and then pass this audio to LAME to encode. Currently, my problems are that the resulting MP3 is ~2 times quieter then the audio being recorded and I have to use a couple of fudge numbers in orderto get the whole sample to encode. If you can take a look at my code it would be much appricated. Sorry about it being a bit messy, just trying to get it working.
You can find my source code at http://pastebin.com/m1d031498
Thanks for looking.
*The problem I believe lies around 213 for the timing issue