1 7 8 package javax.sound.sampled; 9 10 11 125 public class ReverbType { 126 127 130 private String name; 131 132 135 private int earlyReflectionDelay; 136 137 140 private float earlyReflectionIntensity; 141 142 145 private int lateReflectionDelay; 146 147 150 private float lateReflectionIntensity; 151 152 155 private int decayTime; 156 157 158 168 protected ReverbType(String name, int earlyReflectionDelay, float earlyReflectionIntensity, int lateReflectionDelay, float lateReflectionIntensity, int decayTime) { 169 170 this.name = name; 171 this.earlyReflectionDelay = earlyReflectionDelay; 172 this.earlyReflectionIntensity = earlyReflectionIntensity; 173 this.lateReflectionDelay = lateReflectionDelay; 174 this.lateReflectionIntensity = lateReflectionIntensity; 175 this.decayTime = decayTime; 176 } 177 178 179 184 public String getName() { 185 return name; 186 } 187 188 189 195 public final int getEarlyReflectionDelay() { 196 return earlyReflectionDelay; 197 } 198 199 200 206 public final float getEarlyReflectionIntensity() { 207 return earlyReflectionIntensity; 208 } 209 210 211 217 public final int getLateReflectionDelay() { 218 return lateReflectionDelay; 219 } 220 221 222 228 public final float getLateReflectionIntensity() { 229 return lateReflectionIntensity; 230 } 231 232 233 239 public final int getDecayTime() { 240 return decayTime; 241 } 242 243 244 251 public final boolean equals(Object obj) { 252 return super.equals(obj); 253 } 254 255 256 259 public final int hashCode() { 260 return super.hashCode(); 261 } 262 263 264 271 public final String toString() { 272 273 return (name + ", early reflection delay " + earlyReflectionDelay + 276 " ns, early reflection intensity " + earlyReflectionIntensity + 277 " dB, late deflection delay " + lateReflectionDelay + 278 " ns, late reflection intensity " + lateReflectionIntensity + 279 " dB, decay time " + decayTime); 280 } 281 282 } | Popular Tags |