📄 audiosystem.html
字号:
<BR> Obtains a line that matches the description in the specified <code>Line.Info</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/Mixer.html">Mixer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getMixer(javax.sound.sampled.Mixer.Info)">getMixer</A></B>(<A HREF="../../../javax/sound/sampled/Mixer.Info.html">Mixer.Info</A> info)</CODE><BR> Obtains the requested audio mixer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/Mixer.Info.html">Mixer.Info</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getMixerInfo()">getMixerInfo</A></B>()</CODE><BR> Obtains an array of mixer info objects that represents the set of audio mixers that are currently installed on the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getSourceLineInfo(javax.sound.sampled.Line.Info)">getSourceLineInfo</A></B>(<A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A> info)</CODE><BR> Obtains information about source lines of a particular type that are supported by any installed mixer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getTargetEncodings(javax.sound.sampled.AudioFormat.Encoding)">getTargetEncodings</A></B>(<A HREF="../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A> sourceEncoding)</CODE><BR> Obtains the encodings that the system can obtain from an audio input stream with the specified encoding using the set of installed format converters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getTargetEncodings(javax.sound.sampled.AudioFormat)">getTargetEncodings</A></B>(<A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> sourceFormat)</CODE><BR> Obtains the encodings that the system can obtain from an audio input stream with the specified format using the set of installed format converters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getTargetFormats(javax.sound.sampled.AudioFormat.Encoding, javax.sound.sampled.AudioFormat)">getTargetFormats</A></B>(<A HREF="../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A> targetEncoding, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> sourceFormat)</CODE><BR> Obtains the formats that have a particular encoding and that the system can obtain from a stream of the specified format using the set of installed format converters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#getTargetLineInfo(javax.sound.sampled.Line.Info)">getTargetLineInfo</A></B>(<A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A> info)</CODE><BR> Obtains information about target lines of a particular type that are supported by any installed mixer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#isConversionSupported(javax.sound.sampled.AudioFormat.Encoding, javax.sound.sampled.AudioFormat)">isConversionSupported</A></B>(<A HREF="../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A> targetEncoding, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> sourceFormat)</CODE><BR> Indicates whether an audio input stream of the specified encoding can be obtained from an audio input stream that has the specified format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#isConversionSupported(javax.sound.sampled.AudioFormat, javax.sound.sampled.AudioFormat)">isConversionSupported</A></B>(<A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> targetFormat, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> sourceFormat)</CODE><BR> Indicates whether an audio input stream of a specified format can be obtained from an audio input stream of another specified format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#isFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type)">isFileTypeSupported</A></B>(<A HREF="../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> fileType)</CODE><BR> Indicates whether file writing support for the specified file type is provided by the system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#isFileTypeSupported(javax.sound.sampled.AudioFileFormat.Type, javax.sound.sampled.AudioInputStream)">isFileTypeSupported</A></B>(<A HREF="../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> fileType, <A HREF="../../../javax/sound/sampled/AudioInputStream.html">AudioInputStream</A> stream)</CODE><BR> Indicates whether an audio file of the specified file type can be written from the indicated audio input stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#isLineSupported(javax.sound.sampled.Line.Info)">isLineSupported</A></B>(<A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A> info)</CODE><BR> Indicates whether the the system supports any lines that match the specified <code>Line.Info</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#write(javax.sound.sampled.AudioInputStream, javax.sound.sampled.AudioFileFormat.Type, java.io.File)">write</A></B>(<A HREF="../../../javax/sound/sampled/AudioInputStream.html">AudioInputStream</A> stream, <A HREF="../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> fileType, <A HREF="../../../java/io/File.html">File</A> out)</CODE><BR> Writes a stream of bytes representing an audio file of the specified file type to the external file provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/sound/sampled/AudioSystem.html#write(javax.sound.sampled.AudioInputStream, javax.sound.sampled.AudioFileFormat.Type, java.io.OutputStream)">write</A></B>(<A HREF="../../../javax/sound/sampled/AudioInputStream.html">AudioInputStream</A> stream, <A HREF="../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> fileType, <A HREF="../../../java/io/OutputStream.html">OutputStream</A> out)</CODE><BR> Writes a stream of bytes representing an audio file of the specified file type to the output stream provided.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="NOT_SPECIFIED"><!-- --></A><H3>NOT_SPECIFIED</H3><PRE>public static final int <B>NOT_SPECIFIED</B></PRE><DL><DD>An integer that stands for an unknown numeric value. This value is appropriate only for signed quantities that do not normally take negative values. Examples include file sizes, frame sizes, buffer sizes, and sample rates. A number of Java Sound constructors accept a value of <code>NOT_SPECIFIED</code> for such parameters. Other methods may also accept or return this value, as documented.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getMixerInfo()"><!-- --></A><H3>getMixerInfo</H3><PRE>public static <A HREF="../../../javax/sound/sampled/Mixer.Info.html">Mixer.Info</A>[] <B>getMixerInfo</B>()</PRE><DL><DD>Obtains an array of mixer info objects that represents the set of audio mixers that are currently installed on the system.<DD><DL><DT><B>Returns:</B><DD>an array of info objects for the currently installed mixers. If no mixers are available on the system, an array of length 0 is returned.<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/sampled/AudioSystem.html#getMixer(javax.sound.sampled.Mixer.Info)"><CODE>getMixer(javax.sound.sampled.Mixer.Info)</CODE></A></DL></DD></DL><HR><A NAME="getMixer(javax.sound.sampled.Mixer.Info)"><!-- --></A><H3>getMixer</H3><PRE>public static <A HREF="../../../javax/sound/sampled/Mixer.html">Mixer</A> <B>getMixer</B>(<A HREF="../../../javax/sound/sampled/Mixer.Info.html">Mixer.Info</A> info)</PRE><DL><DD>Obtains the requested audio mixer.<DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - a <code>Mixer.Info</code> object representing the desired mixer, or <code>null</code> for the system default mixer<DT><B>Returns:</B><DD>the requested mixer<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/SecurityException.html">SecurityException</A></CODE> - if the requested mixer is unavailable because of security restrictions<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the info object does not represent
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -