man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_SignalFIR_F32S_F32S (3MLIB)

Name

mlib_SignalFIR_F32S_F32S - Finite Impulse Response (FIR) filtering

Synopsis

cc [ flag... ] file... –lmlib [ library... ]
#include <mlib.h>

mlib_status mlib_SignalFIR_F32S_F32S(mlib_f32 *dst, const mlib_f32 *src,
     void *filter, mlib_s32 n);

Description

The mlib_SignalFIR_F32S_F32S() function applies the FIR filter to one signal packet and updates the filter state.

Parameters

The function takes the following arguments:

dst

Output stereo signal array . . dst[2*i] contains Channel 0, and dst[2*i+1] contains Channel 1.

src

Input stereo signal array. src[2*i] contains Channel 0, and src[2*i+1] contains Channel 1.

filter

Internal filter structure.

n

Number of samples in the input signal array.

Return Values

The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See also

attributes(5)