PDA

View Full Version : Sound mit DF 3.x



GhostShotIV
30-Mar-2011, 04:13 AM
Hier ein kleines Beispiel zum Abspielen einer Sound- Datei in DF 3.x:


/bild




Sound Test: ________________________________________________ _____.


/*

use ui

page bild

use dll


external_function PlaySound "PlaySoundA" winmm.dll;
string lpszName ;
string lpszModule ;
dword dwFlags ;
returns dword

move "c:\winnt\media\tada.wav" to bild.1

repeat
accept bild.1
loop

keyproc key.escape

abort


keyproc key.save

move (PlaySound(bild.1,"",0));
to bild.2


return
Re-Post aus dem alten DataFlex-Community.de Forum