I'm trying to play sound for event in the code.
SoundSourcePtr s = SoundSource::create("static_impact_00.wav");
if (!s->isPlaying())
{
s->play();
}
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.