Win32 - Open a console any play a wavefile
Posted: Thu Oct 20, 2005 12:16 am
Code updated For 5.20+
just a small example how to open a console and play a wavefile
You can donwload the example including a small nice wavefile 
Download
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