Skip to main content

gsound-h

source

Types


ambient-sound

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

sound-bank-id

sound-bank-id: uint32source

sound-id

sound-id: uint32source
Methods
unused-9: unknown

sound-name

sound-name: uint128source

sound-play-parms

sound-play-parms: structuresource
Fields
mask: sound-mask
pitch-mod: int16
bend: int16
fo-min: int16
fo-max: int16
fo-curve: int8
priority: int8
volume: int32
trans: vector3w
group: sound-group

sound-rpc-bank-cmd

sound-rpc-bank-cmd: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
bank-name: sound-name

sound-rpc-cmd

sound-rpc-cmd: structuresource
Fields
rsvd1: uint16
command: sound-command

sound-rpc-continue-group

sound-rpc-continue-group: sound-rpc-group-cmdsource
Fields
rsvd1: uint16
command: sound-command
group: sound-group

sound-rpc-continue-sound

sound-rpc-continue-sound: sound-rpc-sound-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id

sound-rpc-get-irx-version

sound-rpc-get-irx-version: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
major: uint32
minor: uint32
ee-addr: pointer

sound-rpc-group-cmd

sound-rpc-group-cmd: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
group: sound-group

sound-rpc-list-sounds

sound-rpc-list-sounds: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command

sound-rpc-load-bank

sound-rpc-load-bank: sound-rpc-bank-cmdsource
Fields
rsvd1: uint16
command: sound-command
bank-name: sound-name

sound-rpc-load-music

sound-rpc-load-music: sound-rpc-bank-cmdsource
Fields
rsvd1: uint16
command: sound-command
bank-name: sound-name

sound-rpc-pause-group

sound-rpc-pause-group: sound-rpc-group-cmdsource
Fields
rsvd1: uint16
command: sound-command
group: sound-group

sound-rpc-pause-sound

sound-rpc-pause-sound: sound-rpc-sound-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id

sound-rpc-play

sound-rpc-play: sound-rpc-sound-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id
name: sound-name
parms: sound-play-parms

sound-rpc-reload-info

sound-rpc-reload-info: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command

sound-rpc-set-ear-trans

sound-rpc-set-ear-trans: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
ear-trans: vector3w
cam-trans: vector3w
cam-angle: int32

sound-rpc-set-falloff-curve

sound-rpc-set-falloff-curve: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
curve: int32
falloff: int32
ease: int32

sound-rpc-set-flava

sound-rpc-set-flava: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
flava: uint8

sound-rpc-set-fps

sound-rpc-set-fps: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
fps: uint8

sound-rpc-set-language

sound-rpc-set-language: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
lang: uint32

sound-rpc-set-master-volume

sound-rpc-set-master-volume: sound-rpc-group-cmdsource
Fields
rsvd1: uint16
command: sound-command
group: sound-group
volume: int32

sound-rpc-set-mirror-mode

sound-rpc-set-mirror-mode: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
mirror: sound-mirror-mode

sound-rpc-set-param

sound-rpc-set-param: sound-rpc-sound-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id
parms: sound-play-parms
auto-time: int32
auto-from: int32

sound-rpc-set-reverb

sound-rpc-set-reverb: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
core: uint8
reverb: int32
left: uint32
right: uint32

sound-rpc-set-sound-falloff

sound-rpc-set-sound-falloff: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
name: sound-name
curve: int32
min: int32
max: int32

sound-rpc-shutdown

sound-rpc-shutdown: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command

sound-rpc-sound-cmd

sound-rpc-sound-cmd: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id

sound-rpc-stop-group

sound-rpc-stop-group: sound-rpc-group-cmdsource
Fields
rsvd1: uint16
command: sound-command
group: sound-group

sound-rpc-stop-sound

sound-rpc-stop-sound: sound-rpc-sound-cmdsource
Fields
rsvd1: uint16
command: sound-command
id: sound-id

sound-rpc-union

sound-rpc-union: structuresource

sound-rpc-unload-bank

sound-rpc-unload-bank: sound-rpc-bank-cmdsource
Fields
rsvd1: uint16
command: sound-command
bank-name: sound-name

sound-rpc-unload-music

sound-rpc-unload-music: sound-rpc-cmdsource
Fields
rsvd1: uint16
command: sound-command

sound-spec

sound-spec: basicsource
Fields
type: type
mask: sound-mask
num: float
group: sound-group
sound-name-char: uint8
sound-name: sound-name
trans: float
volume: int32
pitch-mod: int32
bend: int32
fo-min: int16
fo-max: int16
fo-curve: int8
priority: int8
auto-time: int32
auto-from: int32

Functions


music-flava->string

music-flava->string(f: music-flava) => stringsource

Variables


*current-sound-id*

*current-sound-id*: sound-idsource

*sound-bank-1*

*sound-bank-1*: symbolsource

*sound-bank-2*

*sound-bank-2*: symbolsource

gsound

source

Types


flava-table

flava-table: basicsource
Fields
type: type
row: flava-table-row
count: int32

