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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -