如何在Store应用程序中使用Media Foundation来复用音频流。 [英] How to multiplex audio streams by using Media Foundation in a Store app.

查看:68
本文介绍了如何在Store应用程序中使用Media Foundation来复用音频流。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

   如您所知,Windows Store应用程序中不支持MFTEnumEx功能。因此,我无法列举现有的MFT。有没有其他方法来获得多路复用器?如果没有,如何编写这样的自定义多路复用器?任何参考
都是帮助。谢谢。

    As you know, the MFTEnumEx function is unsupported in the Windows Store Apps. As a result, I can not enumerate the existing MFTs. Is there any other way to get the Multiplexer? If no, how to write such a custom Multiplexer? Any reference is help. Thank you.

推荐答案

您好,

当然可以编写自定义多路复用器。 MFT上的流不表示为不同的COM对象。相反,每个流都有一个指定的流标识符,IMFTransform接口中的方法将流标识符作为输入
参数。覆盖IMFTransform :: GetStreamIDs 返回你的特定输入和输出模式。

It is certainly possible to write a custom multiplexer. The streams on an MFT are not represented as distinct COM objects. Instead, each stream has a designated stream identifier, and the methods in the IMFTransform interface take stream identifiers as input parameters. Override IMFTransform::GetStreamIDs  to return your particular pattern of inputs and outputs.

IMFTransform :: GetStreamIDs

IMFTransform::GetStreamIDs

http://msdn.microsoft.com/en-us/library/windows/desktop/ms693988(v=vs.85 ).aspx

我希望这会有所帮助,

James


这篇关于如何在Store应用程序中使用Media Foundation来复用音频流。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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