[wdmaudiodev] Re: AERT_Allocate in an sAPO

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 7 Nov 2018 16:31:11 +0000

Size is the amount of memory in bytes. The documentation is incorrect. Thanks 
for the heads-up, I have filed a bug internally.


  *   I need more than 32k of memory

Call AERT_Allocate multiple times until you have enough memory. Be aware that 
nonpageable memory is a precious resource, so only allocate as much as you 
need. The memory you get from successive allocations may be noncontiguous; you 
will need to handle this case when you are using the memory.

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Troels Blum (TBLU) (Consultant) <tblu@xxxxxxxxxxx>
Sent: Wednesday, November 7, 2018 6:30:01 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] AERT_Allocate in an sAPO

According to the documentation I MUST use AERT_Allocate for memory allocation 
when developing an sAPO:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff536213(v=vs.85).aspx

So I have two questions:

  1.  According to the documentation of HRESULT AERT_Allocate(size_t size, void 
  **pMemory);
Size is the number of input connections – what does that even mean? Is it not 
the amount of memory in bytes?


  1.  I get an error when allocating more that 32k of memory using 
AERT_Allocate??? I need more that 32k of memory. What to do?


I see that this question has been asked before, but never answered: 
https://www.freelists.org/post/wdmaudiodev/AERT-Allocate-in-an-sAPO<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.freelists.org%2Fpost%2Fwdmaudiodev%2FAERT-Allocate-in-an-sAPO&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C4ebb2861cabe4184f27808d644bd95fc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636771978439132479&sdata=Mfduv0DQ%2BHhvzMa1ND%2FtFNXblPs%2FtQejINSWFzWyubQ%3D&reserved=0>

Best regards
Troels Blum

Other related posts: