Files
UmaViewer/Assets/Scripts/Audio/NAudio/Wave/SampleChunkConverters/ISampleChunkConverter.cs
T
2022-09-10 16:59:44 +08:00

19 lines
594 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace NAudio.Wave.SampleProviders
{
/// <summary>
/// Sample provider interface to make WaveChannel32 extensible
/// Still a bit ugly, hence internal at the moment - and might even make these into
/// bit depth converting WaveProviders
/// </summary>
interface ISampleChunkConverter
{
bool Supports(WaveFormat format);
void LoadNextChunk(IWaveProvider sourceProvider, int samplePairsRequired);
bool GetNextSample(out float sampleLeft, out float sampleRight);
}
}