01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.sound.sampled;
19:
20: public class ReverbType {
21:
22: protected ReverbType(String name, int earlyReflectionDelay,
23: float earlyReflectionIntensity, int lateReflectionDelay,
24: float lateReflectionIntensity, int decayTime) {
25: this .name = name;
26: this .earlyReflectionDelay = earlyReflectionDelay;
27: this .earlyReflectionIntensity = earlyReflectionIntensity;
28: this .lateReflectionDelay = lateReflectionDelay;
29: this .lateReflectionIntensity = lateReflectionIntensity;
30: this .decayTime = decayTime;
31: }
32:
33: private String name;
34:
35: private int earlyReflectionDelay;
36:
37: private float earlyReflectionIntensity;
38:
39: private int lateReflectionDelay;
40:
41: private float lateReflectionIntensity;
42:
43: private int decayTime;
44:
45: public String getName() {
46: return this .name;
47: }
48:
49: public final int getEarlyReflectionDelay() {
50: return this .earlyReflectionDelay;
51: }
52:
53: public final float getEarlyReflectionIntensity() {
54: return this .earlyReflectionIntensity;
55: }
56:
57: public final int getLateReflectionDelay() {
58: return this .lateReflectionDelay;
59: }
60:
61: public final float getLateReflectionIntensity() {
62: return this .lateReflectionIntensity;
63: }
64:
65: public final int getDecayTime() {
66: return this .decayTime;
67: }
68:
69: public final boolean equals(Object obj) {
70: return this == obj;
71: }
72:
73: public final int hashCode() {
74: return toString().hashCode();
75: }
76:
77: public final String toString() {
78: return name
79: + ", early reflection delay " + earlyReflectionDelay //$NON-NLS-1$
80: + " ns, early reflection intensity " + earlyReflectionIntensity //$NON-NLS-1$
81: + " dB, late deflection delay " + lateReflectionDelay //$NON-NLS-1$
82: + " ns, late reflection intensity " + lateReflectionIntensity //$NON-NLS-1$
83: + " dB, decay time " + decayTime; //$NON-NLS-1$
84: }
85: }
|