MCBE
OverviewPacketsClientboundUpdateSoundData
ID 0x15C · 348Server → ClientAudio

ClientboundUpdateSoundData

clientbound-update-sound-data.bin
struct ClientboundUpdateSoundData {
  ServerSoundHandle                            ServerSoundHandle;
  tagged case index (0=Stop, 1=SetVolume, 2=SetPitch, 3=Fade, 4=SeekTo, 5=Pause, 6=Resume) Event;
}

Structure

FieldTypeDescription
Server Sound HandleServerSoundHandle
Eventtagged case index (0=Stop, 1=SetVolume, 2=SetPitch, 3=Fade, 4=SeekTo, 5=Pause, 6=Resume)Variant: an index selects the payload type — see the tables below.

Structure of ServerSoundHandle

FieldTypeDescription
Valueuint64 (LE)

Structure of Stop

FieldTypeDescription

Structure of SetVolume

FieldTypeDescription
Volumefloat32 (LE)

Structure of SetPitch

FieldTypeDescription
Pitchfloat32 (LE)

Structure of Fade

FieldTypeDescription
Durationfloat32 (LE)
Target Volumefloat32 (LE)

Structure of SeekTo

FieldTypeDescription
Secondsfloat32 (LE)

Structure of Pause

FieldTypeDescription

Structure of Resume

FieldTypeDescription

Notes

  • No special notes.