MP3 Media Player
Now we are going to learn about the MP3 media player.
Introduction
MP3 media player is very interesting and easy to
manipulate in Window application. Programming coding of the Mp3 media player is
given below.
Note: This Media player accept only (.wav) format.
Example
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Media;
namespace WindowsFormsApplication18
{
public partial
class Form1 :
Form
{
private
SoundPlayer _soundplaer;
public Form1()
{
InitializeComponent();
_soundplaer = new
SoundPlayer("8k16bitpcm.wav
");
}
private void
Form1_Load(object sender,
EventArgs e)
{
}
private void
button1_Click(object sender,
EventArgs e)
{
_soundplaer.Play();
}
}
}
Output
