Wave dateien kannst du mit der PlaySound(...) API32 Funktion abspielen alternativ auch mit der sndPlaySound(...)
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszSoundName As String, ByVal HModule As Long, ByVal uFlags As Long) As Long
-----
füg einfach diese Funktion dekleration in dein Projekt ein.
-----
'sndPlaySound Konstanten uFlags
Public Const SND_SYNC = &H0 '/* play synchronously (default) */
Public Const SND_ASYNC = &H1 '/* play asynchronously */
Public Const SND_NODEFAULT = &H2 '/* silence (!default) if sound not found */
Public Const SND_MEMORY = &H4 '/* pszSound points to a memory file */
Public Const SND_LOOP = &H8 '/* loop the sound until next sndPlaySound */
Public Const SND_NOSTOP = &H10
--------
z.B.:
result=sndPlaySound("sound.wav",SND_ASYNC)
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszSoundName As String, ByVal HModule As Long, ByVal uFlags As Long) As Long
-----
füg einfach diese Funktion dekleration in dein Projekt ein.
-----
'sndPlaySound Konstanten uFlags
Public Const SND_SYNC = &H0 '/* play synchronously (default) */
Public Const SND_ASYNC = &H1 '/* play asynchronously */
Public Const SND_NODEFAULT = &H2 '/* silence (!default) if sound not found */
Public Const SND_MEMORY = &H4 '/* pszSound points to a memory file */
Public Const SND_LOOP = &H8 '/* loop the sound until next sndPlaySound */
Public Const SND_NOSTOP = &H10
--------
z.B.:
result=sndPlaySound("sound.wav",SND_ASYNC)
Logge dich ein um einen Beitrag zu schreiben.