I am trying to write a program to capture and save whatever is being sent to output of my sound card (i.e. to speaker) but I could not find any API to capture output of my sound card. Does anybody know how I can do that? (I already tried waveIn* APIs, but they just can capture the line-in signal by microphone)