# RubyGame Audio on Mac OS 10.4.11

**URL:** <https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779>\
**Category:** Ruby\
**Created:** [January 11, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779 "2008-01-11T23:55:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 11, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/1 "2008-01-11T23:55:44Z")

</div>

Hey

I managed to get Rubygame successfully installed on mac os x, however  
using audio still gives me trouble!

WAV and MP3 files (the only ones I’ve tested) throw errors and  
warnings, respectively.

I am more focused on getting MP3 files to work right.

Here is my code:  
require “rubygame”

song = Rubygame::Mixer::Music.load\_audio("/Users/—/Music/iTunes/  
iTunes Music/LOK/Sunk 500/Bedragaren I Murmansk.mp3")  
song.play

and the warning?  
Warning: incorrect audio format

I have NO clue what it’s trying to tell me to do to fix it. Can  
someone please help?

BTW, I am willing to use other SDL bridges if they work and run  
correctly on Mac

Ari

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 12, 2008, 12:02am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/2 "2008-01-12T00:02:47Z")

</div>

> song.play
> 
> and the warning?  
> Warning: incorrect audio format
> 
> I have NO clue what it’s trying to tell me to do to fix it. Can  
> someone please help?

This is maybe not the best approach, but I’d just grep the source for  
the warning text and see what’s going on. It probably needs AIFF or  
some crazy thing.

–  
Giles B.

Podcast: [http://hollywoodgrit.blogspot.com](http://hollywoodgrit.blogspot.com)  
Blog: [http://gilesbowkett.blogspot.com](http://gilesbowkett.blogspot.com)  
Portfolio: [http://www.gilesgoatboy.org](http://www.gilesgoatboy.org)  
Tumblelog: [http://giles.tumblr.com](http://giles.tumblr.com)

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 12, 2008, 1:09am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/3 "2008-01-12T01:09:28Z")

</div>

On Jan 11, 2008, at 6:02 PM, Giles B. wrote:

> This is maybe not the best approach, but I’d just grep the source for  
> the warning text and see what’s going on. It probably needs AIFF or  
> some crazy thing.

Oddly enough, this didn’t help. At all. Nothing came up[1]!

Any other suggestions?

[1] That was of any value

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 13, 2008, 2:09am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/4 "2008-01-13T02:09:44Z")

</div>

You might double check the format.  
iTunes will often use AAC or m4a  
Try testing it with a known good audio file in various formats.  
and put it in a different location.  
Also, you may need to use a file name without spaces or escaped  
somehow, you might want to check the internals of Rubygame.

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 19, 2008, 4:37am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/5 "2008-01-19T04:37:41Z")

</div>

i think it is. I’ll reinstall it and update you on it.

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [January 19, 2008, 12:33am UTC](https://www.ruby-forum.com/t/rubygame-audio-on-mac-os-10-4-11/125779/6 "2008-01-19T00:33:11Z")

</div>

Is your SDL-mixer compiled after you installed smpeg for mp3s? I am  
also  
unable to get mp3 files working, but wav files work fine.

/Shawn

On Jan 12, 2008 5:08 PM, John J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
