Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Audio
»
Wav doesn't play in Linux
Print
Pages: [
1
]
Author
Topic: Wav doesn't play in Linux (Read 2560 times)
0 Members and 1 Guest are viewing this topic.
amchacon
Newbie
Posts: 2
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
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
Audio
»
Wav doesn't play in Linux