AudioPlayer improvements

Playing audio files at Speed different than 1, throws this error after playing the file once in loop.

IndexOutOfRangeException: "Index was outside the bounds of the array."
    StackTrace:
        VL.Audio.BufferWiseResampler { public void ResampleDeinterleave(float[] source, float[][] dest, int sourceSamples, int destSamples, int channels) { ... } } 
        VL.Audio.FileStreamSignal { protected virtual void FillBuffers(float[][] buffer, int offset, int sampleCount) { ... } } 
        VL.Audio.SingleSignal { protected virtual void FillBuffer(float[] buffer, int offset, int count) { ... } } 
        VL.Audio.ResamplerPullBuffer { public virtual void Pull(int count) { ... } } 
        VL.Audio.CircularPullBuffer { public int Read(float[] data, int offset, int count) { ... } } 
        VL.Audio.AudioSignal { public virtual int Read(float[] buffer, int offset, int count) { ... } } 
        VL.Audio.MasterWaveProvider { public virtual int Read(byte[] buffer, int offset, int count) { ... } } 


indeed, the new resampler didn’t play well with the existing one for the speed adjustments. please test with latest release where i combined the two. sounds smooth to me now in all known cases.

2 Likes

I didn’t try it deeply but seems to work now.
Thank you so much!