Paly a Wave File

Thursday, January 25, 2007

This is for .NET Users.......................!!!!!!!!!!!!!!!!!!!!!!!!!!
The day before i tried to play a song in C#. I found one namespace called System.media.Using this we can play a song whic is in wave format. we can also play a system sound through this.

Lets have a try.
using System.media;
Create a instance songs of Soundplayer class.
songs.soundlocation="Location of your file(Should be int wave format)";
songs.load();
song.play();
This is very interesting one.
Try it.Bye I'll meet you later.

0 comments: