I have a Xaudio2 object, and I want to set its sound to a file in a sub folder of my appPath. I tried this, but no luck:
How would I do this?
if that dosent work try taking out the leading
apppath is an expression and you need to put it together with a string.
you don't need the '\' straight after the appPath (the one before 'sounds'), as the appPath already places one.
Develop games in your browser. Powerful, performant & highly capable.
I thought so but I couldnt remember off the top of my head
You've written the original expression as "Apppath divided by sounds divided by gun..."!
I'd always stick with using & to concatenate strings, because it can also take numbers and add them to strings, whereas + will give an error. So go with:
AppPath & "sounds\gun\gunshot.wav"