最新下载
热门教程
- 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;
相关文章
- mcjs网页版即点即玩-mcjs极速秒玩入口 10-23
- 超星学习通网页版登录-超星学习通官网入口 10-23
- poki免费游戏大全-poki免费游戏在线畅玩入口 10-23
- mc.js官方在线入口 10-23
- 海角haijiao社区2025全新网址一键直达-海角社区最新官方入口地址 10-23
- 王者荣耀世界体力上限与恢复方法详解 王者荣耀世界体力机制全面解析 10-20