Jump to content
LaunchBox Community Forums

Recommended Posts

  • 1 year later...
  • 2 years later...
Posted

Relatively old post, recently revived (and expanded upon in the above-linked Feature Request) by @crusadeRGP.

 

From the OP question, this can be accomplished by editing the emulator (i.e. MAME) in LaunchBox.  In the Pause Script section, add the following:

file = Full/path/to/ArcadeAmbianceSounds.mp3
SoundPlay, %file%, wait

Change the path and MP3 filename to match your location.  .mp3 files works best.  But some other audio file types may work as well.

This is a one-emulator, one-song kind of thing.  As in, you need to set it up on a per emulator basis. Which is good because you can select a different 'song' based on the emulator.

You can also do this per game.  Edit the game, go to the Startup/Pause section, check Override default Pause....  Click Customize and in the On Pause section, place the above code, respectively.

 

Getting a little crazy, you could create an array of files and then have SoundPlay 'pick' a random file from the array.

 

Yes.  This is all "manual labor".  But the take-away is, it can be done natively from within LaunchBox. 😎

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...