WSDのファイルフォーマット

DSDファイルフォーマット技術資料

凡例

用語意味
char8 bit signed integer
uchar8 bit unsigned integer
ushort16 bit unsigned integer
ulong32 bit unsigned integer
double ulong64 bit unsigned integer
b_eBig endian
l_eLittle endian

フォーマット構造と実際のデータ

WSDは固定長ヘッダ(General Information / Data Spec Information / Text Data)の後にDSDデータが続く構造です。「実例」列はステレオDSD128ファイルの値です。

WSD 構造
エリアField NameSize (bytes)Format内容実例
General InformationFile ID4ASCII"1bit""1bit"
Reserved4Zerofill
Version_N1ビット表記v1.1の場合は1111
Reserved1Zerofill
Reserved2Zerofill
File_SZ8double ulong(l_e)FileSize90472960
Text_SP4BinaryTextDataの位置80
Data_SP4BinaryStreamDataの位置800
Reserved4Zerofill
Data Spec InformationPB_TM4ulong(l_e)Playback Time10400
fs4ulong(l_e)Sampling Frequency5644800
Reserved4Zerofill
Ch_N1ビット表記チャンネル数2
Reserved3Zerofill
Ch_Asn4ビット表記スピーカー配置100010
Reserved12Ch_Asn用Zerofill
Emph4基本無し(Zero fill)Zerofill
Reserved4Zerofill
Time Reference16128bit unsigned開始時間をサンプル数で表記Zerofill
Text DataTitle Name128ASCIIメタデータ空白
Composer128ASCIIメタデータ空白
Son Writer128ASCIIメタデータ空白
Artist128ASCIIメタデータ空白
Album128ASCIIメタデータ空白
Genre32ASCIIメタデータ空白
Date&Time32ASCIIメタデータ20890902012152
Location32ASCIIメタデータ空白
Comment512ASCIIメタデータ空白
User Specific512ASCIIメタデータ空白
Reserved160
Stream DataStream DataucharDSD dataDSD data