MusicOptions beta
Interface of @v12-engine/client
ts
export interface MusicOptionsHow music is played (AppMixer.setMusic): over how many seconds it comes in as the one before goes (none: at once), at which volume, who it belongs to (letGoMusic), and where each track's file is (the track is its address when left out)
Members
crossfade
ts
crossfade?: number;Seconds the music takes to come in as the one before goes out; at once when left out
owner
ts
owner?: object;Who the music belongs to, for letGoMusic, which stops only the music its owner set
url
ts
url?: (track: string) => string;Maps a track's name to its file's address; the track is its own address when left out
volume
ts
volume?: number;The music's volume, 0..1