What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Play a wav file

krisg

New Member
Joined
Dec 12, 2011
Messages
21
Reaction score
0
Hello :cool:
is there an easier way to play a .wav file inside Combat() ? like if you want to hear a short sound if a condition happens, tried google but the code is kinda long, is there a built-in function?
 
Code:
[LEFT][COLOR=#000000][FONT=Consolas]    SoundPlayer simpleSound = [/FONT][/COLOR][COLOR=blue][FONT=Consolas]new[/FONT][/COLOR][COLOR=#000000][FONT=Consolas] SoundPlayer([/FONT][/COLOR][COLOR=#A31515][FONT=Consolas]@"c:\Windows\Media\chimes.wav"[/FONT][/COLOR][COLOR=#000000][FONT=Consolas]);[/FONT][/COLOR][/LEFT]
    simpleSound.Play();

How to: Play a Sound from a Windows Form
 
Back
Top