backgroundMusic = audio.loadSound( "audio/songs/main.wav" ) backgroundMusicChannel = audio.play( backgroundMusic, { channel=1, loops=-1, fadein=5000 } )
When i use a file path that works, it crashes. If i was to say, change it to a non-existing path, there is no crash.
So that means the file is loading.
This file worked fine for the media.playSound() function
But since i want it on a channel, I’ve migrated to use the audio functions.
Why is it crashing though.
It even crashes when I try to load a short sound clip.