Guide 1 Docs 2 Reference 3

Function of Sound

sound.stream

A live stream (MP3, or an FLV's sound) or a pack's sound file (OGG, MP3, WAV), heard through the mod a screen's stream uses. With at, from speakers: each player hears every speaker within distance. Without, from no place, at one volume. to: only these players. loop: files only.

sound.stream(opts: { url: string?, file: string?, at: (SoundSpeaker | { SoundSpeaker })?, to: (Player | { Player })?, distance: number?, loop: boolean?, name: string?, }) → SoundStream

Parameters

opts{ url: string?, file: string?, at: (SoundSpeaker | { SoundSpeaker })?, to: (Player | { Player })?, distance: number?, loop: boolean?, name: string?, }required

Returns

SoundStream

Used in