Thursday, May 29, 2014

Custom MediaStreamSource and Memory Leaks During SampleRequested

Hello,


If you want to actively manage your sample memory you should create a sample pool. In other words, you should pre allocate a pool of samples that is just large enough to support your scenario. You should then cycle through the pool round robin style, reusing samples as appropriate. This will allow you to pre allocate and know exactly how much sample memory your app will be using.


I hope this helps,


James




Windows SDK Technologies - Microsoft Developer Services - http://ift.tt/1kyQHnB


No comments:

Post a Comment