1mlib_SignalEmphasize_S16_S1m6e_dSiaatL(i3bMLLIiBb)ramrlyibF_uSnicgtniaolnEsmphasize_S16_S16_Sat(3MLIB)
2
3
4
6 mlib_SignalEmphasize_S16_S16_Sat, mlib_SignalEmphasize_S16S_S16S_Sat,
7 mlib_SignalEmphasize_F32_F32, mlib_SignalEmphasize_F32S_F32S - signal
8 pre-emphasizing
9
11 cc [ flag... ] file... -lmlib [ library... ]
12 #include <mlib.h>
13
14 mlib_status mlib_SignalEmphasize_S16_S16_Sat(mlib_s16 *dst,
15 const mlib_s16 *src, void *filter, mlib_s32 n);
16
17
18 mlib_status mlib_SignalEmphasize_S16S_S16S_Sat(mlib_s16 *dst,
19 const mlib_s16 *src, void *filter, mlib_s32 n);
20
21
22 mlib_status mlib_SignalEmphasize_F32_F32(mlib_f32 *dst,
23 const mlib_f32 *src, void *filter, mlib_s32 n);
24
25
26 mlib_status mlib_SignalEmphasize_F32S_F32S(mlib_f32 *dst,
27 const mlib_f32 *src, void *filter, mlib_s32 n);
28
29
31 Each of these functions applies the preemphasizer to one signal packet
32 and updates the filter states.
33
34
35 For monaural signals, the following equation is used:
36
37 dst[i] = src[i] - alpha*src[i - 1]
38
39
40
41 where i = 0, 1, ..., (n - 1); src[-1] = 0.
42
43
44 For stereo signals, the following equation is used:
45
46 dst[2*i] = src[2*i] - alpha*src[2*(i - 1)]
47 dst[2*i + 1] = src[2*i + 1] - alpha*src[2*(i - 1) + 1]
48
49
50
51 where i = 0, 1, ..., (n - 1); src[-2] = src[-1] = 0.
52
54 Each of the functions takes the following arguments:
55
56 dst Destination signal array.
57
58
59 src Source signal array.
60
61
62 filter Internal filter structure.
63
64
65 n Number of samples in the source signal array.
66
67
69 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
70 returns MLIB_FAILURE.
71
73 See attributes(5) for descriptions of the following attributes:
74
75
76
77
78 ┌─────────────────────────────┬─────────────────────────────┐
79 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Committed │
82 ├─────────────────────────────┼─────────────────────────────┤
83 │MT-Level │MT-Safe │
84 └─────────────────────────────┴─────────────────────────────┘
85
87 mlib_SignalEmphasizeFree_S16_S16(3MLIB), mlib_SignalEmpha‐
88 sizeInit_S16_S16(3MLIB), attributes(5)
89
90
91
92SunOS 5.11 2 Marm2l0i0b7_SignalEmphasize_S16_S16_Sat(3MLIB)