没有合适的资源?快使用搜索试试~ 我知道了~
首页c# wav 文件分析
c# wav 文件分析
需积分: 9 30 下载量 86 浏览量
更新于2023-03-16
评论
收藏 169KB DOC 举报
In this article, we'll discuss the RIFF file format, and more specifically the PCM RIFF-wave. We'll detail the most common data structures that compose it, and briefly discuss the variants you might see. Finally, we'll develop a "profiler" that parses, loads into memory, and outputs as XML, the relevant file data.
资源详情
资源评论
资源推荐
Introduction
!"#$%&#'
()")'"
&#&*()+%#
#))$$&#
!$$#,%#"
&'""#
%$$)"#$",
#)""())-"&
".))&$#"
/)"))#+
0(0%"&'
)"1"#&"2
0#("0"%')
#&#"#(1"#32#
&'455"&#!6
455$%'&
7#$#)5#&'$00
&#&8 9&$
Background
The Resource Interchange File Format
455"# ": &#
(;;%$'#455<-=$&
&45515"#"455-)
&55&%(2
>$#455"#/
+
6 6#6
public string sGroupID; //Surprisingly enough, this is always "RIFF"
public uint dwFileLength; //File length in bytes, measured from offset 8
public string sRiffType; //In wave files, this is always "WAVE"
455"&(#)&0(0>(
)#+
6 6#6
public string sChunkID; //Four bytes: "fmt ", "data", "fact", etc.
public uint dwChunkSize; //Length of header in bytes
The Joys of Proprietary File Formats
?"#&@"
"&@$"$"
@&#+$-&
#A(#&#""#
5)&')"(#&"
)$#$+"(
(
Chunkin'
/"(#"&
)""1&"&!6
2&"1&&*&B
2&'"*#&"1#&C
2&"#"/"(
+
6 6#6
public string sChunkID; //Four bytes: "fmt "
public uint dwChunkSize; //Length of header in bytes
public ushort wFormatTag; //1 if uncompressed Microsoft PCM audio
public ushort wChannels; //Number of channels
public uint dwSamplesPerSec; //Frequency of the audio in Hz
public uint dwAvgBytesPerSec;//For estimating RAM allocation
public ushort wBlockAlign; //Sample frame size in bytes
public uint dwBitsPerSample; //Bits per sample
%&##5,-")sample&
)sample?,D'$)()<'
$#E&E&'.-"
/SamplesPerSecond#)$""
/BitsPerSample&&""
single channel"
/($+(-#).&
!6 $#+
6 6#6
public string sChunkID; //Four bytes: "data"
public uint dwChunkSize; //Length of header in bytes
//Different arrays for the different frame sizes
public byte [] byteArray; //8 bit unsigned data; or...
public short [] shortArray; //16 bit signed data
%A)F)$$,%&'
$#)*&'(
The Joys of Proprietary File Formats, Reprise
/'$&)+')"
(3$&'#)
data(&&""fmt1"2
/)$&
)"##-(
#)fmt<
#&$)
)%$
E))455(+#$$
"#(&
G/'#&"
+"C
Inside a wave !le
剩余10页未读,继续阅读
xtianyin
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 数据结构1800题含完整答案详解.doc
- 医疗企业薪酬系统设计与管理方案.pptx
- 界面与表面技术界面理论与表面技术要点PPT学习教案.pptx
- Java集合排序及java集合类详解(Collection、List、Map、Set)讲解.pdf
- 网页浏览器的开发 (2).pdf
- 路由器原理与设计讲稿6-交换网络.pptx
- 火电厂锅炉过热汽温控制系统设计.doc
- 企业识别CIS系统手册[收集].pdf
- 物业管理基础知识.pptx
- 第4章财务预测.pptx
- 《集成电路工艺设计及器件特性分析》——实验教学计算机仿真系.pptx
- 局域网内共享文件提示没有访问权限的问题借鉴.pdf
- 第5章网络营销策略.pptx
- 固井质量测井原理PPT教案.pptx
- 毕业实习总结6篇.doc
- UGNX建模基础篇草图模块PPT学习教案.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0