← Packet index

Packet 348

ClientboundUpdateSoundDataPacket

Sent to update sound data.

Packet datagramWire order
HeaderID 348varuint
0Server Sound HandleServerSoundHandle · variable
1EventoneOf<Stop, SetVolume, SetPitch, Fade, SeekTo, Pause, Resume> · variable

Serialized fields

2 top-level fields
  1. 0Server Sound HandleIdentifies the in-flight sound instance this update applies to.ServerSoundHandle
    1. 0Server Sound Handleuint64
  2. 1EventThe update to apply to the sound instance. The leading Type tag selects the alternative.oneOf<Stop, SetVolume, SetPitch, Fade, SeekTo, Pause, Resume>
    0StopStop
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    1SetVolumeSetVolume
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    2. 1VolumeThe new volume for the sound instance.float
    2SetPitchSetPitch
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    2. 1PitchThe new pitch for the sound instance.float
    3FadeFade
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    2. 1DurationHow long the fade takes, in seconds.float
    3. 2Target VolumeThe volume to reach at the end of the fade.float
    4SeekToSeekTo
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    2. 1SecondsPlayback position to seek to, in seconds from the start of the sound.float
    5PausePause
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume
    6ResumeResume
    1. 0TypeEnum-as-ValueSoundDataEventTypeas uint8
      1. 0Stop
      2. 1SetVolume
      3. 2SetPitch
      4. 3Fade
      5. 4SeekTo
      6. 5Pause
      7. 6Resume

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.