Resources bar and XAudio2

This forum is currently in read-only mode.
From the Asset Store
Space Mining Resource
$5.60 USD
30% off
Mine those precious space resources & start trading
  • For some reason, I don't have the resources bar, and I can't figure out how to get XAudio2 to play sounds without it. I also can't figure out the AppPath thing for XAudio2. It keeps on showing an error that says that "/" is not recognized. Any help would be much appreciated.

  • The resource bar was replaced several builds ago. Now there is this:

    <img src="http://i47.tinypic.com/2cwxhj.png">

    You can add sounds here. The Sounds and Music folders aren't finished yet, so if you want to add sounds to the .exe and play them with XA2 as a resource, you need to put them in the Files folder. Right-click and select "Add file(s)"

    As for playing sounds from a file using AppPath, you need to use a backslash, not a forward slash.

  • It keeps on showing an error that says that "/" is not recognized. Any help would be much appreciated.

    What expression are you typing in? This is the standard kind of path you'd use:

    AppPath & "sounds\file.wav"

    If you're using / on its own in an expression, that wouldn't mean anything, it has to be in quotes to be recognised as text (and not eg. as a divide symbol).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you both Deadeye and Ashley!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)