moo.sdk.output.play_sound

moo.sdk.output.play_sound(obj, name, volume=100, priority=10)

Play a sound on obj’s client.

Prefers GMCP Client.Media.Play when the client negotiated GMCP; falls back to the inline MSP !!SOUND(...) marker if the client negotiated MSP; no-ops otherwise.

DjangoMOO does not bundle any sound assets. Sound pack authors are expected to provide filenames that their client-side pack can resolve.

Parameters:
  • obj – the player to play the sound on

  • name (str) – filename (client-resolvable), e.g. "door.wav"

  • volume (int) – 0–100

  • priority (int) – higher numbers preempt lower-priority sounds