Package net.paulhertz.pixelaudio.schedule

# Class AudioScheduler.SpanEvent<H>

java.lang.Object
net.paulhertz.pixelaudio.schedule.AudioScheduler.SpanEvent<H>

Enclosing class:
  AudioScheduler<H>

public static final class AudioScheduler.SpanEvent<H> extends Object
A duration event active on [startSample, endSample) where endSample is exclusive. While active, it may be visited each block via `AudioScheduler.SpanHandler.onBlock(H, long, int)`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final long`
  `endSample`
  Absolute end sample index (exclusive).
  `final H`
  `happening`
  The user-defined Happening carried by this event.
  `final long`
  `startSample`
  Absolute start sample index (inclusive).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SpanEvent(long startSample, long endSample, H happening)`

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### startSample

    public final long startSample
    Absolute start sample index (inclusive).

  - ### endSample

    public final long endSample
    Absolute end sample index (exclusive). Must be greater than startSample.

  - ### happening

    public final H happening
    The user-defined Happening carried by this event.

- ## Constructor Details

  - ### SpanEvent

    public SpanEvent(long startSample, long endSample, H happening)