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

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

?? wave.htm

?? wave文件結構說明
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
  id             chunkid;
  long           chunksize;

  short          wformattag;
  unsigned short wchannels;
  unsigned long  dwsamplespersec;
  unsigned long  dwavgbytespersec;
  unsigned short wblockalign;
  unsigned short wbitspersample;

/* note: there may be additional fields here, depending upon wformattag. */

} formatchunk;
</pre>

<p>the id is always &quot;<b>fmt </b>&quot;. the chunksize field is the number of bytes in
the chunk. this does not include the 8 bytes used by id and size fields. for the format
chunk, chunksize may vary according to what &quot;format&quot; of wave file is specified
(ie, depends upon the value of wformattag). </p>

<p>wave data may be stored without compression, in which case the sample points are stored
as described in <b>sample points and sample frames</b>. alternately, different forms of
compression may be used when storing the sound data in the data chunk. with compression,
each sample point may take a differing number of bytes to store. the wformattag indicates
whether compression is used when storing the data.</p>

<p>if compression is used (ie, wformattag is some value other than 1), then there will be
additional fields appended to the format chunk which give needed information for a program
wishing to retrieve and decompress that stored data. the first such additional field will
be an unsigned short that indicates how many more bytes have been appended (after this
unsigned short). furthermore, compressed formats must have a fact chunk which contains an
unsigned long indicating the size (in sample points) of the waveform after it has been
decompressed. there are (too) many compressed formats. details about them can be gotten
from microsoft's web site.</p>

<p>if no compression is used (ie, wformattag = 1), then there are no further fields.</p>

<p>the wchannels field contains the number of audio channels for the sound. a value of 1
means monophonic sound, 2 means stereo, 4 means four channel sound, etc. any number of
audio channels may be represented. for multichannel sounds, single sample points from each
channel are interleaved. a set of interleaved sample points is called a sample frame.</p>

<p>the actual waveform data is stored in another chunk, the data chunk, which will be
described later.</p>

<p>the dwsamplespersec field is the sample rate at which the sound is to be played back in
sample frames per second (ie, hertz). the 3 standard mpc rates are 11025, 22050, and 44100
khz, although other rates may be used.</p>

<p>the dwavgbytespersec field indicates how many bytes play every second. dwavgbytespersec
may be used by an application to estimate what size ram buffer is needed to properly
playback the wave without latency problems. its value should be equal to the following
formula rounded up to the next whole number:</p>

<p>dwsamplespersec * wblockalign</p>

<p>the wblockalign field should be equal to the following formula, rounded to the next
whole number:</p>

<p>wchannels * (wbitspersample % 8)</p>

<p>essentially, wblockalign is the size of a sample frame, in terms of bytes. (eg, a
sample frame for a 16-bit mono wave is 2 bytes. a sample frame for a 16-bit stereo wave is
4 bytes. etc).</p>

<p>the wbitspersample field indicates the bit resolution of a sample point (ie, a 16-bit
waveform would have wbitspersample = 16).</p>

<p>one, and only one, format chunk is required in every wave.</p>

<hr>

<h3>data chunk</h3>

<p>the data (data) chunk contains the actual sample frames (ie, all channels of waveform
data).</p>

<pre>
#define dataid 'data'  /* chunk id for data chunk */

typedef struct {
  id             chunkid;
  long           chunksize;

  unsigned char  waveformdata[];
} datachunk;
</pre>

<p>the id is always <b>data</b>. chunksize is the number of bytes in the chunk, not
counting the 8 bytes used by id and size fields nor any possible pad byte needed to make
the chunk an even size (ie, chunksize is the number of remaining bytes in the chunk after
the chunksize field, not counting any trailing pad byte). </p>

<p>remember that the bit resolution, and other information is gotten from the format
chunk.</p>

<p>the following discussion assumes uncompressed data.</p>

<p>the waveformdata array contains the actual waveform data. the data is arranged into
what are called <em>sample frames</em>. for more information on the arrangment of data,
see &quot;sample points and sample frames&quot;.</p>

<p>you can determine how many bytes of actual waveform data there is from the data chunk's
chunksize field. the number of sample frames in waveformdata is determined by dividing
this chunksize by the format chunk's wblockalign.</p>

<p>the data chunk is required. one, and only one, data chunk may appear in a wave.</p>

<h4>another way of storing waveform data</h4>

<p>so, you're thinking &quot;this wave format isn't that bad. it seems to make sense and
there aren't all that many inconsistencies, duplications, and inefficiencies&quot;. you
fool! we're just getting started with our first excursion into unnecessary
inconsistencies, duplications, and inefficiency. </p>

