媒体源上的MediaFoundation中的接口以获取音频信息 [英] Interface in MediaFoundation on Media Source to get Audio Info

查看:314
本文介绍了媒体源上的MediaFoundation中的接口以获取音频信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi,

Media Foundation上的音频控制源过滤器是否有可用的界面。在Directshow中有IBasicAudio但在Media Foundation中没有得到任何类似的界面。

Is there any Interface available in Media Foundation on Source Filter for Audio Control. There is IBasicAudio in Directshow but didn't get any similar interface in Media foundation.

我找到了

界面但无法在媒体源上获取服务。

interface in Media Foundation but not able to get the service on media source.

我在Media Session上调用GetService来获取服务,但它返回NULL。

I have called GetService on Media Session to get the service, but it returns NULL.

请告诉我怎么办?获得服务?

Please let me know how can I get the service?

最好的问候,

Sharad

推荐答案

查看MFPlayer示例,这是一个Media Foundation SDK示例,可从以下位置获取:

Look at the MFPlayer sample, which is a Media Foundation SDK sample available at:

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

MFPlayer示例实现  IMFSimpleAudioVolume。在示例应用程序中,查看Feature_Audio.cpp和Feature_Audio.h。

The MFPlayer sample implements IMFSimpleAudioVolume. Within the sample application look at Feature_Audio.cpp and Feature_Audio.h.


这篇关于媒体源上的MediaFoundation中的接口以获取音频信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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