Sound

Bluespess. Sound

new Sound(server, sndobj)

Source:
Parameters:
Name Type Description
server Bluespess
sndobj Object
Properties
Name Type Description
path string
playback_rate number How fast to play it, also affects pitch
vary boolean Multiplies playback_rate by a number between 0.75 and 1.25

Members

playing :boolean

Source:
Type:
  • boolean

Methods

emit_from(emitter)

Source:
Emits the sound from the given atom
Parameters:
Name Type Description
emitter Bluespess.Atom

play_to(mobs)

Source:
Parameters:
Name Type Description
mobs Array.<(Bluespess.Atom.<Mob>|Client)> | Bluespess.Atom.<Mob> | Client

stop()

Source:
Makes the sound stop playing.