Archive: Playing one continuous sound while many pictures are displayed in splash


Playing one continuous sound while many pictures are displayed in splash
I've been fiddling with the code and I can't quite get this to work. Basically, during the "Function .oninit" part I am displaying a few images one after the other, but I want to have one .wav file play continuous throughout these pictures showing.

I can get it so that the sound plays in over the first bitmap but when the bitmap closes to make way for a new bitmap the sound stops too, mid-play.

The other parts of the ".oninit" are to do with confirming whether the user definately wants to install and making sure two installations don't open at once. They're not important.

So put simply, I need a "slideshow" of images to display with one sound track playing throughout just after the install executable is started. Please can someone show me what I am doing wrong.

I have attached my entire .onInit code which should hopefully appear below. Thanks in advance, and help would be greatly appreciated.


You can play sound without advsplash - old good VFW.


Thanks alot for that, but just one thing:

!define APP_NAME "mci.sound"
!define SND_NAME "tango.mp3"

Why do I need two sound files, and how do I make a '.sound' file? Thanks alot.


APP_NAME defines name of exe file, mci.sound.exe
The only sound file in this example is tango.mp3
To test this change tango.mp3 to sound.wav


File "${SND_NAME}"
System::Call 'msvfw32.dll::MCIWndCreate(i 0, i 0,i 0x0070, t "$PLUGINSDIR\${SND_NAME}") i .r0'
SendMessage $0 0x0465 0 "STR:play repeat"
System::Call 'user32.dll::ShowWindow(i r0, i 0)'

Ok thanks alot this has really helped. Cheers!