mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
Refactor playback speed and mixer settings to be managed via PlaybackSession, removing SetSpeed/SetStem* methods. Update Play command to apply current mixer and speed. Optimize RenderLoop with reusable audio block list and conditional output start. Align playback control icons in XAML. Update tests for new speed handling and add speed decrease coverage. Remove unused IStemPlaybackEngine methods.
22 lines
556 B
C#
22 lines
556 B
C#
using AudioCore.Impl;
|
|
|
|
namespace AudioCore.Models;
|
|
|
|
public readonly struct TimeStretchedAudioBlock : IDisposable
|
|
{
|
|
public AudioBuffer<float> Buffer { get; }
|
|
public int Frames { get; }
|
|
public int Channels { get; }
|
|
public int SampleRate { get; }
|
|
|
|
public TimeStretchedAudioBlock(AudioBuffer<float> buffer, int frames, int channels, int sampleRate)
|
|
{
|
|
Buffer = buffer;
|
|
Frames = frames;
|
|
Channels = channels;
|
|
SampleRate = sampleRate;
|
|
}
|
|
|
|
public void Dispose() => Buffer?.Dispose();
|
|
}
|