1mlib_SignalSineWaveInit_S16m(e3dMiLaILBi)b Library Fumnlcitbi_oSnisgnalSineWaveInit_S16(3MLIB)
2
3
4

NAME

6       mlib_SignalSineWaveInit_S16 - sine wave generation
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_SignalSineWaveInit_S16(void **state,
13            mlib_s16 mag, mlib_f32 freq, mlib_f32 phase);
14
15

DESCRIPTION

17       The  mlib_SignalSineWaveInit_S16()  function  allocates  memory  for an
18       internal state structure and converts the parameters of the wave to  an
19       internal representation.
20

PARAMETERS

22       The function takes the following arguments:
23
24       state    Internal state structure.
25
26
27       mag      Magnitude of sine wave to be generated, in Q15 format.
28
29
30       freq     Angular  frequency  of the sine wave to be generated, measured
31                in radians per sample.
32
33
34       phase    Start phase of the sine wave  to  be  generated,  measured  in
35                radians.
36
37

RETURN VALUES

39       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
40       MLIB_FAILURE.
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Interface Stability          │Committed                    │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │MT-Safe                      │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       mlib_SignalSineWave_S16(3MLIB),     mlib_SignalSineWaveFree_S16(3MLIB),
58       attributes(5)
59
60
61
62SunOS 5.11                        2 Mar 2007mlib_SignalSineWaveInit_S16(3MLIB)
Impressum