关于网友提出的“ CAnimateCtrl 怎么没有声音”问题疑问,本网通过在网上对“ CAnimateCtrl 怎么没有声音”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: CAnimateCtrl 怎么没有声音描述:
在对话框里加了一个CAnimateCtrl,能播放*avi文件的图形,可是没有声音。
解决方案1:
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.