/* * Copyright (C) 2011 in-somnia * * This file is part of JAAD. * * JAAD is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 3 of the * License, or (at your option) any later version. * * JAAD is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. * If not, see <http://www.gnu.org/licenses/>. */ package net.sourceforge.jaad.aac.syntax; import java.util.logging.Logger; public interface Constants { Logger LOGGER = Logger.getLogger("jaad"); //for debugging int MAX_ELEMENTS = 16; int BYTE_MASK = 0xFF; int MIN_INPUT_SIZE = 768; //6144 bits/channel //frame length int WINDOW_LEN_LONG = 1024; int WINDOW_LEN_SHORT = WINDOW_LEN_LONG/8; int WINDOW_SMALL_LEN_LONG = 960; int WINDOW_SMALL_LEN_SHORT = WINDOW_SMALL_LEN_LONG/8; //element types int ELEMENT_SCE = 0; int ELEMENT_CPE = 1; int ELEMENT_CCE = 2; int ELEMENT_LFE = 3; int ELEMENT_DSE = 4; int ELEMENT_PCE = 5; int ELEMENT_FIL = 6; int ELEMENT_END = 7; //maximum numbers int MAX_WINDOW_COUNT = 8; int MAX_WINDOW_GROUP_COUNT = MAX_WINDOW_COUNT; int MAX_LTP_SFB = 40; int MAX_SECTIONS = 120; int MAX_MS_MASK = 128; float SQRT2 = 1.414213562f; }