AudioSynthesizer is a Synthesizer
which renders it's output audio into SourceDataLine
or AudioInputStream.
MidiSystem#getSynthesizer, Synthesizer
| Modifier and Type | Method and Description |
|---|---|
| public AudioFormat | Returns: current audio data formatObtains the current format (encoding, sample rate, number of channels, etc.) of the synthesizer audio data. |
| public AudioSynthesizerPropertyInfo[] | Returns: an array ofAudioSynthesizerPropertyInfo objects
describing possible properties. This array may be an empty array if
no properties are required.a proposed list of tag/value pairs that will be sent on open. info)Gets information about the possible properties for the synthesizer. |
| public void | open(SourceDataLine
which line, Map<String, Object> AudioSynthesizer writes output audio into.
If line is null, then line from system default mixer is used.a info)Map<String,Object> object containing
properties for additional configuration supported by synthesizer.
If info is null then default settings are used.Opens the synthesizer and starts rendering audio into
|
| public AudioInputStream | openStream(AudioFormat
specifies the targetFormat, Map<String, Object> AudioFormat
used in returned AudioInputStream.a info)Map<String,Object> object containing
properties for additional configuration supported by synthesizer.
If info is null then default settings are used.Opens the synthesizer and renders audio into returned
|
| getFormat | back to summary |
|---|---|
| public AudioFormat getFormat() Obtains the current format (encoding, sample rate, number of channels, etc.) of the synthesizer audio data. If the synthesizer is not open and has never been opened, it returns the default format.
| |
| getPropertyInfo | back to summary |
|---|---|
| public AudioSynthesizerPropertyInfo[] getPropertyInfo(Map<String, Object> info) Gets information about the possible properties for the synthesizer.
| |
| open | back to summary |
|---|---|
| public void open(SourceDataLine line, Map<String, Object> info) throws MidiUnavailableException Opens the synthesizer and starts rendering audio into
An application opening a synthesizer explicitly with this call
has to close the synthesizer by calling Note that some synthesizers, once closed, cannot be reopened.
Attempts to reopen such a synthesizer will always result in
a
| |
| openStream | back to summary |
|---|---|
| public AudioInputStream openStream(AudioFormat targetFormat, Map<String, Object> info) throws MidiUnavailableException Opens the synthesizer and renders audio into returned
An application opening a synthesizer explicitly with this call
has to close the synthesizer by calling Note that some synthesizers, once closed, cannot be reopened.
Attempts to reopen such a synthesizer will always result in
a
| |