man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_SignalMerge_S16S_S16 (3MLIB)

Name

mlib_SignalMerge_S16S_S16 - merge

Synopsis

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

mlib_status mlib_SignalMerge_S16S_S16(mlib_s16 *dst, const mlib_s16 *ch0,
     const mlib_s16 *ch1, mlib_s32 n);

Description

The mlib_SignalMerge_S16S_S16() function merges two signal arrays to form a stereo signal array.

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.

ch0

Input signal array of Channel 0.

ch1

Input signal array of Channel 1.

n

Number of samples in the source signal arrays.

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

mlib_SignalMerge_F32S_F32(3MLIB), mlib_SignalSplit_F32_F32S(3MLIB), mlib_SignalSplit_S16_S16S(3MLIB), attributes(5)