媒体源上的MediaFoundation中的接口以获取音频信息 [英] Interface in MediaFoundation on Media Source to get Audio Info
问题描述
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屋!