By Nanaya
Date 2011-01-08 17:07
Edited 2011-01-08 17:28
Hi everyone,
Today I was learning a few about sound with Gosu, but I've got a little problem, very annoying.
If I use "Sample", I can use mp3 without any problem, but the quality is pretty bad (it seems to be play in a hall, with a lot of echo ; and the sound have a lot of noise, may should I fit the volume or something else ?).
But in the other hand, when I use "Song", the mp3 files have a "RuntimeError" :
'
C:/Program Files/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gosu-0.7.25-x86-mingw32/lib/gosu/patches.rb:36:in initialize': MP3 file playback not allowed (RuntimeError)
from C:/Program Files/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gosu-0.7.25-x86-mingw32/lib/gosu/patches.rb:36:in
initialize'
from C:/Documents and Settings/Julien/Mes documents/Ruby/Programmes/Full_HD/lib/main.rbw:19:in new'
from C:/Documents and Settings/Julien/Mes documents/Ruby/Programmes/Full_HD/lib/main.rbw:19:in
initialize'
from C:/Documents and Settings/Julien/Mes documents/Ruby/Programmes/Full_HD/lib/main.rbw:37:in new'
from C:/Documents and Settings/Julien/Mes documents/Ruby/Programmes/Full_HD/lib/main.rbw:37:in
<main>'
'
If I convert my mp3 files to wav and use "Song", then the quality is clearly better (but still not perfect).
What do you think about it ?
Nanaya,
P.S. : By searching in the forum, I've only discoverd that FMOD was replaced by something else (can't remember the name).
P.P.S. : I work with Netbeans IDE 6.9.1 and the lastest version of Ruby and Gosu. Even if I try without Netbeans, it doesn't work (may be stupid test, but...).
Loading...