66 */
67
68 public abstract class SoundbankResource {
69
70
71 /**
72 * The sound bank that contains the <code>SoundbankResources</code>
73 */
74 private final Soundbank soundBank;
75
76
77 /**
78 * The name of the <code>SoundbankResource</code>
79 */
80 private final String name;
81
82
83 /**
84 * The class used to represent the sample's data.
85 */
86 private final Class dataClass;
87
88
89 /**
90 * The wavetable index.
91 */
92 //private final int index;
93
94
95 /**
96 * Constructs a new <code>SoundbankResource</code> from the given sound bank
97 * and wavetable index. (Setting the <code>SoundbankResource's</code> name,
98 * sampled audio data, and instruments is a subclass responsibility.)
99 * @param soundBank the sound bank containing this <code>SoundbankResource</code>
100 * @param name the name of the sample
101 * @param dataClass the class used to represent the sample's data
102 *
103 * @see #getSoundbank
104 * @see #getName
105 * @see #getDataClass
106 * @see #getData
|
66 */
67
68 public abstract class SoundbankResource {
69
70
71 /**
72 * The sound bank that contains the <code>SoundbankResources</code>
73 */
74 private final Soundbank soundBank;
75
76
77 /**
78 * The name of the <code>SoundbankResource</code>
79 */
80 private final String name;
81
82
83 /**
84 * The class used to represent the sample's data.
85 */
86 private final Class<?> dataClass;
87
88
89 /**
90 * The wavetable index.
91 */
92 //private final int index;
93
94
95 /**
96 * Constructs a new <code>SoundbankResource</code> from the given sound bank
97 * and wavetable index. (Setting the <code>SoundbankResource's</code> name,
98 * sampled audio data, and instruments is a subclass responsibility.)
99 * @param soundBank the sound bank containing this <code>SoundbankResource</code>
100 * @param name the name of the sample
101 * @param dataClass the class used to represent the sample's data
102 *
103 * @see #getSoundbank
104 * @see #getName
105 * @see #getDataClass
106 * @see #getData
|