ГОСТ Р ИСО/МЭК 10373-6—2015
1
0
FILE «pointIlle-KULL;
FILE «input_U2-NULL;
FILE «poutput-NULL;
double m-0.0;
double mnun-C.O;
int length-0;
double val-0;
int poaval-0;
int negval-0;
double linj-0;
double t!in-0;
int aamples-O;
int out_x-0;
int length_Lotai»0;
int saJiiple_irti-0;
ml aampleend-Q;
int flag_cut-Q;
int sampleap-O;
int II-O;
If
Filter generic index
double Ы-0;
П
Filter parameters
double b2-0;
double bi-Q;
double b4-0;
double b^-Q;
double al-0;
double a
2
-
0
;
double aJ-C;
double a4-Q;
double aS-C;
double £recjl-0;
double lreq2-0;
double as[Ь]-(01;
double bs[i -( );
double tG-0;
double tlaat-O;
int lmesfcip-O;
double «voulput-m alloc (sizeot(double)«MAXSAMPLES);
double *toutpuL—№dl1
00
(aizeo£(double)*MAX_SAMPLES);
double «envelope-m alloc (si2eo£(double;«MAXSAMPLES);
double «vtilter-m allou (aizeol(double;«MAXSAMPLES);
double «tlilter-nid lloc (aizeo£ (double} «MAX_SAMPLES);
TIMES *timeap-(TIMES •)malloc(sizeor(TIMES)f;
TIMES *timesp2-(TIMES *>mailoc<ai2eo£(TIMES));
SHOOTREADER «shootreader2-(SHOOTREADER »!malloc(aizeof(SHOOTREADER>>;
1
£ (voutputJ-NULL
UU
toutput’-NULL ii envelope!-NULL
hi
vlilter!-NULL
hh
tllltet1-NULL
и
fittliresp!-NULL ьь tlmesp2!-NULL
uu
shootreader2!-NULL)
rnemset(voutput, 0, MAXSAMPLES) ;
rnemset.(’.output, D, MAXSAMPLES);
meio.set(envelope, 0, MAXJSAKPLES);
memset.(vlilter, 0, MAX_SAMPLES);
rnemset(tilIter, 0, MAXSAMPLES)
;
type-*axgv[lJ;
rate-atoi(*rgv[2]);
11 (type’.-’A’
hi
Lype!-’B’
a
Lype!-’V’j
fpuntt(stdout, "Wrong Type (A, В or VHBR))");
else
it
((type— ’A’ l| type— ’B’) a (xate!-l06
ль
xate!-212
uu
xa».e!-424 a
rate!-848))
£piintf(Stdout, "Wrong bit rate (lOfc, 212, 424, 848>~>;
88