flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Windows > How to play wave sounds from a resource | 
| Author | 
 | 
| bitshifter 26 Oct 2008, 12:44 You may want to take a look at PlaySound also.
 It takes care of the finding/locking/loading/playing/freeing for you all in one function call. | |||
|  26 Oct 2008, 12:44 | 
 | 
| Lightning Stalker 27 Oct 2008, 06:55      Ahh, thank you.  The above then becomes-
 Code: SND_ASYNC equ 1h SND_RESOURCE equ 40004h invoke PlaySound, sound, 0, ( SND_RESOURCE + SND_ASYNC ) import WINMM.DLL,\ PlaySound,'PlaySoundA',\ | |||
|  27 Oct 2008, 06:55 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.