📄 audioformat.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>TargetDataLine.</B><B><A HREF="../../../../javax/sound/sampled/TargetDataLine.html#open(javax.sound.sampled.AudioFormat, int)">open</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int bufferSize)</CODE><BR> Opens the line with the specified format and requested buffer size, causing the line to acquire any required system resources and become operational.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>TargetDataLine.</B><B><A HREF="../../../../javax/sound/sampled/TargetDataLine.html#open(javax.sound.sampled.AudioFormat)">open</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format)</CODE><BR> Opens the line with the specified format, causing the line to acquire any required system resources and become operational.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>SourceDataLine.</B><B><A HREF="../../../../javax/sound/sampled/SourceDataLine.html#open(javax.sound.sampled.AudioFormat, int)">open</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int bufferSize)</CODE><BR> Opens the line with the specified format and suggested buffer size, causing the line to acquire any required system resources and become operational.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>SourceDataLine.</B><B><A HREF="../../../../javax/sound/sampled/SourceDataLine.html#open(javax.sound.sampled.AudioFormat)">open</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format)</CODE><BR> Opens the line with the specified format, causing the line to acquire any required system resources and become operational.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../javax/sound/sampled/package-summary.html">javax.sound.sampled</A> with parameters of type <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/AudioInputStream.html#AudioInputStream(java.io.InputStream, javax.sound.sampled.AudioFormat, long)">AudioInputStream</A></B>(<A HREF="../../../../java/io/InputStream.html">InputStream</A> stream, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, long length)</CODE><BR> Constructs an audio input stream that has the requested format and length in sample frames, using audio data from the specified input stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/DataLine.Info.html#DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat[], int, int)">DataLine.Info</A></B>(<A HREF="../../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[] formats, int minBufferSize, int maxBufferSize)</CODE><BR> Constructs a data line's info object from the specified information, which includes a set of supported audio formats and a range for the buffer size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/DataLine.Info.html#DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat, int)">DataLine.Info</A></B>(<A HREF="../../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int bufferSize)</CODE><BR> Constructs a data line's info object from the specified information, which includes a single audio format and a desired buffer size.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/DataLine.Info.html#DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat)">DataLine.Info</A></B>(<A HREF="../../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format)</CODE><BR> Constructs a data line's info object from the specified information, which includes a single audio format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/AudioFileFormat.html#AudioFileFormat(javax.sound.sampled.AudioFileFormat.Type, int, javax.sound.sampled.AudioFormat, int)">AudioFileFormat</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> type, int byteLength, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int frameLength)</CODE><BR> Constructs an audio file format object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/sound/sampled/AudioFileFormat.html#AudioFileFormat(javax.sound.sampled.AudioFileFormat.Type, javax.sound.sampled.AudioFormat, int)">AudioFileFormat</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFileFormat.Type.html">AudioFileFormat.Type</A> type, <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int frameLength)</CODE><BR> Constructs an audio file format object.</TD></TR></TABLE> <P><A NAME="javax.sound.sampled.spi"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> in <A HREF="../../../../javax/sound/sampled/spi/package-summary.html">javax.sound.sampled.spi</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/sound/sampled/spi/package-summary.html">javax.sound.sampled.spi</A> that return <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[]</CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.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 set of target formats with the encoding specified supported by the format converter If no target formats with the specified encoding are supported for this source format, an array of length 0 is returned.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/sound/sampled/spi/package-summary.html">javax.sound.sampled.spi</A> with parameters of type <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../javax/sound/sampled/AudioFormat.Encoding.html">AudioFormat.Encoding</A>[]</CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.html#getTargetEncodings(javax.sound.sampled.AudioFormat)">getTargetEncodings</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> sourceFormat)</CODE><BR> Obtains the set of target format encodings supported by the format converter given a particular source format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.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 the format converter supports conversion to a particular encoding from a particular format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[]</CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.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 set of target formats with the encoding specified supported by the format converter If no target formats with the specified encoding are supported for this source format, an array of length 0 is returned.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.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 the format converter supports conversion to one particular format from another.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../javax/sound/sampled/AudioInputStream.html">AudioInputStream</A></CODE></FONT></TD><TD><CODE><B>FormatConversionProvider.</B><B><A HREF="../../../../javax/sound/sampled/spi/FormatConversionProvider.html#getAudioInputStream(javax.sound.sampled.AudioFormat, javax.sound.sampled.AudioInputStream)">getAudioInputStream</A></B>(<A HREF="../../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> targetFormat, <A HREF="../../../../javax/sound/sampled/AudioInputStream.html">AudioInputStream</A> sourceStream)</CODE><BR> Obtains an audio input stream with the specified format from the given audio input stream.</TD></TR></TABLE> <P><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../javax/sound/sampled/AudioFormat.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AudioFormat.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -