亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wave.htm

?? wave文件結構說明
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
</x-html>
<x-html>
</x-html>
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="premium" content="msdn">
<meta name="ms.locale" content="en-us">
<meta name="description" content>
<meta name="generator" content="microsoft frontpage 3.0">
<title>audio interchange file format</title>
</head>

<body bgcolor="#ffffff" link="#003399" vlink="#996699" background="../jpg/di1.JPG">

<h1>wave file format</h1>

<p>wave file format is a file format for storing digital audio (waveform) data. it
supports a variety of bit resolutions, sample rates, and channels of audio. this format is
very popular upon ibm pc (clone) platforms, and is widely used in professional programs
that process digital audio waveforms. it takes into account some pecularities of the intel
cpu such as little endian byte order.</p>

<p>this format uses microsoft's version of the electronic arts interchange file format
method for storing data in &quot;chunks&quot;. </p>

<h3>data types</h3>

<p>a c-like language will be used to describe the data structures in the file. a few extra
data types that are not part of standard c, but which will be used in this document, are:</p>

<table border="0">
  <tr>
    <td><b>pstring</b></td>
    <td>pascal-style string, a one-byte count followed by that many text bytes. the total
    number of bytes in this data type should be even. a pad byte can be added to the end of
    the text to accomplish this. this pad byte is not reflected in the count.</td>
  </tr>
  <tr>
    <td><b>id</b></td>
    <td>a chunk id (ie, 4 ascii bytes).</td>
  </tr>
</table>

<p>also note that when you see an array with no size specification (e.g., char ckdata[];),
this indicates a variable-sized array in our c-like language. this differs from standard c
arrays.</p>

<h3>constants</h3>

<p>decimal values are referred to as a string of digits, for example 123, 0, 100 are all
decimal numbers. hexadecimal values are preceded by a 0x - e.g., 0x0a, 0x1, 0x64. </p>

<h3>data organization</h3>

<p>all data is stored in 8-bit bytes, arranged in intel 80x86 (ie, little endian) format.
the bytes of multiple-byte values are stored with the low-order (ie, least significant)
bytes first. data bits are as follows (ie, shown with bit numbers on top): </p>

<pre>
         7  6  5  4  3  2  1  0
       +-----------------------+
 char: | lsb               msb |
       +-----------------------+

         7  6  5  4  3  2  1  0 15 14 13 12 11 10  9  8
       +-----------------------+-----------------------+
short: | lsb     byte 0        |       byte 1      msb |
       +-----------------------+-----------------------+

         7  6  5  4  3  2  1  0 15 14 13 12 11 10  9  8 23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24
       +-----------------------+-----------------------+-----------------------+-----------------------+
 long: | lsb     byte 0        |       byte 1          |         byte 2	       |       byte 3      msb |
       +-----------------------+-----------------------+-----------------------+-----------------------+
</pre>

<h3>file structure</h3>

<p>a wave file is a collection of a number of different types of chunks. there is a
required format (&quot;fmt &quot;) chunk which contains important parameters describing
the waveform, such as its sample rate. the data chunk, which contains the actual waveform
data, is also required. all other chunks are optional. among the other optional chunks are
ones which define cue points, list instrument parameters, store application-specific
information, etc. all of these chunks are described in detail in the following sections of
this document.</p>

<p>all applications that use wave must be able to read the 2 required chunks and can
choose to selectively ignore the optional chunks. a program that copies a wave should copy
all of the chunks in the wave, even those it chooses not to interpret.</p>

<p>there are no restrictions upon the order of the chunks within a wave file, with the
exception that the format chunk must precede the data chunk. some inflexibly written
programs expect the format chunk as the first chunk (after the riff header) although they
shouldn't because the specification doesn't require this.</p>

<p>here is a graphical overview of an example, minimal wave file. it consists of a single
wave containing the 2 required chunks, a format and a data chunk.</p>

<pre> __________________________
| riff wave chunk	   |
|   groupid  = 'riff'      |
|   rifftype = 'wave'      |
|    __________________    |
|   | format chunk     |   |
|   |	ckid = 'fmt '  |   |
|   |__________________|   |
|    __________________    |
|   | sound data chunk |   |
|   |	ckid = 'data'  |   |
|   |__________________|   |
|__________________________|
</pre>

<h4>a bastardized standard</h4>

