Not logged inGosu Forums
Forum back to Help Search Register Login
Up Forum
Topic Sound problem in game developed in 2017 with current version By barrykad3 Date 2022-03-31 15:20

In 2017 I developed a game using ruby and gosu, it played perfectly. Recently I wanted to update my portfolio with this project, but when I run it I get the following error message:

/var/lib/gems/2.7.0/gems/gosu-1.4.3/lib/gosu/compat.rb:116:in `initialize': Could not parse audio file sounds/game.wav: Sound format unsupported (RuntimeError)

I've checked the game.wav file, it's working fine.

The code fragment where I load the sound is this one:
    @font =
    @game_music ='sounds/game.wav')
    @collide_sound ='sounds/collide.wav')
    @death_sound ='sounds/death1.wav')
    @hurt_sound ='sounds/hurt.wav')
    @player_death_sound ='sounds/player_death.wav')
    @throw_sound ='sounds/throw.wav')

I'm aware gosu has been updated a lot since 2017, but I can't find any changes related to sound.

Any tips on how to fix this?

Thank you.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill