001/* JOrbis 002 * Copyright (C) 2000 ymnk, JCraft,Inc. 003 * 004 * Written by: 2000 ymnk<ymnk@jcaft.com> 005 * 006 * Many thanks to 007 * Monty <monty@xiph.org> and 008 * The XIPHOPHORUS Company http://www.xiph.org/ . 009 * JOrbis has been based on their awesome works, Vorbis codec. 010 * 011 * This program is free software; you can redistribute it and/or 012 * modify it under the terms of the GNU Library General Public License 013 * as published by the Free Software Foundation; either version 2 of 014 * the License, or (at your option) any later version. 015 016 * This program is distributed in the hope that it will be useful, 017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 019 * GNU Library General Public License for more details. 020 * 021 * You should have received a copy of the GNU Library General Public 022 * License along with this program; if not, write to the Free Software 023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 024 */ 025 026package com.jcraft.jorbis; 027 028// psychoacoustic setup 029class PsyInfo{ 030 int athp; 031 int decayp; 032 int smoothp; 033 int noisefitp; 034 int noisefit_subblock; 035 float noisefit_threshdB; 036 037 float ath_att; 038 039 int tonemaskp; 040 float[] toneatt_125Hz=new float[5]; 041 float[] toneatt_250Hz=new float[5]; 042 float[] toneatt_500Hz=new float[5]; 043 float[] toneatt_1000Hz=new float[5]; 044 float[] toneatt_2000Hz=new float[5]; 045 float[] toneatt_4000Hz=new float[5]; 046 float[] toneatt_8000Hz=new float[5]; 047 048 int peakattp; 049 float[] peakatt_125Hz=new float[5]; 050 float[] peakatt_250Hz=new float[5]; 051 float[] peakatt_500Hz=new float[5]; 052 float[] peakatt_1000Hz=new float[5]; 053 float[] peakatt_2000Hz=new float[5]; 054 float[] peakatt_4000Hz=new float[5]; 055 float[] peakatt_8000Hz=new float[5]; 056 057 int noisemaskp; 058 float[] noiseatt_125Hz=new float[5]; 059 float[] noiseatt_250Hz=new float[5]; 060 float[] noiseatt_500Hz=new float[5]; 061 float[] noiseatt_1000Hz=new float[5]; 062 float[] noiseatt_2000Hz=new float[5]; 063 float[] noiseatt_4000Hz=new float[5]; 064 float[] noiseatt_8000Hz=new float[5]; 065 066 float max_curve_dB; 067 068 float attack_coeff; 069 float decay_coeff; 070 071 void free(){} 072}