Functions
tSampler

Loopable input sampler with crossfading. More...

Functions

void tSampler_init (tSampler *const, tBuffer *const, LEAF *const leaf)
 Initialize a tSampler to the default mempool of a LEAF instance. More...
 
void tSampler_free (tSampler *const)
 Free a tSampler from its mempool. More...
 
float tSampler_tick (tSampler *const)
 
void tSampler_setSample (tSampler *const, tBuffer *const)
 
void tSampler_setMode (tSampler *const, PlayMode mode)
 
void tSampler_play (tSampler *const)
 
void tSampler_stop (tSampler *const)
 
void tSampler_setStart (tSampler *const, int32_t start)
 
void tSampler_setEnd (tSampler *const, int32_t end)
 
void tSampler_setLength (tSampler *const, int32_t length)
 
void tSampler_setCrossfadeLength (tSampler *const sp, uint32_t length)
 
void tSampler_setRate (tSampler *const, float rate)
 

Detailed Description

Loopable input sampler with crossfading.

Function Documentation

◆ tSampler_init()

void tSampler_init ( tSampler * const  ,
tBuffer * const  ,
LEAF *const  leaf 
)

Initialize a tSampler to the default mempool of a LEAF instance.

Parameters
samplerA pointer to the tSampler to initialize.
bufferA pointer to a tBuffer to playback audio from. Multiple tSamplers can share one tBuffer.
leafA pointer to the leaf instance.

◆ tSampler_free()

void tSampler_free ( tSampler * const  )

Free a tSampler from its mempool.

Parameters
samplerA pointer to the tSampler to free.

◆ tSampler_tick()

float tSampler_tick ( tSampler * const  )
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setSample()

void tSampler_setSample ( tSampler * const  ,
tBuffer * const   
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setMode()

void tSampler_setMode ( tSampler * const  ,
PlayMode  mode 
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_play()

void tSampler_play ( tSampler * const  )
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_stop()

void tSampler_stop ( tSampler * const  )
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setStart()

void tSampler_setStart ( tSampler * const  ,
int32_t  start 
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setEnd()

void tSampler_setEnd ( tSampler * const  ,
int32_t  end 
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setLength()

void tSampler_setLength ( tSampler * const  ,
int32_t  length 
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setCrossfadeLength()

void tSampler_setCrossfadeLength ( tSampler *const  sp,
uint32_t  length 
)
Parameters
samplerA pointer to the relevant tSampler.

◆ tSampler_setRate()

void tSampler_setRate ( tSampler * const  ,
float  rate 
)
Parameters
samplerA pointer to the relevant tSampler.