using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using NAudio.Wave;
protected void Button1_Click(object sender, EventArgs e)
{
string strFilename = "10kHz_44100Hz_16bit_30sec.wav" ;
WaveFileReader wf = new WaveFileReader(Server.MapPath(strFilename));
string strTime = wf.TotalTime.ToString();
Response.Write(strTime);
}
Download load NAudio.dll from following url
http://naudio.codeplex.com/
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using NAudio.Wave;
protected void Button1_Click(object sender, EventArgs e)
{
string strFilename = "10kHz_44100Hz_16bit_30sec.wav" ;
WaveFileReader wf = new WaveFileReader(Server.MapPath(strFilename));
string strTime = wf.TotalTime.ToString();
Response.Write(strTime);
}
Download load NAudio.dll from following url
http://naudio.codeplex.com/
No comments:
Post a Comment