Archive: Music in background


Music in background
Is there a way to play a wave file (or better an mp3 file) in loop during an installation?


Ugggh... okay if you really have to do something like that (god I wish you wouldn't) you'll need to find some sort of command line playback tool to do it for you, and then launch that from NSIS. Alternatively you could try hacking apart one of the splash plugins, I seem to remember that they contain code to play sounds.


BgImage can play sounds :)

Have a look at the example under Contrib\BgImage. Just remove the image code if you don't want a background image. The only problem is that it can only play wave files.


@sunjammer
it's for a game mod, and the installation takes about 5 minutes (it extracts some stuff from the game files). so why no background music from the game.
i am no c programmer, so i can't rewrite this plugin.


@kichik
yea, i have tried that, but it cannot play wave files in loop


Add a feature request at SourceForge. BgImage will get some attention soon so I'll this one too. In the mean while you can used the attached file. It will always play the wave file in a loop and will only stop when you call BgImage::StopSound. The /WAIT flag won't work with BgImage::Sound because you can't wait for a loop.


great thanks!