c# pcm
using System; using System.IO; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WindowsFormsApplication2 { public partial class Form2 : Form { /// <summary> /// ERROR MESSAGE /// </summary> const string ERRFILENOTEXITS = "File is Not Exits."; const string ERRFILEISNOTWAVE = "File is not Wava."; /// <summary> /// Wave Hander information /// </summary> struct HeaderType { public byte[] riff; /*RIFF类资源文件头部 4byte*/ public uint file_len; /*文件长度4byte*/ public byte[] wave; /*"WAVE"标志4byte*/ public byte[] fmt; /*"fmt"标志4byte*/ public uint NI1; /*过渡字节4byte*