51 lines
842 B
Plaintext
51 lines
842 B
Plaintext
meta:
|
|
id: wav
|
|
file-extension: wav
|
|
encoding: ascii
|
|
endian: le
|
|
seq:
|
|
- id: magic
|
|
type: str
|
|
size: 4
|
|
- id: size
|
|
type: u4
|
|
- id: wave_str
|
|
type: str
|
|
size: 4
|
|
- id: sections
|
|
type: section
|
|
repeat: eos
|
|
instances: {}
|
|
types:
|
|
section:
|
|
seq:
|
|
- id: name
|
|
type: str
|
|
size: 4
|
|
- id: size
|
|
type: u4
|
|
- id: content
|
|
size: size
|
|
type:
|
|
switch-on: name
|
|
cases:
|
|
'"fmt "': fmt
|
|
fmt:
|
|
seq:
|
|
- id: type
|
|
type: u2
|
|
- id: channels
|
|
type: u2
|
|
- id: samplerate
|
|
type: u4
|
|
- id: datarate
|
|
type: u4
|
|
doc: Might also be datarate per channel
|
|
- id: bytes_per_sample
|
|
type: u2
|
|
- id: bits_per_unit
|
|
type: u2
|
|
enums: {}
|
|
doc: Hello, world
|
|
doc-ref: https://example.com
|