5 #ifndef AMBIFORMAT_H_INCLUDED
6 #define AMBIFORMAT_H_INCLUDED
23 static inline float ambiFormat2Parm(
int fmt) {
return (
float)fmt/(NUM_FORMATS - 1); }
24 static inline int parm2AmbiFormat(
float x) {
return (
int)(x * (NUM_FORMATS - 1)); }
26 static void reformat(
float** ptr,
int inFormat,
int outFormat,
int order,
int sampleFrames);
29 static const int NUM_FORMATS = 2;
30 static const int NUM_COEFS = 4;
32 static const float coef[NUM_FORMATS][NUM_COEFS];
33 static const int chanNum[NUM_FORMATS][NUM_COEFS];