Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Wav doesn't play in Linux  (Read 2557 times)

0 Members and 2 Guests are viewing this topic.

amchacon

  • Newbie
  • *
  • Posts: 2
    • View Profile
Wav doesn't play in Linux
« on: July 12, 2015, 12:12:12 pm »
This is pretty strange, i have 4 sounds effects in wav. In windows plays well, but in linux, 2 sounds effects don't play:
"Failed to open sound file "./Sonido/Menu_mover.wav" (format no supported)"
"Failed to open sound file "./Sonido/Menu_sonido.wav" (format no supported)"

Sounds:
https://dl.dropboxusercontent.com/u/69551225/Sounds.tar.gz

const std::string carpeta = "./Sonido/";
menu_mover.loadFromFile(carpeta+"Menu_mover.wav");
menu_enter.loadFromFile(carpeta+"Menu_sonido.wav");
comida.loadFromFile(carpeta+"Comida.wav");
muerte.loadFromFile(carpeta+"Muerte.wav");

I don't understand nothing. The whole proyect is here (contains binary of windows/linux for test):
https://dl.dropboxusercontent.com/u/69551225/Snake.tar.gz


Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Wav doesn't play in Linux
« Reply #1 on: July 12, 2015, 01:08:51 pm »
Maybe the file is corrupt? Try to load and save it again with an audio editing software (e.g. Audacity), and see if the problem persists.

By the way, you should check the return value of loadFromFile() calls.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: