DSPUtil.SoundBuffer.SampleSubset C# (CSharp) Method

SampleSubset() public method

Get an iterator for a subset of samples
public SampleSubset ( int start, int count ) : IEnumerator
start int
count int Number to return
return IEnumerator
        public IEnumerator<ISample> SampleSubset(int start, int count)
        {
            ReadTo(start + count);
            for(int j=start; j<start+count && j<_samples.Count; j++)
            {
                yield return _samples[j];
            }
        }