< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/AudioSynthesizer.java

Print this page

        

*** 20,32 **** --- 20,34 ---- * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ + package com.sun.media.sound; import java.util.Map; + import javax.sound.midi.MidiUnavailableException; import javax.sound.midi.Synthesizer; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.SourceDataLine;
*** 51,72 **** * the default format. * * @return current audio data format * @see AudioFormat */ ! public AudioFormat getFormat(); /** * Gets information about the possible properties for the synthesizer. * * @param info a proposed list of tag/value pairs that will be sent on open. * @return an array of {@code AudioSynthesizerPropertyInfo} objects * describing possible properties. This array may be an empty array if * no properties are required. */ ! public AudioSynthesizerPropertyInfo[] getPropertyInfo( ! Map<String, Object> info); /** * Opens the synthesizer and starts rendering audio into * {@code SourceDataLine}. * --- 53,73 ---- * the default format. * * @return current audio data format * @see AudioFormat */ ! AudioFormat getFormat(); /** * Gets information about the possible properties for the synthesizer. * * @param info a proposed list of tag/value pairs that will be sent on open. * @return an array of {@code AudioSynthesizerPropertyInfo} objects * describing possible properties. This array may be an empty array if * no properties are required. */ ! AudioSynthesizerPropertyInfo[] getPropertyInfo(Map<String, Object> info); /** * Opens the synthesizer and starts rendering audio into * {@code SourceDataLine}. *
*** 91,101 **** * opened due to security restrictions. * * @see #close * @see #isOpen */ ! public void open(SourceDataLine line, Map<String, Object> info) throws MidiUnavailableException; /** * Opens the synthesizer and renders audio into returned * {@code AudioInputStream}. --- 92,102 ---- * opened due to security restrictions. * * @see #close * @see #isOpen */ ! void open(SourceDataLine line, Map<String, Object> info) throws MidiUnavailableException; /** * Opens the synthesizer and renders audio into returned * {@code AudioInputStream}.
*** 121,128 **** * opened due to security restrictions. * * @see #close * @see #isOpen */ ! public AudioInputStream openStream(AudioFormat targetFormat, ! Map<String, Object> info) throws MidiUnavailableException; } --- 122,130 ---- * opened due to security restrictions. * * @see #close * @see #isOpen */ ! AudioInputStream openStream(AudioFormat targetFormat, ! Map<String, Object> info) ! throws MidiUnavailableException; }
< prev index next >