libcfe  0.12.1
some useful C-functions
transform_pcm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define transform_mono_to_stereo(s, c1, pl, pr)   transform_to_stereo(s, 1, NULL, NULL, c1, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)
 
#define transform_stereo_to_stereo(s, c1, c2, pl, pr)   transform_to_stereo(s, 2, c1, c2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)
 
#define transform_21_to_stereo(s, c1, c2, c3, pl, pr)   transform_to_stereo(s, 3, c1, c3, c2, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)
 
#define transform_40_to_stereo(s, c1, c2, c3, c4, pl, pr)   transform_to_stereo(s, 4, c1, c2, NULL, NULL, NULL, NULL, c3, c4, NULL, pl, pr)
 
#define transform_50_to_stereo(s, c1, c2, c3, c4, c5, pl, pr)   transform_to_stereo(s, 5, c1, c3, c2, NULL, NULL, NULL, c4, c5, NULL, pl, pr)
 
#define transform_51_to_stereo(s, c1, c2, c3, c4, c5, c6, pl, pr)   transform_to_stereo(s, 5, c1, c3, c2, NULL, NULL, NULL, c4, c5, c6, pl, pr)
 
#define transform_61_to_stereo(s, c1, c2, c3, c4, c5, c6, c7, pl, pr)   transform_to_stereo(s, 7, c1, c3, c2, c6, c4, c5, NULL, NULL, c7, pl, pr)
 
#define transform_71_to_stereo(s, c1, c2, c3, c4, c5, c6, c7, c8, pl, pr)   transform_to_stereo(s, 8, c1, c3, c2, NULL, c4, c5, c6, c7, c8, pl, pr)
 

Functions

int transform_to_stereo (long int samples, int channels, float *pcm_fl, float *pcm_fr, float *pcm_fc, float *pcm_rc, float *pcm_sl, float *pcm_sr, float *pcm_rl, float *pcm_rr, float *pcm_lfe, signed short int *pcmout_l, signed short int *pcmout_r)
 
signed short int pcm_float_to_int (float)
 
signed short int pcm_int16_to_int (int)
 

Macro Definition Documentation

◆ transform_21_to_stereo

#define transform_21_to_stereo (   s,
  c1,
  c2,
  c3,
  pl,
  pr 
)    transform_to_stereo(s, 3, c1, c3, c2, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)

Definition at line 8 of file transform_pcm.h.

◆ transform_40_to_stereo

#define transform_40_to_stereo (   s,
  c1,
  c2,
  c3,
  c4,
  pl,
  pr 
)    transform_to_stereo(s, 4, c1, c2, NULL, NULL, NULL, NULL, c3, c4, NULL, pl, pr)

Definition at line 10 of file transform_pcm.h.

◆ transform_50_to_stereo

#define transform_50_to_stereo (   s,
  c1,
  c2,
  c3,
  c4,
  c5,
  pl,
  pr 
)    transform_to_stereo(s, 5, c1, c3, c2, NULL, NULL, NULL, c4, c5, NULL, pl, pr)

Definition at line 12 of file transform_pcm.h.

◆ transform_51_to_stereo

#define transform_51_to_stereo (   s,
  c1,
  c2,
  c3,
  c4,
  c5,
  c6,
  pl,
  pr 
)    transform_to_stereo(s, 5, c1, c3, c2, NULL, NULL, NULL, c4, c5, c6, pl, pr)

Definition at line 14 of file transform_pcm.h.

◆ transform_61_to_stereo

#define transform_61_to_stereo (   s,
  c1,
  c2,
  c3,
  c4,
  c5,
  c6,
  c7,
  pl,
  pr 
)    transform_to_stereo(s, 7, c1, c3, c2, c6, c4, c5, NULL, NULL, c7, pl, pr)

Definition at line 16 of file transform_pcm.h.

◆ transform_71_to_stereo

#define transform_71_to_stereo (   s,
  c1,
  c2,
  c3,
  c4,
  c5,
  c6,
  c7,
  c8,
  pl,
  pr 
)    transform_to_stereo(s, 8, c1, c3, c2, NULL, c4, c5, c6, c7, c8, pl, pr)

Definition at line 18 of file transform_pcm.h.

◆ transform_mono_to_stereo

#define transform_mono_to_stereo (   s,
  c1,
  pl,
  pr 
)    transform_to_stereo(s, 1, NULL, NULL, c1, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)

Definition at line 4 of file transform_pcm.h.

◆ transform_stereo_to_stereo

#define transform_stereo_to_stereo (   s,
  c1,
  c2,
  pl,
  pr 
)    transform_to_stereo(s, 2, c1, c2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, pl, pr)

Definition at line 6 of file transform_pcm.h.

Function Documentation

◆ pcm_float_to_int()

signed short int pcm_float_to_int ( float  )
inline
Todo:
add description

Definition at line 17 of file transform_pcm.c.

Here is the caller graph for this function:

◆ pcm_int16_to_int()

signed short int pcm_int16_to_int ( int  )
inline
Todo:
add description

Definition at line 22 of file transform_pcm.c.

◆ transform_to_stereo()

int transform_to_stereo ( long int  samples,
int  channels,
float *  pcm_fl,
float *  pcm_fr,
float *  pcm_fc,
float *  pcm_rc,
float *  pcm_sl,
float *  pcm_sr,
float *  pcm_rl,
float *  pcm_rr,
float *  pcm_lfe,
signed short int *  pcmout_l,
signed short int *  pcmout_r 
)
Todo:
add description

Definition at line 44 of file transform_pcm.c.

Here is the call graph for this function: