javazoom.jl.decoder.LayerIIIDecoder.reorder C# (CSharp) Method

reorder() static private method

Loads the data for the reorder
static private reorder ( int scalefac_band ) : int[]
scalefac_band int
return int[]
        internal static int[] reorder(int[] scalefac_band)
        {
            // SZD: converted from LAME
            int j = 0;
            int[] ix = new int[576];
            for (int sfb = 0; sfb < 13; sfb++)
            {
                int start = scalefac_band[sfb];
                int end = scalefac_band[sfb + 1];
                for (int window = 0; window < 3; window++)
                    for (int i = start; i < end; i++)
                        ix[3 * i + window] = j++;
            }
            return ix;
        }

Same methods

LayerIIIDecoder::reorder ( float xr, int ch, int gr ) : void