Sound Protocol
From OpenSimulator
(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...") |
(→Viewer Simulator protocol) |
||
Line 7: | Line 7: | ||
= Viewer <-> Simulator protocol = | = Viewer <-> Simulator protocol = | ||
+ | |||
+ | == SoundTrigger == | ||
+ | Simulator <-> Viewer. | ||
+ | |||
+ | Sent by viewer to simulator when "play inworld" option is triggered. | ||
+ | |||
+ | Sent by simulator to all viewers when "play inworld" option is triggered. | ||
== PreloadSoundPacket == | == PreloadSoundPacket == |
Revision as of 09:51, 22 May 2013
Contents |
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.1KHz mono. They cannot be longer than 10 seconds.
Viewer <-> Simulator protocol
SoundTrigger
Simulator <-> Viewer.
Sent by viewer to simulator when "play inworld" option is triggered.
Sent by simulator to all viewers when "play inworld" option is triggered.
PreloadSoundPacket
Simulator -> Viewer. Asks the viewer to preload a sound so there's no delay when it's played.
AttachedSoundPacket
Simulator -> Viewer. Asks the viewer to play a sound that is attached to an object (i.e. it moves with the object).
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).
AttachedSoundGainChangePacket
Simulator -> Viewer. Change the gain of sounds attached to a given object.