Q: Problems with Mediaplayer (Harddisk Recording)

Can anyone help me with my problem:

When i use the mediaplayer to sample sound to harddisk, the recording is
randomly interrupted if there is heavy datatransfer from or to harddisk
from another process. There are short gaps in the recorded file.
The problem isnt present when i use then win95-audiorecorder to make
harddiskrecording

Is it a problem of the process priority? Or what could it be?