<p>sure, countless brain-damaged programmers have inflicted literally dozens of compressed
data formats upon the data chunk, but apparently someone felt that even this wasn't enough
to make your life difficult in trying to support wave files. no, some half-wit decided
that it would be a good idea to screw around with storing waveform data in something other
than one data chunk. noooooooooooooo!!!!!!</p>

<p>for some god-forsaken reason, someone came up with the idea of using an imbedded iff
list inside of the wave file. nooooooooooooooooo!!!!!!!! and this &quot;wave list&quot;
would contain multiple 'data' and 'slnt' chunks. noooooooooooooooo!!!! the type id for
this list is 'wavl'.</p>

<p>i strongly suggest that you refuse to support any wave file that exhibits this wave
list nonsense. there's no need for it, and hopefully, the misguided programmer who
conjured it up will be embarrassed into hanging his head in shame when nobody agrees to
support his foolishness. just say &quot;noooooooooooooo!!!!&quot;</p>

<hr>

<h3>cue chunk</h3>

<p>the cue chunk contains one or more &quot;cue points&quot; or &quot;markers&quot;. each
cue point references a specific offset within the waveformdata array, and has its own
cuepoint structure within this chunk. </p>

<p>in conjunction with the playlist chunk, the cue chunk can be used to store looping
information.</p>

<h4>cuepoint structure</h4>

<pre>
typedef struct {
  long    dwidentifier;
  long    dwposition;
  id      fccchunk;
  long    dwchunkstart;
  long    dwblockstart;
  long    dwsampleoffset;
} cuepoint;
</pre>

<p>the dwidentifier field contains a unique number (ie, different than the id number of
any other cuepoint structure). this is used to associate a cuepoint structure with other
structures used in other chunks which will be described later. </p>

<p>the dwposition field specifies the position of the cue point within the &quot;play
order&quot; (as determined by the playlist chunk. see that chunk for a discussion of the
play order).</p>

<p>the fccchunk field specifies the chunk id of the data or wave list chunk which actually
contains the waveform data to which this cuepoint refers. if there is only one data chunk
in the file, then this field is set to the id 'data'. on the other hand, if the file
contains a wave list (which can contain both 'data' and 'slnt' chunks), then fccchunk will
specify 'data' or 'slnt' depending upon in which type of chunk the referenced waveform
data is found.</p>

<p>the dwchunkstart and dwblockstart fields are set to 0 for an uncompressed wave file
that contains one 'data' chunk. these fields are used only for wave files that contain a
wave list (with multiple 'data' and 'slnt' chunks), or for a compressed file containing a
'data' chunk. (actually, in the latter case, dwchunkstart is also set to 0, and only
dwblockstart is used). again, i want to emphasize that you can avoid all of this
unnecessary crap if you avoid hassling with compressed files, or wave lists, and instead
stick to the sensible basics.</p>

<p>the dwchunkstart field specifies the byte offset of the start of the 'data' or 'slnt'
chunk which actually contains the waveform data to which this cuepoint refers. this offset
is relative to the start of the first chunk within the wave list. (ie, it's the byte
offset, within the wave list, of where the 'data' or 'slnt' chunk of interest appears. the
first chunk within the list would be at an offset of 0).</p>

<p>the dwblockstart field specifies the byte offset of the start of the block containing
the position. this offset is relative to the start of the waveform data within the 'data'
or 'slnt' chunk.</p>

<p>the dwsampleoffset field specifies the sample offset of the cue point relative to the
start of the block. in an uncompressed file, this equates to simply being the offset
within the waveformdata array. unfortunately, the wave documentation is much too
ambiguous, and doesn't define what it means by the term &quot;sample offset&quot;. this
could mean a byte offset, or it could mean counting the sample points (for example, in a
16-bit wave, every 2 bytes would be 1 sample point), or it could even mean sample frames
(as the loop offsets in aiff are specified). who knows? the guy who conjured up the cue
chunk certainly isn't saying. i'm assuming that it's a byte offset, like the above 2
fields.</p>

<h4>cue chunk</h4>

<pre>
#define cueid 'cue '  /* chunk id for cue chunk */

typedef struct {
  id        chunkid;
  long      chunksize;

  long      dwcuepoints;
  cuepoint  points[];
} cuechunk;
</pre>

<p>the id is always <b>cue </b>. chunksize is the number of bytes in the chunk, not
counting the 8 bytes used by id and size fields. </p>

<p>the dwcuepoints field is the number of cuepoint structures in the cue chunk. if
dwcuepoints is not 0, it is followed by that many cuepoint structures, one after the
other. because all fields in a cuepoint structure are an even number of bytes, the length
of any cuepoint will always be even. thus, cuepoints are packed together with no unused
bytes between them. the cuepoints need not be placed in any particular order.</p>

