locked
Microsoft Media Foundation and XAudio2 RRS feed

  • Question

  • Hello!

    Is it possible to use Microsoft Media Foundation to play streaming background audio and spatial 3D sound effects with XAudio2 at the same time? I know XACT supports streaming audio but I would rather avoid using XACT.

    Cheers.

    Wednesday, August 10, 2011 7:41 PM

All replies

  • As long as neither API is opening up the audio device in exclusive mode, there is no problem using more than one audio API at the same time.  Generally, audio rendering APIs open up the device in shared mode.  For media foundation, you would have to explicitly tell the audio renderer to open up the device in exclusive mode unless you are streaming using SPDIF.  I do not know about XAudio2.

    Tuesday, September 13, 2011 11:13 PM
  • Note this technique is used by XAudio2 audio stream effect sample

    http://code.msdn.microsoft.com/windowsapps/XAudio2-Stream-Effect-3f95c8f2

    Sunday, September 29, 2013 12:11 AM