code: public int frameSize() {
          switch (layerDescription) {
              case 3:
                  // Layer 1
                  return (12 * getBitRate() / getSampleRate() + (paddingBit ? 1 : 0)) * 4;
              case 2:
              case 1:
                  // Layer 2 and 3
                  if (audioVersionId == 3) {
                      // MPEG 1
                      return 144 * getBitRate() / getSampleRate() + (paddingBit ? 1 : 0);
                  } else {
                      // MPEG 2 or 2.5
                      return 72 * getBitRate() / getSampleRate() + (paddingBit ? 1 : 0);
                  }
              default:
                  // Unknown
                  return -1;
          }
      }
docs: Calculate the size of a MP3 frame for this header.
  
  @return size of the frame including the header