Class RegularPrecisionTickGenerator
Tick generator which uses Timer for ticking.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class RegularPrecisionTickGenerator : 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(bool)
Releases all resources used by the current tick generator.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
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()