Use api_Beep( 1000, 150 ). The first parameter is the frequency, and the second is the duration in milliseconds, so experiment to get the sound you want. You will need to have the userlib file found at http://www.blitzbasic.com/codearcs/codearcs.php?code=1180 in your Blitz3D userlibs folder.
You can also use api_MessageBeep (wType%) to generate system sounds. You will need the userlib file found at http://www.blitzbasic.com/codearcs/codearcs.php?code=1179 .
eg.
Const MB_STANDARD = $ffffffff
Const MB_ICONASTERISK = 64
Const MB_ICONEXCLAMATION = 48
Const MB_ICONHAND = 16
Const MB_ICONQUESTION = 32 ; Silent???
Const MB_OK = 0
api_MessageBeep( MB_OK )
WaitKey
End
|