I record 16 minutes, this time it was 16 minutes and four seconds. And the audacity file, which I now have cropped, is 16 minutes and eleven seconds. I dont know why
It is it 7 seconds out-of-sync, that’s a problem. If it’s just 7 seconds longer but in-sync, I don’t see why that’s a big deal… If you are mixing the Audacity track with the Fraps file using a video editor, the video editor should allow you to easily adjust the lengths to match.
If it drifts out-of-sync and it’s not a “multitasking problem”, it could be the clock (oscillator) in your soundard/sound chip. The clocks in consumer soundcards can sometimes be off by a few percent. If that’s the case, good external microphone and better audio interface or a good “studio style” USB condenser mic should help a lot. A USB mic has its own clock & soundchip built-in. (I don’t trust cheap "gaming’ or “communications” USB mics.)
In any case, I think this is a hardware problem… Either your computer isn’t fast enough to capture audio & video with two or three applications running at the same time, or the video clock doesn’t match your soundcard clock.
Capturing (recording) audio or video on a multitasking machine is not easy, and the operating system is always multitasking, even when you’re running only one application. Even if you have multiple processors and multiple hard drives, you only have one data bus. The audio & video are streamed at a constant rate into a buffer. If the operating system gets back-around to your application in time, it can read the A/V data to the hard drive in a quick-burst, and everything’s OK. If some other application or driver “hogs” the data bus, CPU, or hard drive for too long, your buffer overflows, you loose data and you get a glitch. (And with bytes missing form the data-stream, you’ll get timing errors.)
(Because no two clocks are ever exactly the same and in-phase, pros use a master-clock along with hardware that’s designed to work with a master-clock interface to keep everything in sync. That shouldn’t be necessary in your situation, but it is an issue that even the pros have to deal with.)