APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.media.sound

public Class SimpleSoundbank

extends Object
implements Soundbank
Class Inheritance
All Implemented Interfaces
javax.sound.midi.Soundbank
Imports
java.util.ArrayList, .Arrays, .List, javax.sound.midi.Instrument, .Patch, .Soundbank, .SoundbankResource

A simple soundbank that contains instruments and soundbankresources.
Author
Karl Helgason

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv List<Instrument>
pack-priv String
pack-priv List<SoundbankResource>
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public String
getDescription()

Implements javax.sound.midi.Soundbank.getDescription.

Obtains a textual description of the sound bank, suitable for display.

public Instrument
getInstrument(Patch patch)

Implements javax.sound.midi.Soundbank.getInstrument.

Obtains an Instrument from the given Patch.

public Instrument[]
getInstruments()

Implements javax.sound.midi.Soundbank.getInstruments.

Obtains a list of instruments contained in this sound bank.

public String
getName()

Implements javax.sound.midi.Soundbank.getName.

Obtains the name of the sound bank.

public SoundbankResource[]
getResources()

Implements javax.sound.midi.Soundbank.getResources.

Extracts a list of non-Instrument resources contained in the sound bank.

public String
getVendor()

Implements javax.sound.midi.Soundbank.getVendor.

Obtains a string naming the company that provides the sound bank.

public String
getVersion()

Implements javax.sound.midi.Soundbank.getVersion.

Obtains the version string for the sound bank.

public void
public void
public void
public void
setDescription(String description)

public void
public void
setVendor(String vendor)

public void
setVersion(String version)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
pack-priv String description
instrumentsback to summary
pack-priv List<Instrument> instruments
nameback to summary
pack-priv String name
resourcesback to summary
pack-priv List<SoundbankResource> resources
vendorback to summary
pack-priv String vendor
versionback to summary
pack-priv String version

Constructor Detail

SimpleSoundbankback to summary
public SimpleSoundbank()

Method Detail

addAllInstrumentsback to summary
public void addAllInstruments(Soundbank soundbank)
addInstrumentback to summary
public void addInstrument(Instrument resource)
addResourceback to summary
public void addResource(SoundbankResource resource)
getDescriptionback to summary
public String getDescription()

Implements javax.sound.midi.Soundbank.getDescription.

Doc from javax.sound.midi.Soundbank.getDescription.

Obtains a textual description of the sound bank, suitable for display.

Annotations
@Override
getInstrumentback to summary
public Instrument getInstrument(Patch patch)

Implements javax.sound.midi.Soundbank.getInstrument.

Doc from javax.sound.midi.Soundbank.getInstrument.

Obtains an Instrument from the given Patch.

Annotations
@Override
getInstrumentsback to summary
public Instrument[] getInstruments()

Implements javax.sound.midi.Soundbank.getInstruments.

Doc from javax.sound.midi.Soundbank.getInstruments.

Obtains a list of instruments contained in this sound bank.

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.sound.midi.Soundbank.getName.

Doc from javax.sound.midi.Soundbank.getName.

Obtains the name of the sound bank.

Annotations
@Override
getResourcesback to summary
public SoundbankResource[] getResources()

Implements javax.sound.midi.Soundbank.getResources.

Doc from javax.sound.midi.Soundbank.getResources.

Extracts a list of non-Instrument resources contained in the sound bank.

Annotations
@Override
getVendorback to summary
public String getVendor()

Implements javax.sound.midi.Soundbank.getVendor.

Doc from javax.sound.midi.Soundbank.getVendor.

Obtains a string naming the company that provides the sound bank.

Annotations
@Override
getVersionback to summary
public String getVersion()

Implements javax.sound.midi.Soundbank.getVersion.

Doc from javax.sound.midi.Soundbank.getVersion.

Obtains the version string for the sound bank.

Annotations
@Override
removeAllInstrumentsback to summary
public void removeAllInstruments(Soundbank soundbank)
removeInstrumentback to summary
public void removeInstrument(Instrument resource)
removeResourceback to summary
public void removeResource(SoundbankResource resource)
setDescriptionback to summary
public void setDescription(String description)
setNameback to summary
public void setName(String name)
setVendorback to summary
public void setVendor(String vendor)
setVersionback to summary
public void setVersion(String version)