Mpeg音频分析( 二 )

< nch; k++)//声道{fprintf(result, "声道:%d:\n", k + 1);for (int i = 0; i < SBLIMIT; i++)//子带三个比例因子{fprintf(result, "子带:%d:\t", i);for (int j = 0; j < 3; j++){fprintf(result, "%d\t", scalar[k][j][i]);}fprintf(result, "\n");}}}......transmission_pattern (scalar, scfsi, &frame);main_bit_allocation (smr, scfsi, bit_alloc, &adb, &frame, &glopts);//输出比特分配结果if (frameNum == spec_frameNum){fprintf(result, "比特分配结果\n");for (int k = 0; k < nch; k++)//声道{fprintf(result, "声道%d:\n", k + 1);for (int i = 0; i < SBLIMIT; i++)//每个子带有一个比特分配结果{fprintf(result, "子带%d:\t", i);fprintf(result, "%d\n", bit_alloc[k][i]);}}}......fclose(result);
结果分析
频带频率越高分配到的比特数越少,与实验原理一致