Exemple #1
0
        public Channel(int chNum)
        {
            this.chNum = chNum;

//JAVA TO C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
//ORIGINAL LINE: wndShapeHist = new bool[2][ATRAC3P_SUBBANDS];
            wndShapeHist = RectangularArrays.ReturnRectangularBoolArray(2, ATRAC3P_SUBBANDS);
//JAVA TO C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
//ORIGINAL LINE: gainDataHist = new AtracGainInfo[2][ATRAC3P_SUBBANDS];
            gainDataHist = RectangularArrays.ReturnRectangularAtracGainInfoArray(2, ATRAC3P_SUBBANDS);
//JAVA TO C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
//ORIGINAL LINE: tonesInfoHist = new WavesData[2][ATRAC3P_SUBBANDS];
            tonesInfoHist = RectangularArrays.ReturnRectangularWavesDataArray(2, ATRAC3P_SUBBANDS);
            for (int i = 0; i < 2; i++)
            {
                for (int sb = 0; sb < ATRAC3P_SUBBANDS; sb++)
                {
                    gainDataHist [i][sb] = new AtracGainInfo();
                    tonesInfoHist[i][sb] = new WavesData();
                }
            }

            wndShape      = wndShapeHist[0];
            wndShapePrev  = wndShapeHist[1];
            gainData      = gainDataHist[0];
            gainDataPrev  = gainDataHist[1];
            tonesInfo     = tonesInfoHist[0];
            tonesInfoPrev = tonesInfoHist[1];
        }