全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:4869
推到 Plurk!
推到 Facebook!

wave 檔之檔頭格式

尚未結案
brooklin
一般會員


發表:15
回覆:11
積分:5
註冊:2003-10-21

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-12-17 18:16:37 IP:210.68.xxx.xxx 未訂閱
各位大大: 不好意思來問一下 src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=19319312&CC=432068"> 該wave檔的相關資訊如下:
allenchan
資深會員


發表:10
回覆:306
積分:283
註冊:2004-01-06

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-12-18 00:15:43 IP:61.62.xxx.xxx 未訂閱
參考一下這個網站: http://www.wotsit.org/search.asp?page=8&s=music
rogan321
高階會員


發表:21
回覆:307
積分:200
註冊:2003-05-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-12-18 00:50:28 IP:203.204.xxx.xxx 未訂閱
BitsPerSample  為2bytes在其後面接data之前還有兩個參數沒有使用 ExtraParamSize,ExtraParams你舉的例子data64 61 74 61前的00x16就是ExtraParamSize~指定ExtraParams為不用  
Offset  Size  Name             Description
--------------------------------------------------------------------------------
The canonical WAVE format starts with the RIFF header:    0         4   ChunkID          Contains the letters "RIFF" in ASCII form
                               (0x52494646 big-endian form).
4         4   ChunkSize        36   SubChunk2Size, or more precisely:
                               4   (8   SubChunk1Size)   (8   SubChunk2Size)
                               This is the size of the rest of the chunk 
                               following this number.  This is the size of the 
                               entire file in bytes minus 8 bytes for the
                               two fields not included in this count:
                               ChunkID and ChunkSize.
8         4   Format           Contains the letters "WAVE"
                               (0x57415645 big-endian form).    The "WAVE" format consists of two subchunks: "fmt " and "data":
The "fmt " subchunk describes the sound data's format:    12        4   Subchunk1ID      Contains the letters "fmt "
                               (0x666d7420 big-endian form).
16        4   Subchunk1Size    16 for PCM.  This is the size of the
                               rest of the Subchunk which follows this number.
20        2   AudioFormat      PCM = 1 (i.e. Linear quantization)
                               Values other than 1 indicate some 
                               form of compression.
22        2   NumChannels      Mono = 1, Stereo = 2, etc.
24        4   SampleRate       8000, 44100, etc.
28        4   ByteRate         == SampleRate * NumChannels * BitsPerSample/8
32        2   BlockAlign       == NumChannels * BitsPerSample/8
                               The number of bytes for one sample including
                               all channels. I wonder what happens when
                               this number isn't an integer?
34        2   BitsPerSample    8 bits = 8, 16 bits = 16, etc.
          2   ExtraParamSize   if PCM, then doesn't exist
          X   ExtraParams      space for extra parameters    The "data" subchunk contains the size of the data and the actual sound:    36        4   Subchunk2ID      Contains the letters "data"
                               (0x64617461 big-endian form).
40        4   Subchunk2Size    == NumSamples * NumChannels * BitsPerSample/8
                               This is the number of bytes in the data.
                               You can also think of this as the size
                               of the read of the subchunk following this 
                               number.
44        *   Data             The actual sound data.     
發表人 - rogan321 於 2004/12/18 00:52:08
系統時間:2024-04-25 20:54:00
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!