Microsoft Media Foundation和XAudio2 [英] Microsoft Media Foundation and XAudio2

查看:101
本文介绍了Microsoft Media Foundation和XAudio2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

是否可以使用Microsoft Media Foundation同时使用XAudio2播放流媒体背景音频和空间3D音效?我知道XACT支持流音频,但我宁愿避免使用XACT。

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.

干杯。

推荐答案

只要两个API都没有以独占模式打开音频设备,同时使用多个音频API就没有问题。 通常,音频呈现API以共享模式打开设备。 对于媒体基础,除非您使用SPDIF流式传输,否则您将有
明确告诉音频渲染器以独占模式打开设备。 我不知道XAudio2。

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.


这篇关于Microsoft Media Foundation和XAudio2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