Lines Matching refs:event
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend() local
43 if (event != null) { in onSend()
44 add(event); in onSend()
80 MidiEvent event; in createScheduledEvent() local
82 event = new MidiEvent(msg, offset, count, timestamp); in createScheduledEvent()
84 event = (MidiEvent) removeEventfromPool(); in createScheduledEvent()
85 if (event == null) { in createScheduledEvent()
86 event = new MidiEvent(POOL_EVENT_SIZE); in createScheduledEvent()
88 System.arraycopy(msg, offset, event.data, 0, count); in createScheduledEvent()
89 event.count = count; in createScheduledEvent()
90 event.setTimestamp(timestamp); in createScheduledEvent()
92 return event; in createScheduledEvent()
101 public void addEventToPool(SchedulableEvent event) { in addEventToPool() argument
103 if (event instanceof MidiEvent) { in addEventToPool()
104 MidiEvent midiEvent = (MidiEvent) event; in addEventToPool()
106 super.addEventToPool(event); in addEventToPool()