📄 riff-wave.specs
字号:
audio formats. The chunk is not required for PCM files using the `data'' chunk format. The "fact" chunk will be expanded to include any other information required by future WAVE formats. Added fields will appear following the <dwFileSize> field. Applications can use the chunk size field to determine which fields are present. Cue-Points Chunk The <cue-ck> cue-points chunk identifies a series of positions in the waveform data stream. The <cue-ck> is defined as follows: <cue-ck> -> cue( <dwCuePoints:DWORD> // Count of cue points <cue-point>... ) // Cue-point table <cue-point> -> struct { DWORD dwName; DWORD dwPosition; FOURCC fccChunk; DWORD dwChunkStart; DWORD dwBlockStart; DWORD dwSampleOffset; } The <cue-point> fields are as follows: Field Description dwName Specifies the cue point name. Each <cue-point> record must have a unique dwName field. dwPosition Specifies the sample position of the cue point. This is the sequential sample number within the play order. See ``Playlist Chunk,'' later in this document, for a discussion of the play order. fccChunk Specifies the name or chunk ID of the chunk containing the cue point. dwChunkStart Specifies the file position of the start of the chunk containing the cue point. This is a byte offset relative to the start of the data section of the `wavl' LIST chunk. dwBlockStart Specifies the file position of the start of the block containing the position. This is a byte offset relative to the start of the data section of the `wavl' LIST chunk. dwSampleOffset Specifies the sample offset of the cue point relative to the start of the block. Examples of File Position Values The following table describes the <cue-point> field values for a WAVE file containing multiple `data' and `slnt' chunks enclosed in a `wavl' LIST chunk: Cue Point Field Value Location In a `slnt' fccChunk FOURCC value `slnt'. chunk dwChunkStart File position of the `slnt' chunk relative to the start of the data section in the `wavl' LIST chunk. dwBlockStart File position of the data section of the `slnt' chunk relative to the start of the data section of the `wavl' LIST chunk. dwSampleOffs Sample position of the cue et point relative to the start of the `slnt' chunk. In a PCM fccChunk FOURCC value `data'. `data' chunk dwChunkStart File position of the `data' chunk relative to the start of the data section in the `wavl' LIST chunk. dwBlockStart File position of the cue point relative to the start of the data section of the `wavl' LIST chunk. dwSampleOffs Zero value. et In a fccChunk FOURCC value `data'. compressed `data' chunk dwChunkStart File position of the start of the `data' chunk relative to the start of the data section of the `wavl' LIST chunk. dwBlockStart File position of the enclosing block relative to the start of the data section of the `wavl' LIST chunk. The software can begin the decompression at this point. dwSampleOffs Sample position of the cue et point relative to the start of the block. The following table describes the <cue-point> field values for a WAVE file containing a single `data' chunk: Cue Point Field Value Location Within PCM fccChunk FOURCC value `data'. data dwChunkStart Zero value. dwBlockStart Zero value. dwSampleOffs Sample position of the cue et point relative to the start of the `data' chunk. In a fccChunk FOURCC value `data'. compressed `data' chunk dwChunkStart Zero value. dwBlockStart File position of the enclosing block relative to the start of the `data' chunk. The software can begin the decompression at this point. dwSampleOffs Sample position of the cue et point relative to the start of the block. Playlist Chunk The <playlist-ck> playlist chunk specifies a play order for a series of cue points. The <playlist-ck> is defined as follows: <playlist-ck> -> plst( <dwSegments:DWORD> // Count of play segments <play-segment>... ) // Play-segment table <play-segment> -> struct { DWORD dwName; DWORD dwLength; DWORD dwLoops; } The <play-segment> fields are as follows: Field Description dwName Specifies the cue point name. This value must match one of the names listed in the <cue-ck> cue-point table. dwLength Specifies the length of the section in samples. dwLoops Specifies the number of times to play the section. Associated Data Chunk The <assoc-data-list> associated data list provides the ability to attach information like labels to sections of the waveform data stream. The <assoc-data-list> is defined as follows: <assoc-data-list> -> LIST('adtl' <labl-ck> // Label <note-ck> // Note <ltxt-ck> // Text with data length <file-ck> ) // Media file <labl-ck> -> labl(<dwName:DWORD> <data:ZSTR> ) <note-ck> -> note(<dwName:DWORD> <data:ZSTR> ) <ltxt-ck> -> ltxt(<dwName:DWORD> <dwSampleLength:DWORD> <dwPurpose:DWORD> <wCountry:WORD> <wLanguage:WORD> <wDialect:WORD> <wCodePage:WORD> <data:BYTE>... ) <file-ck> -> file(<dwName:DWORD> <dwMedType:DWORD> <fileData:BYTE>...) Label and Note Information The `labl' and `note' chunks have similar fields. The `labl' chunk contains a label, or title, to associate with a cue point. The `note' chunk contains comment text for a cue point. The fields are as follows: Field Description dwName Specifies the cue point name. This value must match one of the names listed in the <cue-ck> cue-point table. data Specifies a NULL-terminated string containing a text label (for the `labl' chunk) or comment text (for the `note' chunk). Text with Data Length Information The `ltxt'' chunk contains text that is associated with a data segment of specific length. The chunk fields are as follows: Field Description dwName Specifies the cue point name. This value must match one of the names listed in the <cue-ck> cue-point table. dwSampleLength Specifies the number of samples in the segment of waveform data. dwPurpose Specifies the type or purpose of the text. For example, dwPurpose can specify a FOURCC code like `scrp' for script text or `capt' for close- caption text. wCountry Specifies the country code for the text. See ``Country Codes'' in Chapter 2, ``Resource Interchange File Format,'' for a current list of country codes. wLanguage, Specify the language and dialect codes wDialect for the text. See ``Language and Dialect Codes'' in Chapter 2, ``Resource Interchange File Format,'' for a current list of language and dialect codes. wCodePage Specifies the code page for the text. Embedded File Information The `file' chunk contains information described in other file formats (for example, an `RDIB' file or an ASCII text file). The chunk fields are as follows: Field Description dwName Specifies the cue point name. This value must match one of the names listed in the <cue-ck> cue-point table. dwMedType Specifies the file type contained in the fileData field. If the fileData section contains a RIFF form, the dwMedType field is the same as the RIFF form type for the file. This field can contain a zero value. fileData Contains the media file.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -