If you find you can not record audio, and playback MIDI at the same time, your soundcard is only half-duplex.
You require a full-duplex soundcard in order to perform this task. You can solve this problem by investing in a proper Soundcard.