Sound file won't play when passed as variable
I want to play an *.rso sound, and I want my program to dynamically concatenate the sound file name. However, when passing it to the PlaySoundFile() function, it doesn't play a sound -- even when the same PlaySoundFile() will work if I manually include the string value! I've tried to break it down to below code (it's not exactly what I'm using but should illustrate the issue in the minimal form):
(This even happens when I add a dummy "PlaySoundFile("sound/1.rso");" to the beginning of the program to make sure RobotC adds the sound file... what's a better way to do that, by the way?)
Can anybody help? Thanks!