Hello,
I am getting director error which I don’t get in the simulator.
path = system.pathForFile( "sounds\\music1\\music1.txt", system.ResourceDirectory)--, system.DocumentsDirectory ) local fh = io.open( path ) local fileCount = 1 for line in fh:lines() do soundFNameStrings[fileCount] = tostring( line:trim() ) fileCount = fileCount + 1 end ... for i=1,#soundFNameStrings do playSounds[i] = loadStream(soundFNameStrings[i], system.ResourceDirectory) end
I know that this code causes the problem because I have made some changes here.
The change is, previously, I was getting the music1.txt directly from the resource directory, now I am getting from sounds\music1\ directory. The content of music1.txt is like below:
sounds\music1\sound1.mp3
sounds\music1\sound2.mp3
sounds\music1\sound3.mp3
…
What may be the problem?
Thanks.