<p>the cue chunk is optional. no more than one cue chunk can appear in a wave.</p>

<hr>

<h3>playlist chunk</h3>

<p>the playlist (plst) chunk specifies a play order for a series of cue points. the cue
chunk contains all of the cue points, but the playlist chunk determines how those cue
points are used when playing back the waveform (ie, which cue points represent looped
sections, and in what order those loops are &quot;played&quot;). the playlist chunk
contains one or more segment structures, each of which identifies a looped section of the
waveform (in conjunction with the cuepoint structure with which it is associated). </p>

<h4>segment structure</h4>

<pre>
typedef struct {
  long    dwidentifier;
  long    dwlength;
  long    dwrepeats;
} segment;
</pre>

<p>the dwidentifier field contains a unique number (ie, different than the id number of
any other segment structure). this field should correspond with the dwindentifier field of
some cuepoint stored in the cue chunk. in other words, this segment structure contains the
looping information associated with that cuepoint structure with the same id number. </p>

<p>the dwlength field specifies the length of the section in samples (ie, the length of
the looped section). note that the start position of the loop would be the dwsampleoffset
of the referenced cuepoint structure in the cue chunk. (or, you may need to hassle with
the dwchunkstart and dwblockstart fields as well if dealing with a wave list or compressed
data).</p>

<p>the dwrepeats field specifies the number of times to play the loop. i assume that a
value of 1 means to repeat this loop once only, but the wave documentation is very
incomplete and omits this important information. i have no idea how you would specify an
infinitely repeating loop. certainly, the person who conjured up the playlist chunk
appears to have no idea whatsoever. due to the ambiguities, inconsistencies,
inefficiencies, and omissions of the cue and playlist chunks, i very much recommend that
you use the sampler chunk (described later) to replace them.</p>

<h4>playlist chunk</h4>

<pre>
#define playlistid 'plst'  /* chunk id for playlist chunk */

typedef struct {
  id        chunkid;
  long      chunksize;

  long      dwsegments;
  segment   segments[];
} playlistchunk;
</pre>

<p>the id is always <b>plst</b>. chunksize is the number of bytes in the chunk, not
counting the 8 bytes used by id and size fields. </p>

