Exemplo n.º 1
0
 public ALACSubframeInfo()
 {
     best = new ALACSubframe();
     lpc_ctx = new LpcContext[Alac.MAX_LPC_WINDOWS];
     for (int i = 0; i < Alac.MAX_LPC_WINDOWS; i++)
         lpc_ctx[i] = new LpcContext();
 }
Exemplo n.º 2
0
 public ALACFrame(int subframes_count)
 {
     subframes = new ALACSubframeInfo[subframes_count];
     for (int ch = 0; ch < subframes_count; ch++)
         subframes[ch] = new ALACSubframeInfo();
     current = new ALACSubframe();
 }
Exemplo n.º 3
0
 public void ChooseBestSubframe(int ch)
 {
     if (current.size >= subframes[ch].best.size)
         return;
     ALACSubframe tmp = subframes[ch].best;
     subframes[ch].best = current;
     current = tmp;
 }
Exemplo n.º 4
0
 public ALACFrame(int subframes_count)
 {
     subframes = new ALACSubframeInfo[subframes_count];
     for (int ch = 0; ch < subframes_count; ch++)
     {
         subframes[ch] = new ALACSubframeInfo();
     }
     current = new ALACSubframe();
 }
Exemplo n.º 5
0
 public ALACSubframeInfo()
 {
     best    = new ALACSubframe();
     sf      = new LpcSubframeInfo();
     lpc_ctx = new LpcContext[lpc.MAX_LPC_WINDOWS];
     for (int i = 0; i < lpc.MAX_LPC_WINDOWS; i++)
     {
         lpc_ctx[i] = new LpcContext();
     }
 }
Exemplo n.º 6
0
        public void ChooseBestSubframe(int ch)
        {
            if (current.size >= subframes[ch].best.size)
            {
                return;
            }
            ALACSubframe tmp = subframes[ch].best;

            subframes[ch].best = current;
            current            = tmp;
        }