Types
ambient-sound: basicsource
Fields
type: type
spec: sound-spec
playing-id: sound-id
trans: vector
name: sound-name
play-time: time-frame
time-base: time-frame
time-random: time-frame
volume: int32
pitch: int32
falloff-near: int32
falloff-far: int32
falloff-mode: int32
params: pointer
param-count: int32
entity: entity
sound-count: int32
Methods
update!(obj: ambient-sound) => intsource
Called once per frame to update the sound playback
change-sound!(obj: ambient-sound, name: sound-name) => intsource
Change the sound being played
update-trans!(obj: ambient-sound, sound-trans: vector) => intsource
Update the position of the thing playing the sound
update-vol!(obj: ambient-sound, arg0: int) => intsource
Update the volume of the sound
stop!(obj: ambient-sound) => intsource
Halt playback of this ambient-sound