Doing some initial development work with Corona and noticing that my audio is not playing on device. Took a look on google and noticed some comments from 1-2 years ago about Corona not allowing subfolders… Then comments about subfolders on IOS but not Android. Etc, etc… Then the following link:
http://www.coronalabs.com/blog/2012/07/10/best-practices-for-organizing-projects/
…looking for some clarification.
I currently have the following subfolders:
/audiofx
/music
/images
/scripts
But I also have the idea of organizing my level content into this structure:
/levels/tutorial/audiofx/
/levels/tutorial/music/
/levels/tutorial/images/
/levels/tutorial/scripts/
…
/levels/boss/audiofx/
/levels/boss/music/
/levels/boss/images/
/levels/boss/scripts/
…it would really hurt to have to cram everything into the root folder. Some clarification please!
BTW, here is the code:
[code]
– PLAY TEMP AUDIO TRACK
backgroundMusic = audio.loadStream(“music/game/level1/rickmassacre-dnb-drum-loop-5.mp3”)
function playBackgroundMusic()
audio.play( backgroundMusic, { channel = 1, loops = -1, fadein = 10} )
end
playBackgroundMusic()
[code]
P.S. I’ve tried the audio in both wav and mp3 formats. [import]uid: 182425 topic_id: 33555 reply_id: 333555[/import]