5

I am trying to build an application for intercepting the audio from player before it reaches the real sound card and redirect the audio stream to RDP virtual channel so that to play the audio at the speaker of remote client.

How to implement this scenario for windows xp and vista? Any help will be appreciated.

Thanks.

user369287
  • 692
  • 8
  • 28

3 Answers3

3

The only reliable way of doing this would be to write your own audio device driver, which is not a trivial undertaking.

A compromise solution would be attempt to write an application that records the output to the soundcard. In Vista and above you can do this using WASAPI to do loopback recording. In XP, you have to hope that your soundcard manufacturer included a "What U Hear" (sic) record source with their driver. See this question for more info.

Community
  • 1
  • 1
Mark Heath
  • 48,273
  • 29
  • 137
  • 194
  • Thanks for the quick reply. My requirement is when the user selects the option 'play at remote system' over RDP the audio which runs through player at terminal server should be played at remote client with low latency. Is there any way redirect the audio directly without recording the output to the sound card? – user369287 Jun 01 '11 at 08:51
  • 1
    @user369287 you'd again be back to writing your own audio device driver. Can't you just turn off the speakers on the local machine? – Mark Heath Jun 01 '11 at 10:34
  • Thanks for the reply.Is it possible to redirect the audio directly from player to RDP virtual channel without using the concept of own audio device driver? – user369287 Jun 01 '11 at 11:00
  • My answer above states the only two ways I know of doing this. I don't think you have any other option. – Mark Heath Jun 01 '11 at 11:01
  • Thanks a lot for the quick reply. How to use that own audio device driver to redirect the audio stream from server to client? – user369287 Jun 01 '11 at 11:38
  • How to send audio from player to virtual audio device driver and pass it to RDP virtual channel? – user369287 Jun 02 '11 at 07:05
3

If your budget allows it, you could try with Virtual Audio Cable. It is a commercial virtual audio driver that you could use behind the scenes (as Mark Heath recommended).

yms
  • 10,361
  • 3
  • 38
  • 68
0

Another way would be using Stereo Mix in your recorder devices section of your windows. However it captures analog output from your sound card and you should stick this in your mind that it's analog, not digital. And yes I am searching to capture audio stream before reaching sound card just like you, so I hope if somebody knows how to do this, shares answer with us.

Alireza Mohamadi
  • 511
  • 5
  • 19