Skip to content

Instantly share code, notes, and snippets.

@diplojocus
diplojocus / heavy_api_tables.c
Created February 2, 2015 00:04
Table specific Heavy API methods
/**
* Resizes the table to the given length. Length must be positive.
* Existing contents are copied to the new table. Remaining space is cleared.
*/
void hv_table_resize(PdTable *o, hv_uint32_t newLength);
/** Returns a pointer to the raw buffer backing this table. DO NOT free it. */
float *hv_table_getBuffer(PdTable *o);
/** Returns the length of this table in samples. */
CC = clang
CXX = clang++
MKDIR = mkdir -p
SRC_DIR = ../source
WWISE_SDK_DIR = /home/osiris/Desktop/Wwise/SDK/include
PATCH_NAME = sine
OUT_DIR = ../build/unix
BASEFLAGS = -I$(WWISE_SDK_DIR) -I$(SRC_DIR) -I$(SRC_DIR)/include -I$(SRC_DIR)/heavy -DNDEBUG -msse4.1 -O3 -ffast-math -std=c11 -fPIC -Werror -Wno-unused-function -Wno-\#warnings
CFLAGS = $(BASEFLAGS) -std=c11
CXXFLAGS = $(BASEFLAGS) -std=c++11 -Wno-deprecated-writable-strings -fno-exceptions -fno-rtti