Added logic for tags and audio engine.
This commit is contained in:
22
Harmonia.Core/Engine/IAudioEngine.cs
Normal file
22
Harmonia.Core/Engine/IAudioEngine.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Harmonia.Core.Engine;
|
||||
|
||||
public interface IAudioEngine
|
||||
{
|
||||
string[] SupportedFormats { get; }
|
||||
string Source { get; }
|
||||
TimeSpan Position { get; set; }
|
||||
TimeSpan Length { get; }
|
||||
float Volume { get; set; }
|
||||
bool CanPause { get; }
|
||||
bool IsMuted { get; set; }
|
||||
AudioPlaybackState State { get; }
|
||||
|
||||
Task<bool> LoadAsync(string fileName);
|
||||
void Play();
|
||||
void Pause();
|
||||
void Stop();
|
||||
|
||||
event EventHandler<PlaybackStoppedEventArgs> PlaybackStopped;
|
||||
event EventHandler StreamFinished;
|
||||
event EventHandler<PlaybackStateChangedEventArgs> StateChanged;
|
||||
}
|
||||
Reference in New Issue
Block a user