cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalSineWave_F32(mlib_f32 *sine, void *state, mlib_s32 n);
The mlib_SignalSineWave_F32() 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:
|