| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sound.midi.SoundbankResource
public abstract class SoundbankResource
A SoundbankResource represents any audio resource stored
 in a Soundbank
Patch
 which specifies the MIDI program and bank by which it may be 
 referenced in MIDI messages.  Instrument information may be
 stored in InstrumentSynthesizerAudioInputStreamSequence
 Synthesizers that use wavetable synthesis or related
 techniques play back the audio in a sample when
 synthesizing notes, often when emulating the real-world instrument that 
 was originally recorded.  However, there is not necessarily a one-to-one
 correspondence between the Instruments and samples
 in a Soundbank.  A single Instrument can use 
 multiple SoundbankResources (typically for notes of dissimilar pitch or 
 brightness).  Also, more than one Instrument can use the same 
 sample.
| Constructor Summary | |
|---|---|
| protected  | SoundbankResource(Soundbank soundBank,
                  String name,
                  Class<?> dataClass)Constructs a new SoundbankResourcefrom the given sound bank 
 and wavetable index. | 
| Method Summary | |
|---|---|
| abstract  Object | getData()Obtains the sampled audio that is stored in this SoundbankResource. | 
|  Class<?> | getDataClass()Obtains the class used by this sample to represent its data. | 
|  String | getName()Obtains the name of the resource. | 
|  Soundbank | getSoundbank()Obtains the sound bank that contains this SoundbankResource. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected SoundbankResource(Soundbank soundBank,
                            String name,
                            Class<?> dataClass)
SoundbankResource from the given sound bank 
 and wavetable index.  (Setting the SoundbankResource's name, 
 sampled audio data, and instruments is a subclass responsibility.)
soundBank - the sound bank containing this SoundbankResourcename - the name of the sampledataClass - the class used to represent the sample's datagetSoundbank(), 
getName(), 
getDataClass(), 
getData()| Method Detail | 
|---|
public Soundbank getSoundbank()
SoundbankResource.
SoundbankResource is storedpublic String getName()
public Class<?> getDataClass()
getData will be of this
 class.  If this SoundbankResource object does not support
 direct access to its data, returns null.
public abstract Object getData()
SoundbankResource.  
 The type of object returned depends on the implementation of the 
 concrete class, and may be queried using getDataClass.
getDataClass()| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.