mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
27 lines
635 B
C#
27 lines
635 B
C#
namespace AudioCore.Interfaces;
|
|
|
|
public interface IStemPlaybackEngine
|
|
{
|
|
PlaybackSession? CurrentSession { get; }
|
|
|
|
Task LoadSessionAsync(PlaybackSession session, IProgressReporter<TimeSpan> progressReporter);
|
|
|
|
// Transport
|
|
Task PlayAsync();
|
|
Task PauseAsync();
|
|
Task StopAsync();
|
|
Task SeekAsync(TimeSpan position);
|
|
|
|
// Loop
|
|
void SetLoop(TimeSpan start, TimeSpan end);
|
|
void ClearLoop();
|
|
|
|
// Speed
|
|
void SetSpeed(double speedFactor);
|
|
|
|
// Mixer
|
|
void SetStemEnabled(int stemNo, bool enabled);
|
|
void SetStemGain(int stemNo, float gainDb);
|
|
void SetStemPan(int stemNo, float pan);
|
|
}
|