Rubygame on Rails :在 Rails 上使用 Rubygame gem 时支持音频格式(mp3、ogg)

发布于 2024-11-13 21:59:15 字数 507 浏览 2 评论 0原文

安装 ruby​​game 后,我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文