flat assembler
Message board for the users of flat assembler.
Index
> Windows > Adding WAV to resources |
Author |
|
M@X 07 Sep 2004, 06:20
Hi, ppl. I had a trouble adding WAV files to resources. Is anybody can write a sample how this can be done.
|
|||
07 Sep 2004, 06:20 |
|
DEMON 07 Sep 2004, 17:35
You can add to *.res file string like as:
Code: MySound SOUND "sound.wav" To play WAV-resourse you can use function PlaySound. |
|||
07 Sep 2004, 17:35 |
|
vbVeryBeginner 07 Sep 2004, 17:58
try put this into ur .asm file, please provide ur own .wav file!
or copy it from ur windows directory, or just change the link to it. assembled with FASM 1.55, and it works on my PC :p also, please take a look on the "INCLUDE\EQUATES\KERNEL32.INC" ; Resource types Resource-Definition Statements <- PSDK help file, can be downloaded from microsoft website. there are lot of information inside Code: section '.rsrc' resource data readable directory RT_RCDATA,mysound resource mysound,\ 30,LANG_NEUTRAL,soundfile fileres soundfile,"The Microsoft Sound.wav" you can try visit http://sulaiman.thefreebizhost.com for converted FASM code :p sincerely, vbVeryBeginner |
|||
07 Sep 2004, 17:58 |
|
vbVeryBeginner 04 Oct 2004, 15:32
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
this is a rather big file, if you got BIG pipe, fast internet connection, it should be no problem sincerely, me |
|||
04 Oct 2004, 15:32 |
|
veach1 04 Oct 2004, 17:10
thank you, but size... errr...
|
|||
04 Oct 2004, 17:10 |
|
vbVeryBeginner 04 Oct 2004, 22:37
a small one is here (in .hlp format)
http://www.borland.com/devsupport/borlandcpp/patches/BC52HLP1.ZIP win32 api reference about (5.43 mb) sincerely, sulaiman chang |
|||
04 Oct 2004, 22:37 |
|
veach1 05 Oct 2004, 06:35
great! thank you!
|
|||
05 Oct 2004, 06:35 |
|
semiono 24 Jan 2014, 23:16
Code: include '%fasm%/win64ax.inc' section '.code' executable start: sub rsp,8 invoke PlaySound,a,NULL,13 invoke MessageBoxTimeout,HWND_DESKTOP,'Stop','',MB_TOPMOST,LANG_NEUTRAL,5000 exit: invoke ExitProcess,NULL section '.data' readable a file 'Play.wav' section '.idata' import readable library kernel32,'KERNEL32.DLL',user32,'USER32.DLL',winmm,'WINMM.DLL' include '%fasm%/api/kernel32.inc' include '%fasm%/api/user32.inc' import winmm,PlaySound,'PlaySound' wasm.ru (c) |
|||
24 Jan 2014, 23:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.