public void LoopsProperlyAfterDecoding(int sampleCount, bool looping, int loopStart, int loopEnd) { GcAdpcmFormat adpcm = GenerateAudio.GenerateAdpcmEmpty(sampleCount, 1, 48000) .WithLoop(looping, loopStart, loopEnd); IAudioFormat pcm = adpcm.ToPcm16(); Assert.Equal(looping, pcm.Looping); Assert.Equal(loopStart, pcm.LoopStart); Assert.Equal(loopEnd, pcm.LoopEnd); }
public Pcm16Format DecodeAdpcm() => _adpcmStream.ToPcm16();