Dynamic function usage
This chapter explains how and when the SSRC functions are or can be used.
Define the number of samples to be used on input and output
Call the function SSRC_GetNrSamples
. Each integer multiple of the returned number of samples can be used.
Parent topic:Dynamic function usage
Allocate scratch memory
To calculate the required size of the scratch memory, call the SSRC_GetScratchSize
function. Allocate memory for the returned size.
Parent topic:Dynamic function usage
Initialize the SSRC instance
Call the SSRC_Init
function.
Parent topic:Dynamic function usage
Process samples
The SSRC_Process
function can now be called any number of times.
Parent topic:Dynamic function usage
Destroy the SSRC instance
When the processing is completed, the allocated memory for the instance and the scratch can be freed.
Parent topic:Dynamic function usage
Parent topic:Application programmers interface (API)