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/11298666 to your computer and use it in GitHub Desktop.
Save mhroth/11298666 to your computer and use it in GitHub Desktop.
Tannhäuser API: Patch
#pragma mark - Tannhäuser Tann Patch
#ifndef _TANNHAUSER_TANN_H_
#define _TANNHAUSER_TANN_H_
typedef struct Tann_tann Tann_tann;
/**
* Creates a new patch instance. Block size should be a power of two.
* Sample rate should be positive and in Hertz.
* Input and output channels should be non-negative.
*/
Tann_tann *th_tann_new(int numInputChannels, int numOutputChannels, int blockSize, double sampleRate);
/** Frees a patch instance. */
void th_tann_free(Tann_tann *c);
/** Processes one block of samples for a patch instance. */
void th_tann_process(Tann_tann *c, float *inputBuffers, float *outputBuffer);
#endif // _TANNHAUSER_TANN_H_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment