BlasterUK
18th October 2006 19:01 UTC
Music Loop
Hey all,
This is my code used for background music:
InitPluginsDir
SetOutPath $PLUGINSDIR
File "${SND_NAME}"
System::Call 'msvfw32.dll::MCIWndCreate(i 0, i 0,i 0x0000, t "$PLUGINSDIR\${SND_NAME}") i .R0'
SendMessage $R0 0x0806 0 0
SendMessage $R0 0x0872 0 1
How do i make the song loop? its not long enough for the install process. Any way i can loop it?
Thanks
Simon
BlasterUK
18th October 2006 20:02 UTC
Also, how can i change the font colour? it doesnt show easily on my background image.
kichik
20th October 2006 10:16 UTC
If it's a wave file, you can use the BgImage plug-in to play it in a loop.
BlasterUK
20th October 2006 21:18 UTC
its wma
BlasterUK
20th October 2006 21:42 UTC
ok its in wav format now. Its in the root dir to the .nsi file, can someone post up the code i need to add? i cant get it working.
Comm@nder21
21st October 2006 13:28 UTC
Section blabla
SetOutPath $PLUGINSDIR
File music.wav
BgImage::Sound /LOOP "$PLUGINSDIR\music.wav"
[...]
BgImage::Sound /STOP
Delete "$PLUGINSDIR\music.wav"
SectionEnd
BlasterUK
22nd October 2006 16:48 UTC
thx, but i added that after the code for bgimage and it didnt work :(
kichik
25th October 2006 22:33 UTC
You must use /NOUNLOAD with BgImage::Sound or it'd simply unload the plug-in and stop the music right after it returns.
Takhir
26th October 2006 15:33 UTC
SendMessage $R0 0x0465 0 "STR:play repeat"
from this link Play Sound
BlasterUK
26th October 2006 18:06 UTC
Thanks All, i'm using the coding from Takhir. Thanks mate.