Handbook
Glossary
wav-fmt-chunk
Vocabulary
audio
.
wav
Definition
USING:
alien.c-types
classes.struct
specialized-arrays.instances.alien.c-types.char
;
IN:
audio.wav
STRUCT:
wav-fmt-chunk
{
header
riff-chunk-header
initial:
S{
riff-chunk-header
{
id
char-array{
0 0 0 0
}
}
{
size
char-array{
0 0 0 0
}
}
}
}
{
audio-format uchar[2]
}
{
num-channels uchar[2]
}
{
sample-rate uchar[4]
}
{
byte-rate uchar[4]
}
{
block-align uchar[2]
}
{
bits-per-sample uchar[2]
}
;
Methods
USING:
audio.wav
classes.struct
classes.struct.private
kernel
;
M:
wav-fmt-chunk
clone
clone-underlying
\
wav-fmt-chunk
memory>struct
;
inline
USING:
accessors
audio.wav
classes.struct
combinators.smart
;
M:
wav-fmt-chunk
struct-slot-values
{
[
header>>
]
[
audio-format>>
]
[
num-channels>>
]
[
sample-rate>>
]
[
byte-rate>>
]
[
block-align>>
]
[
bits-per-sample>>
]
}
cleave>array
;
inline