Handbook
Glossary
sample-rate<< ( value object -- )
Vocabulary
accessors
Inputs
value
an
object
object
an
object
Outputs
None
Definition
IN:
accessors
GENERIC:
sample-rate<<
( value object -- )
Methods
USING:
accessors
audio
kernel
math
slots
slots.private
;
M:
audio
sample-rate<<
[
dup
integer?
[
\
integer
bad-slot-value
]
unless
]
dip
4
set-slot
;
inline
USING:
accessors
alien.c-types
audio.aiff
classes.struct
classes.struct.private
kernel
;
M:
common-chunk
sample-rate<<
T{
struct-slot-spec
{
name
"sample-rate"
}
{
offset 16
}
{
class
object
}
{
type
{
uchar
10
}
}
}
write-struct-slot
;
inline
USING:
accessors
audio.engine
kernel
math
slots
slots.private
;
M:
streaming-audio-clip
sample-rate<<
[
dup
integer?
[
\
integer
bad-slot-value
]
unless
]
dip
10
set-slot
;
inline
USING:
accessors
alien.c-types
audio.wav
classes.struct
classes.struct.private
kernel
;
M:
wav-fmt-chunk
sample-rate<<
T{
struct-slot-spec
{
name
"sample-rate"
}
{
offset 12
}
{
class
object
}
{
type
{
uchar
4
}
}
}
write-struct-slot
;
inline