Jamoma API  0.6.0.a19
TTDSP.h File Reference

Jamoma DSP Library. More...

#include "TTFoundationAPI.h"
#include "TTAudioObjectBase.h"
#include "TTAudioSignal.h"
#include "TTAudioSignalArray.h"
#include "TTAudioObject.h"
+ Include dependency graph for TTDSP.h:

Go to the source code of this file.

Macros

#define TT_AUDIO_CLASS_SETUP(strname, tags, className)
 A macro for setting up the class binding to the library in extension classes. More...
 

Functions

void TTDSP_EXPORT TTDSPInit (const char *pathToBinaries=NULL)
 Initialise the Jamoma DSP library, as well as Jamoma Foundation foundation if needed. More...
 
TTErr TTDSP_EXPORT TTObjectBaseInstantiate (const TTSymbol &className, TTAudioObjectBasePtr *returnedObjectPtr, TTValue &arguments)
 Instantiate an object. More...
 
TTAudioObjectBasePtr TTDSP_EXPORT TTObjectBaseReference (TTAudioObjectBasePtr anObject)
 Create a reference to an object. More...
 
TTErr TTDSP_EXPORT TTObjectBaseRelease (TTAudioObjectBasePtr *anObject)
 Release (destroy) an object. More...
 
TTPtr TTMalloc16 (size_t numBytes)
 Allocate memory with 16-byte alignment. More...
 
void TTFree16 (TTPtr ptr)
 Free 16-byte aligned memory alloc'd by TTMalloc16(). More...
 

Detailed Description

Jamoma DSP Library.

Authors
Tim Place, Trond Lossius

Definition in file TTDSP.h.

Function Documentation

void TTDSP_EXPORT TTDSPInit ( const char *  pathToBinaries = NULL)

Initialise the Jamoma DSP library, as well as Jamoma Foundation foundation if needed.

Parameters
pathToBinariesThe file path to the location of the binaries.

Definition at line 30 of file TTDSP.cpp.

References TTLogMessage().

Referenced by main(), TTLoadJamomaExtension_AnalysisLib(), TTLoadJamomaExtension_GeneratorLib(), TTLoadJamomaExtension_SpatLib(), and TTLoadJamomaExtension_WindowFunctionLib().

+ Here is the call graph for this function:

void TTFree16 ( TTPtr  ptr)

Free 16-byte aligned memory alloc'd by TTMalloc16().

Parameters
ptrPointer to the memory to be freed.

Free 16-byte aligned memory alloc'd by TTMalloc16().

Definition at line 647 of file TTBase.cpp.

TTPtr TTMalloc16 ( size_t  numBytes)

Allocate memory with 16-byte alignment.

This memory must be freed using TTFree16()

Parameters
numBytesThe number of bytes to be allocated.
Returns
Pointer to the allocated memory.

Allocate memory with 16-byte alignment.

This memory MUST be freed using TTFree16().

See also
TT_ALIGN_16
http://stackoverflow.com/questions/1919183/how-to-allocate-and-free-aligned-memory-in-c
http://bytes.com/topic/c/answers/591742-overload-new-delete-memalign-malloc

Definition at line 641 of file TTBase.cpp.

TTErr TTDSP_EXPORT TTObjectBaseInstantiate ( const TTSymbol className,
TTAudioObjectBasePtr returnedObjectPtr,
TTValue arguments 
)

Instantiate an object.

Parameters
classNameThe name of the class of the object
returnedObjectPtrPointer to the newly instantiated object
argumentsAdditional arguments
Returns
TTErr error code if the method fails to execute, else kTTErrNone.

Definition at line 88 of file TTDSP.cpp.

References TTEnvironment::createInstance(), and ttEnvironment.

+ Here is the call graph for this function:

TTAudioObjectBasePtr TTDSP_EXPORT TTObjectBaseReference ( TTAudioObjectBasePtr  anObject)

Create a reference to an object.

Parameters
anObjectThe object that we want to reference.
Returns
Pointer to the object.

Definition at line 128 of file TTDSP.cpp.

References TTEnvironment::referenceInstance(), and ttEnvironment.

+ Here is the call graph for this function:

TTErr TTDSP_EXPORT TTObjectBaseRelease ( TTAudioObjectBasePtr anObject)

Release (destroy) an object.

Returns
TTErr error code if the method fails to execute, else kTTErrNone.

Definition at line 142 of file TTDSP.cpp.

References kTTErrNone, TTEnvironment::releaseInstance(), and ttEnvironment.

+ Here is the call graph for this function: