Interface AudioScheduler.SpanHandler<H>
- Enclosing class:
- AudioScheduler<H>
public static interface AudioScheduler.SpanHandler<H>
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled for each audio block the span overlaps.voidCalled once when a span ends within the current block (possibly mid-block).voidCalled once when a span begins within the current block (possibly mid-block).
-
Method Details
-
onStart
Called once when a span begins within the current block (possibly mid-block).- Parameters:
happening- the event's HappeningoffsetInBlock- sample offset in [0, blockSize)
-
onBlock
Called for each audio block the span overlaps. Useful for driving continuous/streamed behaviors while the span is active.- Parameters:
happening- the event's HappeningblockStartSample- absolute start sample of this blockblockSize- number of samples in this block
-
onEnd
Called once when a span ends within the current block (possibly mid-block).- Parameters:
happening- the event's HappeningoffsetInBlock- sample offset in [0, blockSize]; may equal blockSize if end == block end
-