栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

有人可以解释.wav(WAVE)文件头吗?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

有人可以解释.wav(WAVE)文件头吗?

仅发布链接是违反董事会规则的,所以这是我从http://www.topherlee.com/software/pcm-tut-
wavformat.html
提取的表格

Positions   Sample Value         Description1 - 4       "RIFF"    Marks the file as a riff file. Characters are each 1. byte long.5 - 8       File size (integer)  Size of the overall file - 8 bytes, in bytes (32-bit integer). Typically, you'd fill this in after creation.9 -12       "WAVE"    File Type Header. For our purposes, it always equals "WAVE".13-16       "fmt "    Format chunk marker. Includes trailing null17-20       16        Length of format data as listed above21-22       1         Type of format (1 is PCM) - 2 byte integer23-24       2         Number of Channels - 2 byte integer25-28       44100     Sample Rate - 32 bit integer. Common values are 44100 (CD), 48000 (DAT). Sample Rate = Number of Samples per second, or Hertz.29-32       176400    (Sample Rate * BitsPerSample * Channels) / 8.33-34       4         (BitsPerSample * Channels) / 8.1 - 8 bit mono2 - 8 bit stereo/16 bit mono4 - 16 bit stereo35-36       16        Bits per sample37-40       "data"    "data" chunk header. Marks the beginning of the data section.41-44       File size (data)     Size of the data section, i.e. file size - 44 bytes header.

上面给出了16位立体声源的样本值。

更新/提醒

标头整数都是最低有效字节顺序,因此两个字节通道信息0x01 0x00实际上是0x00001,例如单声道。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/617247.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号