⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spbdevice.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bits per sample.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#getSampleSizeAvailable()">getSampleSizeAvailable</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an integer list containing the sample sizes available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#getStereoInputGainLeft()">getStereoInputGainLeft</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current gain setting for the left channel of a stereo device	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#getStereoInputGainRight()">getStereoInputGainRight</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current gain setting for the right channel of a stereo device	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#hasOptionsDialog()">hasOptionsDialog</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the current device supports an options dialog box and false if not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#millisecondsToBytes(int)">millisecondsToBytes</A></B>(int&nbsp;msecs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reports how many bytes are required to store a recording of duration milliseconds, given the input device誷 current sample rate, sample size, number of channels, and compression factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setAutomaticGainControl(boolean)">setAutomaticGainControl</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the state of the automatic gain control.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setCompressionType(int)">setCompressionType</A></B>(int&nbsp;compType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the compression type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setInputGain(float)">setInputGain</A></B>(float&nbsp;gain)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the input gain level.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setInputSource(int)">setInputSource</A></B>(int&nbsp;source)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sets the input Source to the passed in (index) source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setLevelMeterOnOff(boolean)">setLevelMeterOnOff</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the current state of the level meter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setNumberChannels(int)">setNumberChannels</A></B>(int&nbsp;channels)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of channels that this device is to record.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setPlayThruOnOff(int)">setPlayThruOnOff</A></B>(int&nbsp;volume)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the PlayThru level, 0 means it's off.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setSampleRate(float)">setSampleRate</A></B>(float&nbsp;rate)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the sample rate to be produced by this device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setSampleSize(int)">setSampleSize</A></B>(int&nbsp;sampleSize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the number of bits per sample.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#setStereoInputGain(float, float)">setStereoInputGain</A></B>(float&nbsp;leftChannel,                   float&nbsp;rightChannel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the the current stereo sound input gain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#showOptionsDialog()">showOptionsDialog</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shows the options dialog if available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SPBDevice.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A String representation of the class.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A></CODE></TD></TR></TABLE>&nbsp;<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.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SPBDevice(java.lang.String, int)"><!-- --></A><H3>SPBDevice</H3><PRE>public <B>SPBDevice</B>(java.lang.String&nbsp;deviceName,                 int&nbsp;permission)          throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The SPBOpenDevice function attempts to open a sound input device having the name indicated by the deviceName parameter.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.18.htm#pgfId=755">QuickTime::SPBOpenDevice</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>deviceName</CODE> - The name of the sound input device to open, or the empty string if the default sound input device is to be opened.<DD><CODE>permission</CODE> - A flag that indicates whether subsequent operations with that device are to be read/write or read-only.</DL></DD></DL><!-- ============ 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="getIndexedDevice(int)"><!-- --></A><H3>getIndexedDevice</H3><PRE>public static java.lang.String <B>getIndexedDevice</B>(int&nbsp;count)                                         throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>You can use the SPBGetIndexedDevice function to help generate a list of sound input devices.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - The index number of the sound input device you wish to obtain information about. 2return the name of the sound input device specified by the count parameter or null if there isn't a device at that index.</DL></DD></DL><HR><A NAME="fromSoundChannel(quicktime.std.sg.SGSoundChannel)"><!-- --></A><H3>fromSoundChannel</H3><PRE>public static <A HREF="../../quicktime/sound/SPBDevice.html">SPBDevice</A> <B>fromSoundChannel</B>(<A HREF="../../quicktime/std/sg/SGSoundChannel.html">SGSoundChannel</A>&nbsp;sc)                                  throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Get the Sound Input Driver	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imSeqGrabChanComp.13.htm#imSeqG114">QuickTime::SGGetSoundInputDriver</a>  <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imSeqGrabComp.12.htm#imSeqG75">QuickTime::SGGetSoundInputDriver</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Sound Input driver in use by this channel.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/sg/SGSoundChannel.html#getInputDriver()"><CODE>SGSoundChannel.getInputDriver()</CODE></A></DL></DD></DL><HR><A NAME="millisecondsToBytes(int)"><!-- --></A><H3>millisecondsToBytes</H3><PRE>public int <B>millisecondsToBytes</B>(int&nbsp;msecs)                        throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Reports how many bytes are required to store a recording of duration milliseconds, given the input device誷 current sample rate, sample size, number of channels, and compression factor.  <BR><BR><b>QuickTime::SPBMillisecondsToBytes</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msecs</CODE> - how many milliseconds you wish to record<DT><B>Returns:</B><DD>how many bytes you would require to record the specifiec milliseconds.</DL></DD></DL><HR><A NAME="bytesToMilliseconds(int)"><!-- --></A><H3>bytesToMilliseconds</H3><PRE>public int <B>bytesToMilliseconds</B>(int&nbsp;bytes)                        throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Reports how many milliseconds are required to record the specified bytes amount of sound data, given the input device誷 current sample rate, sample size, number of channels, and compression factor.  <BR><BR><b>QuickTime::SPBBytesToMilliseconds</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bytes</CODE> - how many bytes you wish to record<DT><B>Returns:</B><DD>how many milliseconds.</DL></DD></DL><HR><A NAME="setLevelMeterOnOff(boolean)"><!-- --></A><H3>setLevelMeterOnOff</H3><PRE>public void <B>setLevelMeterOnOff</B>(boolean&nbsp;flag)                        throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the current state of the level meter.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -