SoundDef beta
Interface of @v12-engine/client
export interface SoundDefHow one sound is played, wherever it is played from: what the game's sounds.json says of it (the editor's Sounds panel), or the view's code (GameView.sounds.defs). What is left out is as what plays it asks
Members
bus
bus?: Bus;The bus it is heard through (its volume the player's), over the one what plays it says
cutoff
cutoff?: number;How far from where the player listens it is still started, in cells: past it, nothing is played (no voice taken) though it would be heard faintly. Its reach when left out, and never farther
pitch
pitch?: [number, number];How much higher or lower it plays each time, as the rates it is picked between, [lowest, highest] (1 as the file is, 2 an octave up): [1, 1] the same every time. Left out, a sound a little either way (0.94 to 1.06), a line said as it was recorded
reach
reach?: number;How far it is heard, in cells: loudest where it is, nothing at its reach. The game's hearing when left out (SoundSet.hearing)
volume
volume?: number;How loud, times what plays it asks (a blow lands at 0.6): 1 when left out, above 1 louder