five-on-it / apps/client/src/audio/radio / RadioContext
Interface: RadioContext
Defined in: apps/client/src/audio/radio.ts:47
What the radio follows, every frame.
Properties
autoOn
autoOn:
boolean
Defined in: apps/client/src/audio/radio.ts:53
Getting into a car never sat in turns its radio on.
car
car: {
id:number;radio:boolean; } |undefined
Defined in: apps/client/src/audio/radio.ts:49
The car the player sits in (its id, the same on every snapshot) and whether it has a radio; none on foot.
held
held:
boolean
Defined in: apps/client/src/audio/radio.ts:57
The game holds its sounds (paused alone).
onFoot
onFoot:
boolean
Defined in: apps/client/src/audio/radio.ts:55
The radio plays on after getting out, through earbuds, and tunes on foot.
volume
volume:
number
Defined in: apps/client/src/audio/radio.ts:51
How loud it plays, 0..1 (the settings' radio volume under the master).