c - Why should I use "PaUtil_AllocateMemory" instead of malloc()? -
i looked @ this example portaudio page , wondered why author uses
data.rbuftortdata = pautil_allocatememory(sizeof(oceanwave*) * 256);
instead of
data.rbuftortdata = malloc(sizeof(oceanwave*) * 256);
i not find answer on portaudio sites.
you should not use pautil_allocatememory()
. isn't part of portaudio public api. have filed bug against example. raising issue.
that said, example appears intended demonstrate use of low-level internal data structures in portaudio. in particular portaudio ring buffer. should not taken example of using portaudio public api.
Comments
Post a Comment