just a small example how to open a console and play a wavefile

Code: Select all
-----------------------------------------------------------------------------------------------------------------------
;
; Open a console and play a wavefile! - Win32 example by Mr.Vain/Secretly! (Thorsten Will)
;
; (20-October-2005 - 01:08) v0.01
;
;-----------------------------------------------------------------------------------------------------------------------
OpenConsole()
PrintN("Nice way to play a wavefile in a console ;-)")
cFile.s = "Welcome2PureBasic.wav"
sndPlaySound_(@cFile,#SND_SYNC)
Sleep_(1000)
End

Download