<p>the wave format is sort of a bastardized standard that was concocted by too many
&quot;cooks&quot; who didn't properly coordinate the addition of &quot;ingredients&quot;
to the &quot;soup&quot;. unlike with the aiff standard which was mostly designed by a
small, coordinated group, the wave format has had all manner of much-too-independent,
uncoordinated aberrations inflicted upon it. the net result is that there are far too many
chunks that may be found in a wave file -- many of them duplicating the same information
found in other chunks (but in an unnecessarily different way) simply because there have
been too many programmers who took too many liberties with unilaterally adding their own
additions to the wave format without properly coming to a concensus of what everyone else
needed (and therefore it encouraged an &quot;every man for himself&quot; attitude toward
adding things to this &quot;standard&quot;). one example is the instrument chunk versus
the sampler chunk. another example is the note versus label chunks in an associated data
list. i don't even want to get into the totally irresponsible proliferation of compressed
formats. (ie, it seems like everyone and his pet dachshound has come up with some
compressed version of storing wave data -- like we need 100 different ways to do that).
furthermore, there are lots of inconsistencies, for example how 8-bit data is unsigned,
but 16-bit data is signed. </p>

<p>i've attempted to document only those aspects that you're very likely to encounter in a
wave file. i suggest that you concentrate upon these and refuse to support the work of
programmers who feel the need to deviate from a standard with inconsistent, proprietary,
self-serving, unnecessary extensions. please do your part to rein in half-ass programming.</p>

<h3>sample points and sample frames</h3>

<p>a large part of interpreting wave files revolves around the two concepts of sample
points and sample frames. </p>

<p>a sample point is a value representing a sample of a sound at a given moment in time.
for waveforms with greater than 8-bit resolution, each sample point is stored as a linear,
2's-complement value which may be from 9 to 32 bits wide (as determined by the
wbitspersample field in the format chunk, assuming pcm format -- an uncompressed format).
for example, each sample point of a 16-bit waveform would be a 16-bit word (ie, two 8-bit
bytes) where 32767 (0x7fff) is the highest value and -32768 (0x8000) is the lowest value.
for 8-bit (or less) waveforms, each sample point is a linear, unsigned byte where 255 is
the highest value and 0 is the lowest value. obviously, this signed/unsigned sample point
discrepancy between 8-bit and larger resolution waveforms was one of those
&quot;oops&quot; scenarios where some microsoft employee decided to change the sign
sometime after 8-bit wave files were common but 16-bit wave files hadn't yet appeared.</p>

<p>because most cpu's read and write operations deal with 8-bit bytes, it was decided that
a sample point should be rounded up to a size which is a multiple of 8 when stored in a
wave. this makes the wave easier to read into memory. if your adc produces a sample point
from 1 to 8 bits wide, a sample point should be stored in a wave as an 8-bit byte (ie,
unsigned char). if your adc produces a sample point from 9 to 16 bits wide, a sample point
should be stored in a wave as a 16-bit word (ie, signed short). if your adc produces a
sample point from 17 to 24 bits wide, a sample point should be stored in a wave as three
bytes. if your adc produces a sample point from 25 to 32 bits wide, a sample point should
be stored in a wave as a 32-bit doubleword (ie, signed long). etc.</p>

<p>furthermore, the data bits should be left-justified, with any remaining (ie, pad) bits
zeroed. for example, consider the case of a 12-bit sample point. it has 12 bits, so the
sample point must be saved as a 16-bit word. those 12 bits should be left-justified so
that they become bits 4 to 15 inclusive, and bits 0 to 3 should be set to zero. shown
below is how a 12-bit sample point with a value of binary 101000010111 is formatted
left-justified as a 16-bit word.</p>

<pre>
 ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
|   |	  |   |   |   |	|   |   |   |   |   |   |   |   |   |   |
| 1   0   1   0   0   0   0   1   0   1   1   1   0   0   0   0 |
|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|
 <---------------------------------------------> <------------->
    12 bit sample point is left justified          rightmost
                                                  4 bits are
                                                  zero padded
</pre>

<p>but note that, because the wave format uses intel little endian byte order, the lsb is
stored first in the wave file as so: </p>

<pre>
 ___ ___ ___ ___ ___ ___ ___ ___    ___ ___ ___ ___ ___ ___ ___ ___
|   |	  |   |   |   |	|   |   |  |   |   |   |   |   |   |   |   |
| 0   1   1   1   0   0   0   0 |  | 1   0   1   0   0   0   0   1 |
|___|___|___|___|___|___|___|___|  |___|___|___|___|___|___|___|___|
 <-------------> <------------->    <----------------------------->
   bits 0 to 3     4 pad bits                 bits 4 to 11
</pre>

<p>for multichannel sounds (for example, a stereo waveform), single sample points from
each channel are interleaved. for example, assume a stereo (ie, 2 channel) waveform.
instead of storing all of the sample points for the left channel first, and then storing
all of the sample points for the right channel next, you &quot;mix&quot; the two channels'
sample points together. you would store the first sample point of the left channel. next,
you would store the first sample point of the right channel. next, you would store the
second sample point of the left channel. next, you would store the second sample point of
the right channel, and so on, alternating between storing the next sample point of each
channel. this is what is meant by interleaved data; you store the next sample point of
each of the channels in turn, so that the sample points that are meant to be
&quot;played&quot; (ie, sent to a dac) simultaneously are stored contiguously. </p>

