Jump to content

[SOLVED] Can't play .wav files


photo

Recommended Posts

Posted (edited)

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.

 

Edited by vaserchuk
Posted (edited)

It was are error in source file path.

 

Edited by vaserchuk
  • silent changed the title to [SOLVED] Can't play .wav files
×
×
  • Create New...