30 lines
No EOL
763 B
C#
30 lines
No EOL
763 B
C#
using System;
|
|
|
|
namespace JD.Interfaces.Player
|
|
{
|
|
/// <summary>
|
|
/// Controls play/pause, seek, ...
|
|
/// </summary>
|
|
public interface IPlayer : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Current time of the player (in beats).
|
|
/// </summary>
|
|
float CurrentTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether it is currently running.
|
|
/// </summary>
|
|
bool Playing { get; set; }
|
|
|
|
/// <summary>
|
|
/// Triggered when current time changes.
|
|
/// </summary>
|
|
event EventHandler<EventArgs> TimeChanged;
|
|
|
|
/// <summary>
|
|
/// Allows to get extension behavior on the player (checkpoints, loops).
|
|
/// </summary>
|
|
PlayerComponents Components { get; }
|
|
}
|
|
} |