.386
.model flat,stdcall
option casemap:none

includelib \masm32\lib\winmm.lib
include \masm32\include\winmm.inc

include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

include \masm32\include\windows.inc

include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib


.data
  UchwytProcesu dd ?
         PlikWav db "test.wav",0
.code
 start:
    push 0h
    call GetModuleHandleA
    mov [UchwytProcesu],eax
    push 0

    push offset PlikWav
    call sndPlaySoundA
    
 Koniec:
    push 0h ;zakończ program
    call ExitProcess 

 END start