cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalSineWave_S16(mlib_s16 *sine, void *state, mlib_s32 n);
The mlib_SignalSineWave_S16() function generates one packet of sine wave and updates the internal state.
The function takes the following arguments:
Generated sine wave array.
Internal state structure.
Length of the generated sine wave array in number of samples.
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_SignalSineWaveFree_S16(3MLIB), mlib_SignalSineWaveInit_S16(3MLIB), attributes(5)