[wdmaudiodev] AERT_Allocate "size" parameter & how to use AERT_x with std::vector

  • From: Culann mac Cabe <culann@xxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 24 Oct 2018 10:09:58 +0100

Hello wdmaudiodev people.

I am developing an APO and am doing some cleaning up work, including
implementing  AERT_Allocate for all my memory allocation.  I have a
compound question:

   1. The doc
   
https://docs.microsoft.com/en-us/windows/desktop/api/baseaudioprocessingobject/nf-baseaudioprocessingobject-aert_allocate
   defines the "size" parameter as " The number of input connections."  Is
   this correct?  It seems to me to be incomplete, as in without other info
   (eg audio sample data format) this can't evaluate to a byte size... so can
   someone please clarify what this paremeter should really mean?  (I'm
   guessing Bytes?)
   2. I am currently using std:vector and std:queue for convenience to
   manage IO buffering.  Now that I am converting everything to use
   AERT_Allocate, can someone please provide guidance/code snippet as to how I
   can use AERT_Allocate in conjunction with eg std::vector - or do I have to
   revert to pure C arrays in this case?

Thanks!
Culann

Other related posts: