在 Mac 上使用 OpenAL 播放音频时出现随机噪音
我正在将一款游戏从 iPad 移植到 Mac。
每次我开始游戏时,播放某些声音时,在播放结束时会发出刺耳的噪音,很像短时间的重静态噪音。
此外,每次执行时产生噪音的声音并不相同。每次不同的声音组都会有噪音结束。
是否有任何与此情况相关的 OpenAL 设置来修复它。
尝试的解决方案:-
尝试将 mp3 文件转换为更高和更低比特率的格式并尝试播放。噪音仍然存在。
I am porting a game from iPad to Mac.
Every time I start the game, certain set of sounds when they are being played, have an irritating noise at the end of playback, much like a short duration of heavy static noise.
Also the sounds which produce the noise is not the same on every execution. Each time a different set of sounds have the noise at the end.
Is there any OpenAL settings regarding to this situation to fix it.
Solutions tried:-
Tried to convert the mp3 files into some higher and lower bitrate format and tried to playback. Still noise persists.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来(明白了吗?)您正在传递一个比您的数据大的缓冲区,而最后的噪音是尝试将这些字节解释为声音的结果。
It sounds like (get it?) you're passing in a buffer that is larger than your data, and the noise at the end is the result of attempting to interpret those bytes as sound.