Hierarchy

  • PBAudioStream

Properties

playing?: boolean

whether the clip is currently playing

spatial?: boolean

either the audio will be global or spatial (default: false) global: plays the same way for every listener. It is not affected by distance, direction, or position. spatial: changes depending on where the listener is relative to the sound source

spatialMaxDistance?: number

The distance where sound either becomes inaudible or stops attenuation (default: 60)

spatialMinDistance?: number

Within the min distance the audio will cease to grow louder in volume (default: 0)

url: string

the audio stream HTTP URL

volume?: number

the audio volume (default: 1.0)