Handbook
Glossary
static-audio-clip
Audio playback engine
Prev:
stop-clips ( audio-clips -- )
Next:
<static-audio-clip> ( audio-engine source audio loop? -- audio-clip/f )
Vocabulary
audio
.
engine
Class description
An
audio-clip
that plays back static, prerendered, fixed-size PCM data from an
audio
object. Use
<static-audio-clip>
or
play-static-audio-clip
to construct static audio clips.
Definition
USING:
math
;
IN:
audio.engine
TUPLE:
static-audio-clip
<
audio-clip
{
al-buffer
integer
initial:
0
}
;
Methods
USING:
audio.engine
audio.engine.private
kernel
;
M:
static-audio-clip
(update-audio-clip)
drop
;
USING:
accessors
alien.c-types
alien.data
audio.engine
destructors
generic
kernel
openal
;
M:
static-audio-clip
dispose*
[
M\
static-audio-clip
dispose*
(call-next-method)
]
[
[
1
]
dip
al-buffer>>
uint
<ref>
alDeleteBuffers
]
bi
;