Em visualbasic uso:
Private Declare Function PlaySound Lib "winmm.dll" Alias _
"PlaySoundA" (ByVal lpszName As String, ByVal HMODULE As _
Long, ByVal DWFLAGS As Long) As Long
A = PlaySound("F:\Documents and Settings\R\Meus documentos\Minhas músicas\SAMSUNG\Trumpet1.wav", 0&, &H2000)