# Rubygame Music and Audio Formats

**URL:** <https://www.ruby-forum.com/t/rubygame-music-and-audio-formats/125130>\
**Category:** Ruby\
**Created:** [January 5, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/rubygame-music-and-audio-formats/125130 "2008-01-05T22:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [January 5, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/rubygame-music-and-audio-formats/125130/1 "2008-01-05T22:54:38Z")

</div>

For some reason, Rubygame is printing to the console “warning:  
incorrect audio format” whenever I try to make a  
Rubygame::Mixer::Music object. I feed it the absolute path to a  
verified mp3 file, yet it puts that out!

What would cause it to print out that warning?

Thanks,  
Ari

---

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [January 8, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/rubygame-music-and-audio-formats/125130/2 "2008-01-08T21:48:42Z")

</div>

I believe the rubygame sdl werapper only supports wav files at the  
moment.  
Try a wav file and see if it works.

/Shawn

---

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [January 9, 2008, 3:15am UTC](https://www.ruby-forum.com/t/rubygame-music-and-audio-formats/125130/3 "2008-01-09T03:15:57Z")

</div>

On Jan 8, 2008, at 3:47 PM, Shawn A. wrote:

> I believe the rubygame sdl werapper only supports wav files at the  
> moment.  
> Try a wav file and see if it works.

I tried a wav file and it throws a legitimate error:  
test.rb:9:in `load_audio': Error loading audio music from file`/  
Users/—/Desktop/11k16bitpcm.wav’: Unable to load WAV file  
(Rubygame::SDLError)  
from test.rb:9
