In this section of Read:
if (samplesRead < count)
{
Array.Clear(buffer, offset + samplesRead, count - samplesRead);
samplesRead = count;
}
buffer is being Cleared as a byte[] at runtime, but the next 2 parameters are sample based (ie off by factor of 4).
Read parameter signature is a float[] so this does confuse me a bit. i worked around by ()*4 the 2nd 2 params.
if (samplesRead < count)
{
Array.Clear(buffer, offset + samplesRead, count - samplesRead);
samplesRead = count;
}
buffer is being Cleared as a byte[] at runtime, but the next 2 parameters are sample based (ie off by factor of 4).
Read parameter signature is a float[] so this does confuse me a bit. i worked around by ()*4 the 2nd 2 params.