如何在DirectShow播放声音的同时显示图片 [英] how display a picture while playing a sound by DirectShow

查看:137
本文介绍了如何在DirectShow播放声音的同时显示图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过IGraphbuilder界面的"RenderFile"方法显示图片或声音.
但是我想同时显示图片和声音.谢谢.

I can display a picture or a sound via the method "RenderFile" of IGraphbuilder interface.
But I want to display a picture and a sound at the same time。how do I?thanks.

推荐答案

如何创建两个IGraphbuilder实例并将一个实例用于图片和其他声音.您将在同步方面遇到更多问题. The Code Project中有一篇很好的文章.
How about creating two instances of IGraphbuilder and using one for picture and other for sound. You will encouther problems with synchronization. There is a good article about this in The Code Project.


这篇关于如何在DirectShow播放声音的同时显示图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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