Beispiel #1
0
 /**
  * Parses the buffer stream for a system exclusive event
  *
  * @since 1.0
  * @uses  getDelta()
  * @uses  read()
  * @uses  EventFactory::createSystemExclusiveEvent()
  * 
  * @return SystemExclusiveEvent
  */
 protected function parseSystemExclusiveEvent()
 {
     $length = $this->getDelta();
     $data = $this->read($length, true);
     return $this->eventFactory->createSystemExclusiveEvent(str_split($data));
 }
Beispiel #2
0
 public function testCreateMetaEventWithInvalidEventType()
 {
     $this->assertInstanceOf('\\Tmont\\Midi\\Event\\UnknownMetaEvent', $this->obj->createMetaEvent(MetaEventType::DEVICE_NAME, 1));
 }