<p>the dwsegments field is the number of segment structures in the playlist chunk. if

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品国产一区二区4080| 99久久综合精品| 久久精品夜夜夜夜久久| 国产综合色在线| 国产情人综合久久777777| 成人午夜短视频| 一区二区成人在线视频| 欧美日韩一区成人| 蜜臀av一区二区在线观看| 久久香蕉国产线看观看99| 成人福利在线看| 亚洲蜜臀av乱码久久精品蜜桃| 欧美色精品在线视频| 毛片一区二区三区| 中文av一区二区| 欧美色综合网站| 捆绑调教美女网站视频一区| 日本一区二区成人| 91免费视频大全| 天天影视网天天综合色在线播放| 精品粉嫩aⅴ一区二区三区四区| 国产.精品.日韩.另类.中文.在线.播放| 亚洲特黄一级片| 91精品在线免费观看| 国产99久久久久久免费看农村| 亚洲美女偷拍久久| 日韩三级伦理片妻子的秘密按摩| 国产99久久久国产精品潘金网站| 亚洲综合久久久久| 亚洲精品在线网站| 一本高清dvd不卡在线观看| 日本中文字幕一区二区视频| 日本一区二区三区免费乱视频| 不卡高清视频专区| 天天操天天综合网| 国产精品人成在线观看免费| 欧美日韩国产高清一区| 丁香婷婷综合网| 日韩主播视频在线| 国产精品污污网站在线观看| 欧美丰满美乳xxx高潮www| 国产成人综合在线观看| 亚洲福利电影网| 日本一区二区三区高清不卡| 91.com在线观看| 91丨国产丨九色丨pron| 久久99精品久久久| 亚洲综合在线电影| 国产午夜精品久久久久久免费视| 欧美日韩精品电影| 成人黄动漫网站免费app| 免费成人av资源网| 亚洲精品国产无套在线观| 久久一区二区视频| 欧美日韩一区二区在线视频| 成人av资源网站| 麻豆精品国产传媒mv男同| 亚洲精品老司机| 国产精品视频九色porn| 日韩午夜激情电影| 欧美亚洲自拍偷拍| av激情亚洲男人天堂| 狠狠色丁香久久婷婷综合_中| 亚洲一级二级三级| 国产精品乱码一区二三区小蝌蚪| 日韩欧美高清在线| 欧美色综合网站| 色欲综合视频天天天| 国产**成人网毛片九色 | 91福利资源站| 国产999精品久久久久久绿帽| 免费看黄色91| 亚洲福中文字幕伊人影院| 亚洲视频在线观看一区| 久久久综合视频| 日韩写真欧美这视频| 欧美性生活久久| 91视频国产观看| 成人黄色免费短视频| 国产精品综合网| 蓝色福利精品导航| 日日噜噜夜夜狠狠视频欧美人| 一区二区高清在线| 亚洲精品乱码久久久久久黑人| 国产精品国产馆在线真实露脸| 久久久99免费| 亚洲精品一线二线三线| 日韩欧美中文一区二区| 欧美精品国产精品| 欧美日韩一卡二卡| 91九色最新地址| 色综合欧美在线视频区| 91在线丨porny丨国产| 国产精品一区在线观看乱码 | 国产不卡在线视频| 久久精品国产99久久6| 日本成人在线不卡视频| 日韩经典中文字幕一区| 午夜精品久久一牛影视| 午夜精品福利久久久| 亚洲成人动漫精品| 亚洲1区2区3区4区| 偷拍一区二区三区| 亚洲成av人片一区二区三区| 亚洲视频免费在线观看| 亚洲靠逼com| 亚洲免费看黄网站| 一区二区三区高清不卡| 亚洲午夜久久久久久久久电影院| 亚洲一区在线播放| 香港成人在线视频| 日韩高清一区在线| 麻豆国产欧美日韩综合精品二区| 美美哒免费高清在线观看视频一区二区| 视频一区国产视频| 亚洲va国产va欧美va观看| 丝袜诱惑制服诱惑色一区在线观看 | 久久精品这里都是精品| 久久久久久久网| 国产午夜三级一区二区三| 国产精品久久久久桃色tv| 国产精品久久久久久久久免费樱桃 | 亚洲欧美日韩国产另类专区| 又紧又大又爽精品一区二区| 亚洲五月六月丁香激情| 日韩精品亚洲专区| 久久精品国产精品亚洲红杏| 国产一区三区三区| www.久久久久久久久| 91激情在线视频| 3d动漫精品啪啪1区2区免费| 精品欧美一区二区久久| 亚洲国产精品国自产拍av| 国产精品嫩草影院com| 亚洲另类中文字| 日韩二区三区四区| 国内偷窥港台综合视频在线播放| 成人午夜碰碰视频| 在线中文字幕不卡| 制服.丝袜.亚洲.另类.中文| 久久综合色8888| 国产精品成人午夜| 亚洲影视在线观看| 日本特黄久久久高潮| 国产一区二区看久久| 91亚洲精品乱码久久久久久蜜桃| 欧美日韩免费不卡视频一区二区三区| 日韩一级片在线播放| 国产精品网站在线观看| 亚洲成人在线免费| 国产一区二区三区精品欧美日韩一区二区三区 | 久久影院午夜片一区| 亚洲三级在线免费| 爽好久久久欧美精品| 国产精品影视在线观看| 色哟哟日韩精品| 日韩欧美国产一二三区| 中文字幕欧美区| 午夜电影一区二区三区| 国产精品69久久久久水密桃| 欧美在线观看一二区| 日韩欧美aaaaaa| 一区在线观看视频| 视频一区视频二区中文字幕| 国产高清不卡一区二区| 欧美亚洲综合色| 欧美国产日本韩| 天堂一区二区在线| 成人一区二区三区在线观看 | 欧美精品一区二区三区蜜桃视频| 1000部国产精品成人观看| 日韩精品亚洲一区| 97国产一区二区| 精品日韩av一区二区| 亚洲免费观看高清完整版在线 | 久久精品国产亚洲a| 99久久免费精品| 精品国产不卡一区二区三区| 一区二区三区美女| 国产福利视频一区二区三区| 欧美色老头old∨ideo| 国产精品―色哟哟| 美女免费视频一区| 欧美日韩性生活| 国产精品久久精品日日| 久久99精品久久久久久动态图 | 成人免费在线视频| 蜜桃精品在线观看| 欧美亚洲国产一区二区三区va | 一区二区三区资源| 国产成人免费xxxxxxxx| 日韩一区二区三区视频在线观看| 亚洲精品视频在线| 国产福利一区二区三区视频在线| 91精品国产综合久久香蕉的特点| 亚洲欧美激情一区二区| 国产91精品一区二区麻豆亚洲| 69精品人人人人| 亚洲午夜一区二区三区| 91欧美一区二区|