Page 1 of 1

Win32 - Open a console any play a wavefile

Posted: Thu Oct 20, 2005 12:16 am
by va!n
Code updated For 5.20+

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
You can donwload the example including a small nice wavefile ;)
Download

Posted: Thu Oct 20, 2005 8:45 am
by Bonne_den_kule
Oooo!
This was advance ;)

Posted: Thu Oct 20, 2005 9:08 am
by ts-soft
Very good wavefile :wink:

Posted: Thu Oct 20, 2005 4:52 pm
by va!n
@Bonne_den_kule
@ts-soft:
:wink: thanks