mirror of
https://github.com/unclshura/ABStemPlayer.git
synced 2026-08-07 00:43:38 +00:00
24 lines
696 B
C#
24 lines
696 B
C#
using AudioCore.Impl;
|
|
|
|
namespace AudioCore.Models;
|
|
|
|
public readonly struct MixedAudioBlock : IDisposable
|
|
{
|
|
public AudioBuffer<float> Buffer { get; }
|
|
public int Frames { get; }
|
|
public int Channels { get; }
|
|
public int SampleRate { get; }
|
|
public long Position { get; }
|
|
|
|
public MixedAudioBlock(AudioBuffer<float> buffer, int frames, int channels, int sampleRate, long samplePosition)
|
|
{
|
|
Buffer = buffer;
|
|
Frames = frames;
|
|
Channels = channels;
|
|
SampleRate = sampleRate;
|
|
Position = samplePosition;
|
|
}
|
|
|
|
public void Dispose() => Buffer.Dispose();
|
|
}
|