mmdevapi/tests: Fix wrong buffer unit and memory leaks.
6 Jun
2011
6 Jun
'11
3:31 a.m.
Hi,
* nBlockAlign is wrong since data is counted in frames, not bytes. I forgot to comment that I introduced the 10x multiplicator to convince myself that GetData accepts buffer sizes larger than the default 10ms chunk returned by GetDevicePeriod. That is reasonable, but not guaranteed when I read MSDN (the API would work with small buffers too).
Regards, Jörg Höhle
5302
Age (days ago)
5302
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joerg-Cyril.Hoehle@t-systems.com