title image


Smiley Re: Sounddatei - So ...
Hi,das geht mit der API aus der Winmm.dll:' Flag-Werte für uFlags ParameterPublic Const SND_SYNC = &H0 ' play synchronously (default)Public Const SND_ASYNC = &H1 ' play asynchronouslyPublic Const SND_NODEFAULT = &H2 ' silence not default, if sound not foundPublic Const SND_MEMORY = &H4 ' lpszSoundName points to a memory filePublic Const SND_ALIAS = &H10000 ' name is a WIN.INI [sounds] entryPublic Const SND_FILENAME = &H20000 ' name is a file namePublic Const SND_RESOURCE = &H40004 ' name is a resource name or atomPublic Const SND_ALIAS_ID = &H110000 ' name is a WIN.INI [sounds] entry identifierPublic Const SND_ALIAS_START = 0 ' must be > 4096 to keep strings in same section of resource filePublic Const SND_LOOP = &H8 ' loop the sound until next sndPlaySoundPublic Const SND_NOSTOP = &H10 ' don't stop any currently playing soundPublic Const SND_VALID = &H1F ' valid flags / ;Internal /Public Const SND_NOWAIT = &H2000 ' don't wait if the driver is busyPublic Const SND_VALIDFLAGS = &H17201F ' Set of valid flag bits. Anything outside this range will raise an errorPublic Const SND_RESERVED = &HFF000000 ' In particular these flags are reservedPublic Const SND_TYPE_MASK = &H170007Declare Function sndPlaySoundA Lib "winmm.dll" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long' Aufruf: z. B.Dim xx = sndPlaySoundA("d:\tada.wav", SND_SYNC)Viel Spass dabei :-)cuGerhard
Kontakt: weismarker@buddyshare.org

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: