tl;dr version:
What is the syntax for accessing a sound (file) within a folder hierarchy?
Hi,
I’m quite new to Corona so bear with me here. I’m trying to play sound with loadStream(). My sounds are located several folder levels in ie Appfolder/sounds/poem where Appfolder is the folder where my main.lua is located and my sounds are located in the poem folder. Now I assumed the best way to get to the sounds is by using the optional baseDir arg. After some research I learned this wasn’t a simple string as I had thought. I tried using system.ResourceDirectory.sounds.poem, no luck. I’m guessin there is a specific syntax for accessing files in this way but I couldn’t find it. What I had been doing was just leaving the sounds in my base folder ie same folder as main.lua, and they played fine but this will end up really messy by the end of the project.
Any chance of a bump in the right direction?
Graham
[import]uid: 134131 topic_id: 25412 reply_id: 325412[/import]
[import]uid: 52491 topic_id: 25412 reply_id: 102670[/import]
[import]uid: 52491 topic_id: 25412 reply_id: 102762[/import]