<p>the sample points that are meant to be &quot;played&quot; (ie, sent to a dac)
simultaneously are collectively called a <b>sample frame</b>. in the example of our stereo
waveform, every two sample points makes up another sample frame. this is illustrated below
for that stereo example. </p>

<pre>
  sample       sample              sample
  frame 0      frame 1             frame n
 _____ _____ _____ _____         _____ _____
| ch1 | ch2 | ch1 | ch2 | . . . | ch1 | ch2 |
|_____|_____|_____|_____|       |_____|_____|
 _____
|     | = one sample point
|_____|
</pre>

<p>for a monophonic waveform, a sample frame is merely a single sample point (ie, there's
nothing to interleave). for multichannel waveforms, you should follow the conventions
shown below for which order to store channels within the sample frame. (ie, below, a
single sample frame is displayed for each example of a multichannel waveform). </p>

<pre>
  channels       1         2
             _________ _________ 
            | left    | right   |
  stereo    |         |         |
            |_________|_________|


                 1         2         3
             _________ _________ _________ 
            | left    | right   | center  |
  3 channel |         |         |         |
            |_________|_________|_________|

                 1         2         3         4
             _________ _________ _________ _________ 
            | front   | front   | rear    | rear    |
  quad      | left    | right   | left    | right   |
            |_________|_________|_________|_________|

                 1         2         3         4
             _________ _________ _________ _________ 
            | left    | center  | right   | surround|
  4 channel |         |         |         |         |
            |_________|_________|_________|_________|

                 1         2         3         4         5         6
             _________ _________ _________ _________ _________ _________
            | left    | left    | center  | right   | right   |surround |
  6 channel | center  |         |         | center  |         |         |
            |_________|_________|_________|_________|_________|_________|
</pre>

<p>the sample points within a sample frame are packed together; there are no unused bytes
between them. likewise, the sample frames are packed together with no pad bytes. </p>

<p>note that the above discussion outlines the format of data within an uncompressed data
chunk. there are some techniques of storing compressed data in a data chunk. obviously,
that data would need to be uncompressed, and then it will adhere to the above layout.</p>

<hr>

<h3>the format chunk</h3>

<p>the format (fmt) chunk describes fundamental parameters of the waveform data such as
sample rate, bit resolution, and how many channels of digital audio are stored in the
wave. </p>

<pre>
#define formatid 'fmt '   /* chunkid for format chunk. note: there is a space at the end of this id. */

