C# DirectX - redirectiong audio to another output
-
I have the following problem: I use Microsoft.DirectX.AudioVideoPlayback class for playing video on our school TV (connected with HDMI also with the sound). Video works fine, but I´ve got a problem with audio. I need to redirect audio (represented by Audio object implemented in my Video object) to another output (Display audio output) in Windows 7. But all other sounds (also from my app) I want to send to default output. I need to send audio directly from directX playback. I don´t wanna extract audio form AVI for example. If there is some solution, please answer. Thanks.
-
I have the following problem: I use Microsoft.DirectX.AudioVideoPlayback class for playing video on our school TV (connected with HDMI also with the sound). Video works fine, but I´ve got a problem with audio. I need to redirect audio (represented by Audio object implemented in my Video object) to another output (Display audio output) in Windows 7. But all other sounds (also from my app) I want to send to default output. I need to send audio directly from directX playback. I don´t wanna extract audio form AVI for example. If there is some solution, please answer. Thanks.
As far as I remember it cant be done with basic audiovideoplayback. You might want to take a look at DirectShow instead, since you can define exactly what you want the player to do. You can start with the simple-playback sample from http://directshownet.sourceforge.net/[^] and add a DsDevice (aka soundcard output) to the graph (google how to).