最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
C#获取WAVE文件文件头信息
时间:2022-07-02 11:08:12 编辑:袖梨 来源:一聚教程网
C#获取WAVE文件文件头信息
前些日子在论坛里问了,没人回答,今天有空自己写了一下
文件格式依据网站
http://www.moon-soft.com/program/FORMAT/
using System;
using System.IO;
using System.Text;
namespace WAV
{
///
/// Summary description for Wav.
///
public class Wav
{
public Wav()
{
//
// TODO: Add constructor logic here
//
}
[STAThread]
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
string strpath=@"C:Documents and SettingsAdministrator桌面 rojan怀念战友.wav";//=@"F:Music";
if(args.Length>0)
{
strpath=args[0].Trim();
}
if(File.Exists(strpath))
{
GetWavInfo(strpath);
Console.WriteLine("GetWavInfo Successfully!");
//Console.WriteLine("");
}
else
{
Console.Write("Please Enter the write filepath! ");
Console.Write("用法: WAV [Full Path Of Your WAV filepath]");
}
}
public struct WavInfo
{
public string groupid;
public string rifftype;
前些日子在论坛里问了,没人回答,今天有空自己写了一下
文件格式依据网站
http://www.moon-soft.com/program/FORMAT/
using System;
using System.IO;
using System.Text;
namespace WAV
{
///
/// Summary description for Wav.
///
public class Wav
{
public Wav()
{
//
// TODO: Add constructor logic here
//
}
[STAThread]
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
string strpath=@"C:Documents and SettingsAdministrator桌面 rojan怀念战友.wav";//=@"F:Music";
if(args.Length>0)
{
strpath=args[0].Trim();
}
if(File.Exists(strpath))
{
GetWavInfo(strpath);
Console.WriteLine("GetWavInfo Successfully!");
//Console.WriteLine("");
}
else
{
Console.Write("Please Enter the write filepath! ");
Console.Write("用法: WAV [Full Path Of Your WAV filepath]");
}
}
public struct WavInfo
{
public string groupid;
public string rifftype;
相关文章
- 火影忍者怎么获得大招 05-03
- 星际战甲新手什么刀好 05-03
- 文明6秦始皇金字塔怎么加速 05-03
- 全民奇迹2龙骸巨剑怎么获得 05-03
- 星露谷物语鲟鱼怎么获得 05-03
- 长安幻想怎么转职 05-03