Rubygame on Rails :在 Rails 上使用 Rubygame gem 时支持音频格式(mp3、ogg)
安装 rubygame 后,我尝试在 ruby 解释器上支持 midi、mp3、ogg、aiff 和 wav 文件,效果很好。我使用 Rubygame::Music 类和其中的方法来实现相同的目的。
但是当我在 Rails 框架上使用和尝试它时,只有 midi 格式可以工作,其余格式(mp3、ogg、aiff 和 wav)正在执行,但没有声音。
经过一番谷歌搜索后,我看到了这个: http://blog.rubygame.org /2008/04/01/rubygame-on-rails/ 据其介绍, “目前,RGoR(Rubygame over Rails)中唯一的音频支持是播放 1990 年流行歌曲的 MIDI 版本。不过,我希望在未来的版本中解决这些问题和其他问题。”
现在最新版本已修复此问题吗?有人在 RGoR 上尝试过这些格式(mp3、ogg)吗?
I have tried support of midi, mp3, ogg, aiff and wav files on ruby interpreter after installing rubygame and it works fine. I Used the Rubygame::Music class and methods in it for the same.
But when i use and try it on the rails framework only midi format is working and the rest of the formats(mp3, ogg, aiff and wav) are getting executed but there is no sound.
After some googling i saw this : http://blog.rubygame.org/2008/04/01/rubygame-on-rails/
As per it,
"Currently, the only audio support in RGoR (Rubygame over rails) is playing MIDI versions of 1990′s pop songs.However, I hope to fix these and other issues in future releases."
Is this fixed now on latest versions and has anyone tried these formats(mp3, ogg) on RGoR?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论