EXE with no sound?

This forum is currently in read-only mode.
From the Asset Store
Best soundtracks for any game. High quality and engaging assets.
  • Hey guys,

    I am having an issue with getting my project to export with sound... If I put the .EXE file in the folder with my audio files, it works just fine... <img src="smileys/smiley7.gif" border="0" align="middle" />

    Will I need to package/distribute my game in this way or am I missing something?

  • There's two ways of doing what you want.

    The first one is to point Construct towards the right path where the sounds are placed, when using external sounds. To do this you need to use the "AppPath" expression when pointing Construct to your files. If you have your sounds, like a file called sound1.wav for example, in a folder called audio that is placed within the same folder as your executable, then you'll want to do something like this: AppPath & "/Audio/sound1.wav"

    Alternatively you will want to add the files as resources within construct, effectively baking the sounds into the executable. Add the sounds to the "Files" folder in the project view, you'll then be able to access them as resources with either XAudio2 or Audiere, whichever you prefer.

    There are pros and cons to either method, if you don't want/need to go into detail about which is better, just use whichever method comes easiest to you.

  • Wait, can you please go into those pros and cons? I want to know even if the OP doesn't :P

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sure. I'll just mention this first, I'm going mainly by MMF1/2 knowledge here, but I'm guessing the general logic is the same, since there are many similarities between MMF2 and CC.

    As far as I know, the main difference is how/when the sounds are loaded. If you bake in the sounds into the exe, the exe will (narutally) be larger, and consequently take longer to load. Having just one file can be seen as both a pro and a con I guess.

    Loading the files externally will in general allow the program to load up quicker, but it will load the files when they are called for (which back in MMF1.5 times were kind of a big deal IIRC). If you don't want the audio files to be easily copied or accessed out of game, then this would be a con, since you effectively store the files outside of the executable.

    Now again, I'm not 100% sure that this is completely true regarding CC, though it was with MMF2. However, unless you are doing something seriously intensive you shouldn't have much of a problem with either method, since computers today are more than powerful enough to handle loading the files on the fly. It's good to keep in mind though.

  • Hey thanks inkBot. I figured it was something like that, but I am still trying to read up on all the intricacies of files vs. resources vs. sounds, and getting everything to work smoothly.

    I'll probably go with "baked in" approach, it's just simpler/cleaner...though there is something kinda cool about letting people have access to the sounds and things if they wanted to repurpose them, I dunno, I'll figure it out.

    thanks again!

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