26 private float $duration
32 public function getType() : int{ return $this->type; }
34 public function getDuration() : float{ return $this->duration; }
37 $type = $in->getByte();
39 return new self($type, $duration);
43 $out->putByte($this->type);
44 $out->putLFloat($this->duration);