QTKit 音频静音和流缓冲状态消息
我在 QTkit 中将音量静音,如下所示:
if
([muteButton state] == NSOnState){
[mMovieVolumeSlider setFloatValue:0.1];
[testMovie setVolume:0.1];
问题是音量衰减突然且突然。如何实现音量衰减的淡入淡出效果?
另外 - 我的应用程序运行 .pls 音频流文件。我将 .pls 文件嵌入到捆绑包中。在应用程序中选择流时,在流开始播放之前通常会出现短暂的延迟。我想在连接之前的短暂延迟期间显示某种状态消息(“正在缓冲”或“正在连接”)。当流开始时,状态消息将结束。有关于如何解决此问题的想法吗?
感谢您的帮助。
-paul 。
I'm muting volume in QTkit like this:
if
([muteButton state] == NSOnState){
[mMovieVolumeSlider setFloatValue:0.1];
[testMovie setVolume:0.1];
The problem is the volume attenuation is sudden and abrupt. How can I implement a fade effect to the volume attenuation?
Also - my app runs .pls audio stream files. I have the .pls files embedded in the bundle. When selecting a stream within the app, a short delay is common before the stream begins to play. I want to display some sort of status message ("Buffering" or Connecting") during this short delay prior to connecting. When the stream begins the status message would end. Any idea's on how to approach this?
thanks for the help.
-paul.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将概述我对你的两个问题的答案作为建议:
animation:valueForProgress:
可能是你的朋友)。HTH
丹尼尔·
I'll just outline my answers to your two questions as suggestions:
animation:valueForProgress:
will probably be your friend here).HTH
Daniel