[SOLVED] Can't play .wav files


Recommended Posts

I'm trying to play sound for event in the code.

SoundSourcePtr s = SoundSource::create("static_impact_00.wav");

    if (!s->isPlaying())


But get following errors:

SoundFileWav::load(): can't open "static_impact_00.wav" file
ALSampleStatic::ALSampleStatic(): can't load "static_impact_00.wav" file


But this .wav file was played in the Editor. Also sounds were toggled on in .world file.


Edited by vaserchuk
Link to post


Where is the static_impact_00.wav file located? Could you please also attach this file to your next response?


How to submit a good bug report
FTP server for test scenes and user uploads:

Link to post
Posted (edited)

It was are error in source file path.


Edited by vaserchuk
Link to post
  • silent changed the title to [SOLVED] Can't play .wav files