Sound Protocol

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "= Introduction = Unfortunately, this section is incomplete and will likely remain so for quite some time. = General = Uploaded sounds must be in 16 bit PCM WAV format at 44.1KH...")
 
(General)
 
(2 intermediate revisions by one user not shown)
Line 5: Line 5:
 
= General =
 
= General =
 
Uploaded sounds must be in 16 bit PCM WAV format at 44.1KHz mono.  They cannot be longer than 10 seconds.
 
Uploaded sounds must be in 16 bit PCM WAV format at 44.1KHz mono.  They cannot be longer than 10 seconds.
 +
 +
When queueing is enabled (via llSetSoundQueueing(), only two sounds are meant to be queued at once.  No queueing is currently implemented in OpenSimulator.
  
 
= Viewer <-> Simulator protocol =
 
= Viewer <-> Simulator protocol =
Line 15: Line 17:
  
 
== SoundTriggerPacket ==
 
== SoundTriggerPacket ==
Simulator -> Viewer.  Asks the viewer to play a sound that is not attached to an object (i.e. if the object moves the sound stays where it is).
+
Viewer -> Simulator.  Sent by viewer to simulator when "play inworld" option is triggered.
 +
 
 +
Simulator -> Viewer.  Asks the viewer to play a sound that is not attached to an object (i.e. if the object moves the sound stays where it is).  For instance, this is sent back to all viewers when a viewer has manually triggered an inworld play.
  
 
== AttachedSoundGainChangePacket ==
 
== AttachedSoundGainChangePacket ==
 
Simulator -> Viewer.  Change the gain of sounds attached to a given object.
 
Simulator -> Viewer.  Change the gain of sounds attached to a given object.

Latest revision as of 10:56, 22 May 2013

Contents

[edit] Introduction

Unfortunately, this section is incomplete and will likely remain so for quite some time.

[edit] General

Uploaded sounds must be in 16 bit PCM WAV format at 44.1KHz mono. They cannot be longer than 10 seconds.

When queueing is enabled (via llSetSoundQueueing(), only two sounds are meant to be queued at once. No queueing is currently implemented in OpenSimulator.

[edit] Viewer <-> Simulator protocol

[edit] PreloadSoundPacket

Simulator -> Viewer. Asks the viewer to preload a sound so there's no delay when it's played.

[edit] AttachedSoundPacket

Simulator -> Viewer. Asks the viewer to play a sound that is attached to an object (i.e. it moves with the object).

[edit] SoundTriggerPacket

Viewer -> Simulator. Sent by viewer to simulator when "play inworld" option is triggered.

Simulator -> Viewer. Asks the viewer to play a sound that is not attached to an object (i.e. if the object moves the sound stays where it is). For instance, this is sent back to all viewers when a viewer has manually triggered an inworld play.

[edit] AttachedSoundGainChangePacket

Simulator -> Viewer. Change the gain of sounds attached to a given object.

Personal tools
General
About This Wiki