vaserchuk Posted October 7, 2020 Share Posted October 7, 2020 (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 October 7, 2020 by vaserchuk Link to comment
silent Posted October 7, 2020 Share Posted October 7, 2020 vaserchuk Where is the static_impact_00.wav file located? Could you please also attach this file to your next response? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
vaserchuk Posted October 7, 2020 Author Share Posted October 7, 2020 (edited) It was are error in source file path. Edited October 7, 2020 by vaserchuk Link to comment
Recommended Posts