mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
17 lines
561 B
C#
17 lines
561 B
C#
namespace AudioCore.Interfaces;
|
|
|
|
public interface IStemWaveformService
|
|
{
|
|
/// <summary>
|
|
/// Computes N averaged amplitude values for the given stem.
|
|
/// </summary>
|
|
/// <param name="decoder">Configured stem decoder.</param>
|
|
/// <param name="segments">Number of averages to produce.</param>
|
|
/// <returns>Float array of length N.</returns>
|
|
Task<float[]> ComputeWaveformAsync(StemTrack stem, IStemDecoder decoder, int segments = 200);
|
|
}
|
|
|
|
public interface IStemWaveformServiceFactory
|
|
{
|
|
IStemWaveformService Create(StemTrack stem);
|
|
} |