29        private float $duration
 
 
   35    public function getType() : int{ return $this->type; }
 
   37    public function getDuration() : float{ return $this->duration; }
 
   39    public static function read(ByteBufferReader $in) : self{
 
   40        $type = Byte::readUnsigned($in);
 
   41        $duration = LE::readFloat($in);
 
   42        return new self($type, $duration);
 
   45    public function write(ByteBufferWriter $out) : void{
 
   46        Byte::writeUnsigned($out, $this->type);
 
   47        LE::writeFloat($out, $this->duration);