tta檔案格式是一種無損音訊壓縮格式,有tta1和tta2兩種檔案格式,支援音訊資料完整性校驗(crc32),包含seektable可以實現快速的時間定位,支援id3v1/v2 和 apev2 等標籤格式。
tta1檔案結構:
stream header
seek table
audio data
tta2檔案結構:
stream header
audio data
stream footer (seek table)
tta1:
名稱偏移 大小
含義id
0x00
4 byte
"tta1"
formattag
0x04
2 byte
音訊資料型別
numchannels
0x06
2 byte
聲道數目
bitspersample
0x08
2 byte
取樣位數
samplerate
0x10
4 byte
取樣頻率
data length in samples
0x14
4 byte
樣本資料長度
crc32
0x18
4 byte
crc32校驗碼
tta2:
名稱偏移 大小
含義id
0x00
4 byte
"tta2"
numchannels
0x04
2 byte
聲道數目
bitspersample
0x06
2 byte
取樣位數
samplerate
0x08
4 byte
取樣頻率
channel locations mask
0x12
4 byte
聲道位置描述
data length in samples
0x16
8 byte
樣本資料長度(可以填充0)
datasize
0x 24
8 byte
音訊資料長度(可以填充0)
crc32
0x 32
4 byte
crc32校驗碼
channel locations mask:定義值
聲道位置描述
#define tta_front_left
0x1front left (left)
#define tta_front_right
0x2front right (right)
#define tta_front_center
0x4front center (center)
#define tta_low_frequency_left
0x8primary lfe (lfe left)
#define tta_back_left
0x10
back left (left surround)
#define tta_back_right
0x20
back right (right surround)
#define tta_front_left_of_center
0x40
left (left wide)
#define tta_front_right_of_center
0x80
right (right wide)
#define tta_back_center
0x100
back center (back surround)
#define tta_side_left
0x200
side left (left surround diffuse)
#define tta_side_right
0x400
side right (right surround diffuse)
#define tta_top_front_center
0x800
top center (center height)
#define tta_top_front_left
0x1000
top left (left height)
#define tta_top_front_right
0x2000
top right (right height)
#define tta_low_frequency_right
0x4000
secondary lfe (lfe right)
簡述yaml檔案格式與Python讀取yaml檔案
2 python讀取 yaml檔案 1.大小寫敏感 2.使用縮排表示層級關係 3.縮排時不允許使用tab鍵,只允許使用空格。4.縮排的空格數目不重要,只要相同層級的元素左側對齊即可 物件的一組鍵值對,使用冒號結構表示。animal pets 一組連詞線開頭的行,構成乙個陣列。cat dog gold...
Oracle 控制檔案格式ctl檔案格式
options skip 1,errors 10 load data characterset zhs16gbk infile into table table name truncate fields terminated by optionally enclosed by trailing nu...
檔案格式 gff格式
gff檔案格式 gff格式是 sanger 研究所定義,是一種簡單的 方便的對於 dna rna以及蛋白質序列的特徵進行描述的一種資料格式,已經成為序列注釋的通用格式,比如基因組的基因 許多軟體都支援輸入或者輸出gff格式。前格式定義的最新版本是版本3。原始定義見 song websitegff是存...