pingdynasty / OwlPatches

Audio Patches for the OpenWareLaboratory: http://hoxtonowl.com
GNU General Public License v2.0
51 stars 30 forks source link

Dynamic array initialization #2

Closed sgissinger closed 10 years ago

sgissinger commented 10 years ago

Visual Studio do not compile dynamic array initialization. Instead, I used a pointer initialized with new and free it with delete[]. I'm a C++ newbie but according to http://h30097.www3.hp.com/cplus/ugu_port.html these keywords seem to be part of International C++ Standard.

pingdynasty commented 10 years ago

We have to use createMemoryBuffer() instead of new/malloc for memory allocation, see the new Guidelines document: http://hoxtonowl.com/wiki/Patch_Programming_Guidelines