On Thu Oct 17 00:41:09 2024 +0000, Elizabeth Figura wrote:
there you get 17208 bytes capacity samples but sample size is 16384 bytes.
Sorry, I'm not sure I understand—do you mean lSampleSize is 16384, but Windows sometimes gives you 17208 anyway? What's the offending size from the relevant game? Do we know what sizes Windows gives there?
I think Mystral is saying that the capacity (INSSBuffer::GetMaxLength) is 17208 and the actual size (INSSBuffer::GetLength) is 16384. lSampleSize is a AM_MEDIA_TYPE member, which (as far as I can see) isn't relevant to this function.
Personally I'd go for matching native's size, not capacity, and use 16384. Partially because consumers are more likely to use size than capacity, partially because 17208 is ugly.