ГОСТ Р 56047—2014
InTotaINMRb %g“
•\nWinModDiff1b: %g"
’InADBb: %g*
nnEHSb: %g*
•\nAvgModDiff1b: %g’
*1nAvgModDiff2b %g"
*\nRmsNoiseLoudb: %g*
TnMFPDb: %g"
*\nRelDistFramesb: %g"
*\nDI: %g“
*1nODG: %g\n’.
filetest, count. processed.BandwidthRefb.
processed.BandwidthTestb. processed.TotalNWRb.
processed.WinModDiff1b. processed.ADBb.
processed.EHSb. processed.AvgModDifflb.
processed.AvgModDiff2b.
processed.RmsNoiseLoudb. processed.MFPDb,
processed.RelDistFramesb,
oveRet.DI. oveRetODG);
fctose(res);
}
)
if(numchref == 2) {
if (fseek(fpref. HANN’bitsampleref/8. SEEK_CUR) == -1)
fa!aterr("err %s". strerror(errno));
if (fseek(fptest. HANN’bitsamptetesL’8. SEEK.CUR) == -1)
fa!aterr<"efr %s*. strerror(errno));
#ifdef DATABOUND_BE
#undef DATABOUND_ONE
{
inti = 0. flag = 0. f1,f2;
long dataref.datatest. br1, br2:
dataref = ftel(fpref);
datatest = ftell(fptest);
while(1) {
br1 = ftell(fpref);
br2 = ftell(fptest);
f1 = GetStereoFrame(fpref. (signed int *)ch1ref.
(signed int *)ch2ref. bitsampleref/8. HANN);
f2 = GetStereoFrame(fptest. (signed int ’>ch1test.
(signed int *)ch2test. bitsampletest/B. HANN):
if(f1 && f2) {
totalframes++;
if(boundary(ch1ref. chltest. ch2ref. ch2test. HANN) && Iflag) {
boundbe.begin = totalframes:
flag = 1;
}
}
else {
fseek(fptest. br1. SEEK_SET):
fseek(fpref, br2. SEEK_SET);
break;
>
>
fseek(fptest. -HANN’bitsampletest/8. SEEK_CUR);
fseek(fpref. -HANN*bitsampleref/8. SEEK_CUR):
\vhile(i<totalframes) {
GetStereoFrame(fpref. (signed int *)ch1ref,
(s»gned int *)ch2ref. bitsampleref/8. HANN);
57