typedef struct {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成+人+日韩+欧美+亚洲| 成人av在线看| 国产精品欧美综合在线| 欧美色视频在线观看| 国产成人免费视频网站高清观看视频 | 在线免费观看日本一区| 久久99精品久久久久久动态图 | 欧美精品日韩一本| 成人天堂资源www在线| 日韩精品成人一区二区在线| 中文字幕在线观看不卡| 精品理论电影在线| 欧美乱妇一区二区三区不卡视频| 粉嫩av一区二区三区粉嫩| 免费不卡在线视频| 一区二区欧美精品| 综合在线观看色| 国产午夜精品一区二区| 久久综合久久综合久久综合| 欧美老肥妇做.爰bbww视频| jlzzjlzz亚洲日本少妇| 国产成人激情av| 国产激情视频一区二区三区欧美 | 国产精品久久久久久久蜜臀| 欧美xxxx在线观看| 欧美伦理视频网站| 欧美色综合久久| 91猫先生在线| 91女人视频在线观看| 成人美女在线观看| 国产精品一区二区三区99| 久久精品国产精品亚洲综合| 免费观看30秒视频久久| 亚洲超碰精品一区二区| 亚洲一区二区成人在线观看| 一区二区三区在线视频播放| 亚洲天堂福利av| 亚洲男人的天堂av| 一区二区三区加勒比av| 一区二区国产视频| 亚洲一级在线观看| 午夜电影一区二区| 日韩专区在线视频| 蜜桃视频在线观看一区二区| 日本亚洲欧美天堂免费| 久久99日本精品| 国产麻豆一精品一av一免费| 国产乱子伦视频一区二区三区 | 成人免费视频一区| 不卡一区二区中文字幕| 91美女福利视频| 欧美日韩在线直播| 91麻豆精品国产91久久久资源速度 | 日韩1区2区日韩1区2区| 免费一级片91| 国产乱子伦一区二区三区国色天香| 国产在线日韩欧美| 成人黄色大片在线观看| 日本久久电影网| 欧美日韩日日骚| 欧美一级欧美一级在线播放| 久久综合久久综合亚洲| 国产精品理论片在线观看| 亚洲另类在线制服丝袜| 亚洲国产日韩综合久久精品| 免费视频一区二区| 粉嫩一区二区三区性色av| 99久久国产综合精品女不卡| 欧洲精品在线观看| 欧美大尺度电影在线| 日本一区二区三级电影在线观看| 尤物在线观看一区| 美女免费视频一区二区| 国产91丝袜在线观看| 91官网在线免费观看| 欧美成人三级在线| 国产精品二三区| 免费人成黄页网站在线一区二区| 高清国产一区二区三区| 欧美色图天堂网| 国产亚洲欧美激情| 亚洲综合免费观看高清完整版在线 | 中文字幕一区视频| 视频一区二区国产| 成人av综合在线| 欧美一区永久视频免费观看| 久久久高清一区二区三区| 亚洲自拍偷拍av| 大胆欧美人体老妇| 678五月天丁香亚洲综合网| 国产农村妇女精品| 日本在线观看不卡视频| 成人午夜电影小说| 7777精品久久久大香线蕉| 亚洲国产精品ⅴa在线观看| 亚洲成人免费av| 成人免费va视频| 欧美变态tickle挠乳网站| 一区二区欧美国产| 成人午夜视频免费看| 日韩亚洲欧美成人一区| 樱花影视一区二区| 国产不卡视频在线播放| 欧美大片顶级少妇| 亚洲自拍与偷拍| 99天天综合性| 欧美国产日韩a欧美在线观看| 日韩高清在线电影| 欧美中文字幕一区二区三区| 欧美国产日韩精品免费观看| 精品亚洲aⅴ乱码一区二区三区| 欧美中文字幕亚洲一区二区va在线| 国产日韩欧美精品一区| 经典三级在线一区| 91精品国产黑色紧身裤美女| 亚洲综合激情网| 一本到不卡免费一区二区| 欧美激情自拍偷拍| 久久成人免费日本黄色| 91精品国产综合久久久久久久久久| 亚洲精品欧美激情| 91丝袜高跟美女视频| 中文字幕视频一区二区三区久| 国内欧美视频一区二区| 日韩三级免费观看| 婷婷丁香久久五月婷婷| 欧美三级视频在线播放| 夜夜亚洲天天久久| 91视频.com| 亚洲日本va在线观看| 99re66热这里只有精品3直播| 国产欧美精品一区二区三区四区 | 亚洲国产精品高清| 成人黄色av电影| 亚洲欧美在线视频| 91在线你懂得| 亚洲精品网站在线观看| 95精品视频在线| 亚洲欧美日韩综合aⅴ视频| 91亚洲精品久久久蜜桃| 成人欧美一区二区三区黑人麻豆| 国产成人av影院| 国产精品久久久久久久久果冻传媒| 风间由美一区二区三区在线观看 | 麻豆91在线播放免费| 日韩一级完整毛片| 另类人妖一区二区av| www久久精品| 丁香婷婷综合激情五月色| 国产精品久线在线观看| 日本福利一区二区| 亚洲国产中文字幕| 欧美一区二区精美| 国产综合色在线| 中文字幕电影一区| 91福利在线看| 青青草精品视频| 久久久久国产一区二区三区四区 | 在线观看91视频| 免费在线一区观看| 国产精品色呦呦| 色婷婷亚洲综合| 免费美女久久99| 国产欧美视频一区二区三区| 99精品视频在线观看免费| 亚洲一区中文在线| 日韩精品一区二区三区四区| 成人蜜臀av电影| 五月综合激情网| 久久网这里都是精品| 99re视频精品| 久久精品国产一区二区三区免费看 | 欧美三级三级三级| 久久国产精品99久久人人澡| 日本一二三四高清不卡| 欧美少妇性性性| 国产高清精品久久久久| 亚洲一区视频在线| 久久亚洲精精品中文字幕早川悠里| 99v久久综合狠狠综合久久| 蜜臀av性久久久久蜜臀aⅴ| 国产女主播视频一区二区| 欧美日韩久久一区| 国产精品亚洲综合一区在线观看| 亚洲精品久久久蜜桃| 精品成a人在线观看| 色老汉一区二区三区| 久久超级碰视频| 亚洲一区免费视频| 国产精品色噜噜| 欧美成人精品1314www| 色哟哟国产精品免费观看| 狠狠色丁香久久婷婷综| 一区二区三区加勒比av| 国产日韩三级在线| 日韩一区二区三区视频| 色偷偷久久一区二区三区| 国产麻豆精品在线| 日韩av电影免费观看高清完整版 | 欧美军同video69gay|