Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
A weird sound bug (file missing) — Gideros Forum

A weird sound bug (file missing)

RickyngkRickyngk Member
edited March 2013 in General questions
Hi,

Sometimes when open file sound file with Sound.new("data/music_file_for_my_game.mp3"), my game is crashed with notice "no such file or directory". Note that "music_file_for_my_game.mp3" is existed, with a long name. It usually happens at first time running.

After a cheat:
local fn = "data/music_file_for_my_game.mp3"
local fobj = io.open(fn, "r")
assert(fobj ~= nil, "[SOUND] fail to open audio file " .. fn)
fobj:close()
myAudio = Sound.new(fn)
That bug does not happen anymore.

Have you ever got this before :D

Comments

Sign In or Register to comment.