Class HighPrecisionTickGenerator
Tick generator providing most accurate ticking, allowing firing intervals of 1 ms which
is the smallest possible one.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class HighPrecisionTickGenerator : TickGenerator, IDisposable
Fields
MaxInterval
The largest possible interval.
Declaration
public static readonly TimeSpan MaxInterval
Field Value
Type | Description |
---|---|
TimeSpan |
MinInterval
The smallest possible interval.
Declaration
public static readonly TimeSpan MinInterval
Field Value
Type | Description |
---|---|
TimeSpan |
Methods
Dispose()
Releases all resources used by the current tick generator.
Declaration
public override void Dispose()
Overrides
Dispose(bool)
Releases all resources used by the current tick generator.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
~HighPrecisionTickGenerator()
Finalizes the current instance of the HighPrecisionTickGenerator.
Declaration
protected ~HighPrecisionTickGenerator()
Start(TimeSpan)
Starts a tick generator.
Declaration
protected override void Start(TimeSpan interval)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | interval | Interval between ticks. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | interval is out of
[MinInterval; MaxInterval] range. |
Stop()
Stops a tick generator.
Declaration
protected override void Stop()