Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Issue: drumsamplepatternprovider array clear [16362]

$
0
0
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.
Comments: I've checked in a fix. Please let me know if it works for you. thanks

Viewing all articles
Browse latest Browse all 738

Trending Articles