five-on-it / apps/client/src/audio/radio / RadioOptions
Interface: RadioOptions
Defined in: apps/client/src/audio/radio.ts:97
Options of createRadio.
Properties
deck
deck:
RadioDeck
Defined in: apps/client/src/audio/radio.ts:99
last?
optionallast?:string
Defined in: apps/client/src/audio/radio.ts:103
The id of the station last picked: the first car of the session plays it, when its radio comes on.
now?
optionalnow?: () =>number
Defined in: apps/client/src/audio/radio.ts:101
The time (ms since 1970); Date.now by default.
Returns
number
picked?
optionalpicked?: (id) =>void
Defined in: apps/client/src/audio/radio.ts:105
A station was picked (by a key, the wheel or the phone): its id, or '' for off.
Parameters
id
string
Returns
void
stations
stations: readonly
Station[]
Defined in: apps/client/src/audio/radio.ts:98