Skip to content

Instantly share code, notes, and snippets.

@mhroth
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhroth/11298193 to your computer and use it in GitHub Desktop.
Save mhroth/11298193 to your computer and use it in GitHub Desktop.
Tannhäuser API: PdTable
#pragma mark - Tannhäuser Table
#ifndef _TANNHAUSER_TABLE_H_
#define _TANNHAUSER_TABLE_H_
typedef struct PdTable PdTable;
/**
* Resizes the table to the given length. Length must be positive.
* Existing contents are copied to the new table. Remaining space is cleared.
*/
void th_table_resize(PdTable *o, int newLength);
/** Returns a pointer to the raw buffer backing this table. DO NOT free it. */
float *th_table_getBuffer(PdTable *o);
/** Returns the length of this table in samples. */
int th_table_getLength(PdTable *o);
#endif // _TANNHAUSER_TABLE_H_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment