CAnimateCtrl 怎么没有声音

北狐狸 2003-06-13 10:29:28
在对话框里加了一个CAnimateCtrl,能播放*avi文件的图形,可是没有声音。
...全文
37 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
resound 2003-06-14
  • 打赏
  • 举报
回复
CAnimateCtrl控制就是播放简单的动画用的类,它对AVI有很多限制,其中就包括不能播出声音.
这是中MSDN的话:
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:

There must be exactly one video stream and it must have at least one frame.


There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).


The clip must either be uncompressed or compressed with RLE8 compression.


No palette changes are allowed in the video stream.
北狐狸 2003-06-14
  • 打赏
  • 举报
回复
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?

北狐狸 2003-06-13
  • 打赏
  • 举报
回复
还有,
CAnimateCtrl m_Animate01;
m_Animate01.open(IDR_CLOCK);//就是这里
m_Animate01.Play(0,-1,-1);
怎么不能实现播放,IDR_CLOCK 我在资源里加了clock.avi,并定义了IDR_CLOCK;
只能用:
m_Animate01.open(_T("clock.avi"));
这是怎么回事?

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