最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
C#获取WAVE文件文件头信息
时间:2022-07-02 11:08:12 编辑:袖梨 来源:一聚教程网
C#获取WAVE文件文件头信息
前些日子在论坛里问了,没人回答,今天有空自己写了一下
文件格式依据网站
http://www.*m**oon-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.*m**oon-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;
相关文章
- 洛克王国世界三主宠 洛克王国世界御三家图鉴与培养指南 03-28
- 灵画师秘宝升级该优先升哪个 03-28
- 苍翼混沌效应原型体满潜要多少 03-28
- 洛克王国世界风眠省全攻略 洛克王国世界风眠省玩法详解与通关技巧 03-28
- 头号禁区收藏室解锁分享 03-28
- 洛克王国世界公测剧情流程详解 洛克王国世界主线剧情特色与通关指南 03-28