On Thu Oct 17 01:12:24 2024 +0000, Elizabeth Figura wrote:
lSampleSize is a AM_MEDIA_TYPE member, which (as far as I can see)
isn't relevant to this function. AM_MEDIA_TYPE or the synonymous WM_MEDIA_TYPE; I was referring to the type set on the stream in question. I gather the application is confused by the size, not capacity, in which case, yes, we should be clamping to native's size, but I'm not sure that's what Matteo meant.
Yeah, agreed this should clamp to 16KiB. As I mentioned in the other comment, that's not quite the same as Windows but it's apparently good enough in that, with this patch, the samples fit into the fixed-size memory area.