flava-table-row

flava-table-row: structuresource
Fields
music: symbol
flava: uint8

sound-iop-info

sound-iop-info: basicsource
Fields
type: type
frame: uint32
strpos: int32
str-id: sound-id
str-id-sign: int32
freemem: uint32
chinfo: uint8
freemem2: uint32
nocd: uint32
dirtycd: uint32
diskspeed: uint32
lastspeed: uint32
dupseg: int32
times: uint32
times-seq: uint32

Functions


check-irx-version

check-irx-version() => intsource

current-str-id

current-str-id() => sound-idsource
Return id of the current stream

current-str-pos

current-str-pos(str: sound-id) => intsource
Return position of the current stream. Return -1 if specified stream is not current

ear-trans

ear-trans() => vectorsource
Return the trans for the game ear

flava-lookup

flava-lookup(music: symbol, n: music-flava) => intsource
Return the n'th flava for the specified music

free-last-sound-buffer-entry

free-last-sound-buffer-entry() => intsource

get-sound-buffer-entry

get-sound-buffer-entry() => pointersource

is-cd-in?

is-cd-in?() => symbolsource

list-sounds

list-sounds() => intsource

make-sqrt-table

make-sqrt-table() => intsource

new-sound-id

new-sound-id() => sound-idsource

set-language

set-language(lang: language-enum) => intsource

show-iop-info

show-iop-info(buf: dma-buffer) => intsource
Display sound channel status in the top left corner

show-iop-memory

show-iop-memory(buf: dma-buffer) => intsource

sound-angle-convert

sound-angle-convert(deg: float) => intsource

sound-bank-load

sound-bank-load(name: sound-name) => sound-idsource

sound-bank-unload

sound-bank-unload(name: sound-name) => intsource

sound-basic-cb

sound-basic-cb(arg0: int, arg1: pointer) => nonesource
This function is unused.

sound-buffer-dump

sound-buffer-dump() => intsource

sound-command->string

sound-command->string(cmd: sound-command) => stringsource

sound-continue

sound-continue(id: sound-id) => intsource

sound-group-continue

sound-group-continue(group: sound-group) => intsource

sound-group-pause

sound-group-pause(group: sound-group) => intsource

sound-group-stop

sound-group-stop(group: sound-group) => intsource

sound-music-load

sound-music-load(name: sound-name) => intsource

sound-music-unload

sound-music-unload() => intsource

sound-name=

sound-name=(arg0: sound-name, arg1: sound-name) => symbolsource
Return #t if both are the same name

sound-pause

sound-pause(id: sound-id) => intsource

sound-play-by-name

sound-play-by-name(name: sound-name, id: sound-id, vol: int, pitch: int, bend: int, group: sound-group, trans: symbol) => sound-idsource
Play a sound called name with the specified params

sound-play-by-spec

sound-play-by-spec(spec: sound-spec, id: sound-id, sound-trans: vector) => sound-idsource
Play a sound from the given spec

sound-reload-info

sound-reload-info() => intsource

sound-set-ear-trans

sound-set-ear-trans(ear-trans: vector, cam-trans: vector, cam-angle: float) => intsource

sound-set-falloff-curve

sound-set-falloff-curve(curve: int, falloff: float, ease: float) => intsource

sound-set-flava

sound-set-flava(flava: uint) => intsource

sound-set-fps

sound-set-fps(arg0: int) => intsource

sound-set-mirror-mode

sound-set-mirror-mode(mode: sound-mirror-mode) => nonesource

sound-set-reverb

sound-set-reverb(arg0: int, arg1: float, arg2: float, arg3: uint) => intsource

sound-set-sound-falloff

sound-set-sound-falloff(name: sound-name, falloff-min: int, falloff-max: int, curve: int) => intsource

sound-set-volume

sound-set-volume(group: sound-group, volume: float) => intsource

sound-stop

sound-stop(id: sound-id) => intsource

sound-trans-convert

sound-trans-convert(dest: vector3w, src: vector) => intsource

sound-volume-off

sound-volume-off() => intsource
Set all sound volume to zero

str-is-playing?

str-is-playing?() => symbolsource
Return #t if an audio stream is playing

string->sound-name

string->sound-name(str: string) => sound-namesource

swap-sound-buffers

swap-sound-buffers(arg0: vector, arg1: vector, arg2: float) => intsource

Variables


*ambient-spec*

*ambient-spec*: sound-specsource

*flava-table*

*flava-table*: flava-tablesource

*sound-bank-1*

*sound-bank-1*: symbolsource

*sound-bank-2*

*sound-bank-2*: symbolsource

*sound-current-mirror*

*sound-current-mirror*: sound-mirror-modesource

*sound-iop-info*

*sound-iop-info*: sound-iop-infosource

*sound-loader-rpc*

*sound-loader-rpc*: rpc-buffer-pairsource

*sound-player-enable*

*sound-player-enable*: symbolsource

*sound-player-rpc*

*sound-player-rpc*: rpc-buffer-pairsource