I wanna capture both audio and video.

Hi, i am workig on a project about recording video and audio on the system by using WMEncoder(Windows Media Encoder) sdk.
I can capture video so far.
And I added some code line to capture audio on the system, but
it didn't work. It captures olny input device of sound card.
I mean I can record some sound from only microphone, not from system sound.
I used these codec blow.
#define WMA9STD_FOURCC 353
#define WMA9PRO_FOURCC 354
#define WMA9LSL_FOURCC 355
#define WMSPEECH_FOURCC 10
#define PCM_FOURCC 0

how can i capture audio on the system?
For instance, while the program is running, I am playing a music.
Then the program must capture both the video and the music.
If anyone has any ideas, please help me. :(
thanks in advance. (i can post the source code if you need)
Topic archived. No new replies allowed.