Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# DirectX - redirectiong audio to another output

C# DirectX - redirectiong audio to another output

Scheduled Pinned Locked Moved C#
csharpgraphicsgame-devhelptutorial
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hrubon2
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • H hrubon2

      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.

      M Offline
      M Offline
      Michael9000
      wrote on last edited by
      #2

      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).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups