Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e4559fae
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e4559fae
编写于
8月 06, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8022174: Fix doclint warnings in javax.sound
8022404: Fix doclint issues in java.applet Reviewed-by: prr
上级
e5e0ac84
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
58 addition
and
34 deletion
+58
-34
src/share/classes/java/applet/AppletContext.java
src/share/classes/java/applet/AppletContext.java
+3
-3
src/share/classes/javax/sound/midi/MetaMessage.java
src/share/classes/javax/sound/midi/MetaMessage.java
+1
-1
src/share/classes/javax/sound/midi/MidiDevice.java
src/share/classes/javax/sound/midi/MidiDevice.java
+3
-3
src/share/classes/javax/sound/midi/MidiDeviceReceiver.java
src/share/classes/javax/sound/midi/MidiDeviceReceiver.java
+4
-2
src/share/classes/javax/sound/midi/MidiDeviceTransmitter.java
...share/classes/javax/sound/midi/MidiDeviceTransmitter.java
+4
-2
src/share/classes/javax/sound/midi/MidiFileFormat.java
src/share/classes/javax/sound/midi/MidiFileFormat.java
+2
-1
src/share/classes/javax/sound/midi/MidiMessage.java
src/share/classes/javax/sound/midi/MidiMessage.java
+6
-2
src/share/classes/javax/sound/midi/MidiSystem.java
src/share/classes/javax/sound/midi/MidiSystem.java
+4
-1
src/share/classes/javax/sound/midi/ShortMessage.java
src/share/classes/javax/sound/midi/ShortMessage.java
+6
-5
src/share/classes/javax/sound/midi/Synthesizer.java
src/share/classes/javax/sound/midi/Synthesizer.java
+5
-5
src/share/classes/javax/sound/midi/SysexMessage.java
src/share/classes/javax/sound/midi/SysexMessage.java
+2
-1
src/share/classes/javax/sound/midi/Track.java
src/share/classes/javax/sound/midi/Track.java
+3
-2
src/share/classes/javax/sound/sampled/AudioFileFormat.java
src/share/classes/javax/sound/sampled/AudioFileFormat.java
+2
-1
src/share/classes/javax/sound/sampled/AudioFormat.java
src/share/classes/javax/sound/sampled/AudioFormat.java
+2
-1
src/share/classes/javax/sound/sampled/AudioSystem.java
src/share/classes/javax/sound/sampled/AudioSystem.java
+2
-1
src/share/classes/javax/sound/sampled/BooleanControl.java
src/share/classes/javax/sound/sampled/BooleanControl.java
+2
-1
src/share/classes/javax/sound/sampled/Mixer.java
src/share/classes/javax/sound/sampled/Mixer.java
+3
-1
src/share/classes/javax/sound/sampled/spi/FormatConversionProvider.java
...ses/javax/sound/sampled/spi/FormatConversionProvider.java
+4
-1
未找到文件。
src/share/classes/java/applet/AppletContext.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1995, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -56,7 +56,7 @@ public interface AppletContext {
...
@@ -56,7 +56,7 @@ public interface AppletContext {
/**
/**
* Returns an <code>Image</code> object that can then be painted on
* Returns an <code>Image</code> object that can then be painted on
* the screen. The <code>url</code> argument
<code> </code>
that is
* the screen. The <code>url</code> argument
that is
* passed as an argument must specify an absolute URL.
* passed as an argument must specify an absolute URL.
* <p>
* <p>
* This method always returns immediately, whether or not the image
* This method always returns immediately, whether or not the image
...
@@ -157,7 +157,7 @@ public interface AppletContext {
...
@@ -157,7 +157,7 @@ public interface AppletContext {
* @param stream stream to be associated with the specified key. If this
* @param stream stream to be associated with the specified key. If this
* parameter is <code>null</code>, the specified key is removed
* parameter is <code>null</code>, the specified key is removed
* in this applet context.
* in this applet context.
* @throws
<code>IOException</code>
if the stream size exceeds a certain
* @throws
IOException
if the stream size exceeds a certain
* size limit. Size limit is decided by the implementor of this
* size limit. Size limit is decided by the implementor of this
* interface.
* interface.
* @since 1.4
* @since 1.4
...
...
src/share/classes/javax/sound/midi/MetaMessage.java
浏览文件 @
e4559fae
...
@@ -149,7 +149,7 @@ public class MetaMessage extends MidiMessage {
...
@@ -149,7 +149,7 @@ public class MetaMessage extends MidiMessage {
* @param data the data bytes in the MIDI message
* @param data the data bytes in the MIDI message
* @param length the number of bytes in the <code>data</code>
* @param length the number of bytes in the <code>data</code>
* byte array
* byte array
* @throws
<code>InvalidMidiDataException</code>
if the
* @throws
InvalidMidiDataException
if the
* parameter values do not specify a valid MIDI meta message
* parameter values do not specify a valid MIDI meta message
*/
*/
public
void
setMessage
(
int
type
,
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
public
void
setMessage
(
int
type
,
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
...
...
src/share/classes/javax/sound/midi/MidiDevice.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -86,13 +86,13 @@ import java.util.List;
...
@@ -86,13 +86,13 @@ import java.util.List;
* To detect if a MidiDevice represents a hardware MIDI port, the
* To detect if a MidiDevice represents a hardware MIDI port, the
* following programming technique can be used:
* following programming technique can be used:
*
*
* <pre>
* <pre>
{@code
* MidiDevice device = ...;
* MidiDevice device = ...;
* if ( ! (device instanceof Sequencer) && ! (device instanceof Synthesizer)) {
* if ( ! (device instanceof Sequencer) && ! (device instanceof Synthesizer)) {
* // we're now sure that device represents a MIDI port
* // we're now sure that device represents a MIDI port
* // ...
* // ...
* }
* }
* </pre>
*
}
</pre>
*
*
* <p>
* <p>
* A <code>MidiDevice</code> includes a <code>{@link MidiDevice.Info}</code> object
* A <code>MidiDevice</code> includes a <code>{@link MidiDevice.Info}</code> object
...
...
src/share/classes/javax/sound/midi/MidiDeviceReceiver.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -33,7 +33,9 @@ package javax.sound.midi;
...
@@ -33,7 +33,9 @@ package javax.sound.midi;
* @since 1.7
* @since 1.7
*/
*/
public
interface
MidiDeviceReceiver
extends
Receiver
{
public
interface
MidiDeviceReceiver
extends
Receiver
{
/** Obtains a MidiDevice object which is an owner of this Receiver.
/**
* Obtains a MidiDevice object which is an owner of this Receiver.
* @return a MidiDevice object which is an owner of this Receiver
*/
*/
public
MidiDevice
getMidiDevice
();
public
MidiDevice
getMidiDevice
();
}
}
src/share/classes/javax/sound/midi/MidiDeviceTransmitter.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -35,7 +35,9 @@ package javax.sound.midi;
...
@@ -35,7 +35,9 @@ package javax.sound.midi;
*/
*/
public
interface
MidiDeviceTransmitter
extends
Transmitter
{
public
interface
MidiDeviceTransmitter
extends
Transmitter
{
/** Obtains a MidiDevice object which is an owner of this Transmitter.
/**
* Obtains a MidiDevice object which is an owner of this Transmitter.
* @return a MidiDevice object which is an owner of this Transmitter
*/
*/
public
MidiDevice
getMidiDevice
();
public
MidiDevice
getMidiDevice
();
}
}
src/share/classes/javax/sound/midi/MidiFileFormat.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -50,6 +50,7 @@ import java.util.Map;
...
@@ -50,6 +50,7 @@ import java.util.Map;
* be used in implementations:
* be used in implementations:
*
*
* <table border=1>
* <table border=1>
<caption>MIDI File Format Properties</caption>
* <tr>
* <tr>
* <th>Property key</th>
* <th>Property key</th>
* <th>Value type</th>
* <th>Value type</th>
...
...
src/share/classes/javax/sound/midi/MidiMessage.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1998, 20
02
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -55,7 +55,7 @@ package javax.sound.midi;
...
@@ -55,7 +55,7 @@ package javax.sound.midi;
* processing MIDI data that originated outside Java Sound and now
* processing MIDI data that originated outside Java Sound and now
* is encoded as signed bytes, the bytes can
* is encoded as signed bytes, the bytes can
* can be converted to integers using this conversion:
* can be converted to integers using this conversion:
* <center>
<code>int i = (int)(byte & 0xFF)</code>
</center>
* <center>
{@code int i = (int)(byte & 0xFF)}
</center>
* <p>
* <p>
* If you simply need to pass a known MIDI byte value as a method parameter,
* If you simply need to pass a known MIDI byte value as a method parameter,
* it can be expressed directly as an integer, using (for example) decimal or
* it can be expressed directly as an integer, using (for example) decimal or
...
@@ -118,6 +118,10 @@ public abstract class MidiMessage implements Cloneable {
...
@@ -118,6 +118,10 @@ public abstract class MidiMessage implements Cloneable {
* method is called by concrete subclasses, which should
* method is called by concrete subclasses, which should
* ensure that the data array specifies a complete, valid MIDI
* ensure that the data array specifies a complete, valid MIDI
* message.
* message.
*
* @param data the data bytes in the MIDI message
* @param length the number of bytes in the data byte array
* @throws InvalidMidiDataException if the parameter values do not specify a valid MIDI meta message
*/
*/
protected
void
setMessage
(
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
protected
void
setMessage
(
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
if
(
length
<
0
||
(
length
>
0
&&
length
>
data
.
length
))
{
if
(
length
<
0
||
(
length
>
0
&&
length
>
data
.
length
))
{
...
...
src/share/classes/javax/sound/midi/MidiSystem.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -80,6 +80,7 @@ import com.sun.media.sound.MidiDeviceTransmitterEnvelope;
...
@@ -80,6 +80,7 @@ import com.sun.media.sound.MidiDeviceTransmitterEnvelope;
* consider them:
* consider them:
*
*
* <table border=0>
* <table border=0>
* <caption>MIDI System Property Keys</caption>
* <tr>
* <tr>
* <th>Property Key</th>
* <th>Property Key</th>
* <th>Interface</th>
* <th>Interface</th>
...
@@ -425,6 +426,8 @@ public class MidiSystem {
...
@@ -425,6 +426,8 @@ public class MidiSystem {
* it is used to identify the default sequencer.
* it is used to identify the default sequencer.
* For details, refer to the {@link MidiSystem class description}.
* For details, refer to the {@link MidiSystem class description}.
*
*
* @param connected whether or not the returned {@code Sequencer}
* is connected to the default {@code Synthesizer}
* @return the default sequencer
* @return the default sequencer
* @throws MidiUnavailableException if the sequencer is not
* @throws MidiUnavailableException if the sequencer is not
* available due to resource restrictions,
* available due to resource restrictions,
...
...
src/share/classes/javax/sound/midi/ShortMessage.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1998, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -283,7 +283,7 @@ public class ShortMessage extends MidiMessage {
...
@@ -283,7 +283,7 @@ public class ShortMessage extends MidiMessage {
/**
/**
* Sets the parameters for a MIDI message that takes no data bytes.
* Sets the parameters for a MIDI message that takes no data bytes.
* @param status the MIDI status byte
* @param status the MIDI status byte
* @throws
<code>InvalidMidiDataException</code>
if <code>status</code> does not
* @throws
InvalidMidiDataException
if <code>status</code> does not
* specify a valid MIDI status byte for a message that requires no data bytes.
* specify a valid MIDI status byte for a message that requires no data bytes.
* @see #setMessage(int, int, int)
* @see #setMessage(int, int, int)
* @see #setMessage(int, int, int, int)
* @see #setMessage(int, int, int, int)
...
@@ -307,7 +307,7 @@ public class ShortMessage extends MidiMessage {
...
@@ -307,7 +307,7 @@ public class ShortMessage extends MidiMessage {
* @param status the MIDI status byte
* @param status the MIDI status byte
* @param data1 the first data byte
* @param data1 the first data byte
* @param data2 the second data byte
* @param data2 the second data byte
* @throws
<code>InvalidMidiDataException</code>
if the
* @throws
InvalidMidiDataException
if the
* the status byte, or all data bytes belonging to the message, do
* the status byte, or all data bytes belonging to the message, do
* not specify a valid MIDI message.
* not specify a valid MIDI message.
* @see #setMessage(int, int, int, int)
* @see #setMessage(int, int, int, int)
...
@@ -357,7 +357,7 @@ public class ShortMessage extends MidiMessage {
...
@@ -357,7 +357,7 @@ public class ShortMessage extends MidiMessage {
* @param channel the channel associated with the message
* @param channel the channel associated with the message
* @param data1 the first data byte
* @param data1 the first data byte
* @param data2 the second data byte
* @param data2 the second data byte
* @throws
<code>InvalidMidiDataException</code>
if the
* @throws
InvalidMidiDataException
if the
* status byte or all data bytes belonging to the message, do
* status byte or all data bytes belonging to the message, do
* not specify a valid MIDI message
* not specify a valid MIDI message
*
*
...
@@ -397,6 +397,7 @@ public class ShortMessage extends MidiMessage {
...
@@ -397,6 +397,7 @@ public class ShortMessage extends MidiMessage {
* Obtains the MIDI command associated with this event. This method
* Obtains the MIDI command associated with this event. This method
* assumes that the event is a MIDI channel message; if not, the return
* assumes that the event is a MIDI channel message; if not, the return
* value will not be meaningful.
* value will not be meaningful.
* @return the MIDI command associated with this event
* @see #setMessage(int, int, int, int)
* @see #setMessage(int, int, int, int)
*/
*/
public
int
getCommand
()
{
public
int
getCommand
()
{
...
@@ -450,7 +451,7 @@ public class ShortMessage extends MidiMessage {
...
@@ -450,7 +451,7 @@ public class ShortMessage extends MidiMessage {
* status byte value.
* status byte value.
* @param status status byte value, which must represent a short MIDI message
* @param status status byte value, which must represent a short MIDI message
* @return data length in bytes (0, 1, or 2)
* @return data length in bytes (0, 1, or 2)
* @throws
<code>InvalidMidiDataException</code>
if the
* @throws
InvalidMidiDataException
if the
* <code>status</code> argument does not represent the status byte for any
* <code>status</code> argument does not represent the status byte for any
* short message
* short message
*/
*/
...
...
src/share/classes/javax/sound/midi/Synthesizer.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -170,7 +170,7 @@ public interface Synthesizer extends MidiDevice {
...
@@ -170,7 +170,7 @@ public interface Synthesizer extends MidiDevice {
* already had been), <code>false</code> if the instrument could not be
* already had been), <code>false</code> if the instrument could not be
* loaded (for example, if the synthesizer has insufficient
* loaded (for example, if the synthesizer has insufficient
* memory to load it)
* memory to load it)
* @throws
<code>IllegalArgumentException</code>
if this
* @throws
IllegalArgumentException
if this
* <code>Synthesizer</code> doesn't support the specified instrument's
* <code>Synthesizer</code> doesn't support the specified instrument's
* soundbank
* soundbank
* @see #unloadInstrument
* @see #unloadInstrument
...
@@ -186,7 +186,7 @@ public interface Synthesizer extends MidiDevice {
...
@@ -186,7 +186,7 @@ public interface Synthesizer extends MidiDevice {
/**
/**
* Unloads a particular instrument.
* Unloads a particular instrument.
* @param instrument instrument to unload
* @param instrument instrument to unload
* @throws
<code>IllegalArgumentException</code>
if this
* @throws
IllegalArgumentException
if this
* <code>Synthesizer</code> doesn't support the specified instrument's
* <code>Synthesizer</code> doesn't support the specified instrument's
* soundbank
* soundbank
* @see #loadInstrument
* @see #loadInstrument
...
@@ -214,10 +214,10 @@ public interface Synthesizer extends MidiDevice {
...
@@ -214,10 +214,10 @@ public interface Synthesizer extends MidiDevice {
* of the old instrument, it should be loaded into the synthesizer
* of the old instrument, it should be loaded into the synthesizer
* @return <code>true</code> if the instrument succeessfully remapped,
* @return <code>true</code> if the instrument succeessfully remapped,
* <code>false</code> if feature is not implemented by synthesizer
* <code>false</code> if feature is not implemented by synthesizer
* @throws
<code>IllegalArgumentException</code>
if instrument
* @throws
IllegalArgumentException
if instrument
* <code>from</code> or instrument <code>to</code> aren't supported by
* <code>from</code> or instrument <code>to</code> aren't supported by
* synthesizer or if instrument <code>to</code> is not loaded
* synthesizer or if instrument <code>to</code> is not loaded
* @throws
<code>NullPointerException</code>
if <code>from</code> or
* @throws
NullPointerException
if <code>from</code> or
* <code>to</code> parameters have null value
* <code>to</code> parameters have null value
* @see #loadInstrument
* @see #loadInstrument
* @see #loadInstruments
* @see #loadInstruments
...
...
src/share/classes/javax/sound/midi/SysexMessage.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1998, 20
02
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -204,6 +204,7 @@ public class SysexMessage extends MidiMessage {
...
@@ -204,6 +204,7 @@ public class SysexMessage extends MidiMessage {
* @param data the system exclusive message data
* @param data the system exclusive message data
* @param length the length of the valid message data in
* @param length the length of the valid message data in
* the array
* the array
* @throws InvalidMidiDataException if the status byte is invalid for a sysex message
*/
*/
public
void
setMessage
(
int
status
,
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
public
void
setMessage
(
int
status
,
byte
[]
data
,
int
length
)
throws
InvalidMidiDataException
{
if
(
(
status
!=
0xF0
)
&&
(
status
!=
0xF7
)
)
{
if
(
(
status
!=
0xF0
)
&&
(
status
!=
0xF7
)
)
{
...
...
src/share/classes/javax/sound/midi/Track.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -211,10 +211,11 @@ public class Track {
...
@@ -211,10 +211,11 @@ public class Track {
/**
/**
* Obtains the event at the specified index.
* Obtains the event at the specified index.
* @param index the location of the desired event in the event vector
* @param index the location of the desired event in the event vector
* @throws
<code>ArrayIndexOutOfBoundsException</code>
if the
* @throws
ArrayIndexOutOfBoundsException
if the
* specified index is negative or not less than the current size of
* specified index is negative or not less than the current size of
* this track.
* this track.
* @see #size
* @see #size
* @return the event at the specified index
*/
*/
public
MidiEvent
get
(
int
index
)
throws
ArrayIndexOutOfBoundsException
{
public
MidiEvent
get
(
int
index
)
throws
ArrayIndexOutOfBoundsException
{
try
{
try
{
...
...
src/share/classes/javax/sound/sampled/AudioFileFormat.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -57,6 +57,7 @@ import java.util.Map;
...
@@ -57,6 +57,7 @@ import java.util.Map;
* be used in implementations:
* be used in implementations:
*
*
* <table border=1>
* <table border=1>
* <caption>Audio File Format Property Keys</caption>
* <tr>
* <tr>
* <th>Property key</th>
* <th>Property key</th>
* <th>Value type</th>
* <th>Value type</th>
...
...
src/share/classes/javax/sound/sampled/AudioFormat.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -85,6 +85,7 @@ import java.util.Map;
...
@@ -85,6 +85,7 @@ import java.util.Map;
* service providers should use, if applicable:
* service providers should use, if applicable:
*
*
* <table border=0>
* <table border=0>
* <caption>Audio Format Property Keys</caption>
* <tr>
* <tr>
* <th>Property key</th>
* <th>Property key</th>
* <th>Value type</th>
* <th>Value type</th>
...
...
src/share/classes/javax/sound/sampled/AudioSystem.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -75,6 +75,7 @@ import com.sun.media.sound.JDK13Services;
...
@@ -75,6 +75,7 @@ import com.sun.media.sound.JDK13Services;
* consider them:
* consider them:
*
*
* <table border=0>
* <table border=0>
* <caption>Audio System Property Keys</caption>
* <tr>
* <tr>
* <th>Property Key</th>
* <th>Property Key</th>
* <th>Interface</th>
* <th>Interface</th>
...
...
src/share/classes/javax/sound/sampled/BooleanControl.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
0
3, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
1
3, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -125,6 +125,7 @@ public abstract class BooleanControl extends Control {
...
@@ -125,6 +125,7 @@ public abstract class BooleanControl extends Control {
/**
/**
* Obtains the label for the specified state.
* Obtains the label for the specified state.
* @param state the state whose label will be returned
* @return the label for the specified state, such as "true" or "on"
* @return the label for the specified state, such as "true" or "on"
* for <code>true</code>, or "false" or "off" for <code>false</code>.
* for <code>true</code>, or "false" or "off" for <code>false</code>.
*/
*/
...
...
src/share/classes/javax/sound/sampled/Mixer.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -133,6 +133,8 @@ public interface Mixer extends Line {
...
@@ -133,6 +133,8 @@ public interface Mixer extends Line {
* <code>DataLine</code>.
* <code>DataLine</code>.
*
*
* @param info describes the desired line
* @param info describes the desired line
* @return a line that is available for use and that matches the description
* in the specified {@code Line.Info} object
* @throws LineUnavailableException if a matching line
* @throws LineUnavailableException if a matching line
* is not available due to resource restrictions
* is not available due to resource restrictions
* @throws IllegalArgumentException if this mixer does
* @throws IllegalArgumentException if this mixer does
...
...
src/share/classes/javax/sound/sampled/spi/FormatConversionProvider.java
浏览文件 @
e4559fae
/*
/*
* Copyright (c) 1999, 20
0
3, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 20
1
3, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -116,6 +116,7 @@ public abstract class FormatConversionProvider {
...
@@ -116,6 +116,7 @@ public abstract class FormatConversionProvider {
* given a particular source format.
* given a particular source format.
* If no target format encodings are supported for this source format,
* If no target format encodings are supported for this source format,
* an array of length 0 is returned.
* an array of length 0 is returned.
* @param sourceFormat format of the incoming data
* @return array of supported target format encodings.
* @return array of supported target format encodings.
*/
*/
public
abstract
AudioFormat
.
Encoding
[]
getTargetEncodings
(
AudioFormat
sourceFormat
);
public
abstract
AudioFormat
.
Encoding
[]
getTargetEncodings
(
AudioFormat
sourceFormat
);
...
@@ -146,6 +147,8 @@ public abstract class FormatConversionProvider {
...
@@ -146,6 +147,8 @@ public abstract class FormatConversionProvider {
* supported by the format converter
* supported by the format converter
* If no target formats with the specified encoding are supported
* If no target formats with the specified encoding are supported
* for this source format, an array of length 0 is returned.
* for this source format, an array of length 0 is returned.
* @param targetEncoding desired encoding of the stream after processing
* @param sourceFormat format of the incoming data
* @return array of supported target formats.
* @return array of supported target formats.
*/
*/
public
abstract
AudioFormat
[]
getTargetFormats
(
AudioFormat
.
Encoding
targetEncoding
,
AudioFormat
sourceFormat
);
public
abstract
AudioFormat
[]
getTargetFormats
(
AudioFormat
.
Encoding
targetEncoding
,
AudioFormat
sourceFormat
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录