Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  C语言  >  正文 C#获取WAVE文件文件头信息

C#获取WAVE文件文件头信息

发布时间:2019-01-21   编辑:www.jquerycn.cn
jquery中文网为您提供C#获取WAVE文件文件头信息等资源,欢迎您收藏本站,我们将为您提供最新的C#获取WAVE文件文件头信息资源
C#获取WAVE文件文件头信息

前些日子在论坛里问了,没人回答,今天有空自己写了一下
文件格式依据网站
http://www.moon-soft.com/program/FORMAT/

using System;
using System.IO;
using System.Text;

namespace WAV
{
/// <summary>
/// Summary description for Wav.
/// </summary>
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;

您可能感兴趣的文章:
C#获取WAVE文件文件头信息
使用php的zlib压缩和解压缩swf文件
PHP巧获服务器端信息
C#处理JPEG头信息的实例详解
php获取服务器端信息的另类方法
php 文件系统处理 fopen
Python os.lstat() 方法
c# 获取路径的方法详解
Python3 os.lstat() 方法
php中get_meta_tags()、CURL与user-agent信息对比

[关闭]