XAudio Request if Someone is Able

This forum is currently in read-only mode.
  • I was just wondering if there was a way for some kind soul to "fix" XAudio, the problem being that when you pick "use expression" to instead type the resource you want from your Files folder, it can only accept numbers (that reference the list position in the folder) and not the actual name of the file.

    It would just simplify things for me. I have a function that plays sounds to clean and speed up the code, but the trade-off right now is once I've started using a sound in several places using the list number of the resource, I can't change the order of the resources. If I remove a sound, all the sounds listed after will have their list ID number subtracted by one, etc.

    I was just hoping it could be added by someone or something!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you seen the new audio plugin called "Audiere Sound" ? I haven't used these audio plugins much at all, but maybe it will help.

    scirra.com/forum/plugin-audiere-sound_topic42873.html

  • its much easier to use and less problematic but lacks few options and few others needs fixing. but still, its by miles better then xaudio

  • XAudio2 works fine for me. Audiere isn't able to play the files that way either.

  • Unfortunately the filenames of the resources are not included in the the exported exe. The Ide exporter and Runtime would have to be modified to include a list of the filenames, which doesn't look to easy to do. I looked into it when I was making the resource plugin.

    Could you change the function you use to take the name of the resource as a parameter instead of the resource name? Then use a sub-event for each resource. That way you wouldn't have to worry about removing resources causing indexes to change.

    <img src="http://dl.dropbox.com/u/5426011/pics/xaudio2.PNG" border="0" />

  • Ah, nice to know, and thanks for the tip.

    For now I'm managing with the index numbers, just uncomfortable with the idea if I had to leave unnecessary samples in the game at some point.

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