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

📄 spb.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</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="setCompletionProc(quicktime.sound.SICompletion)"><!-- --></A><H3>setCompletionProc</H3><PRE>public void <B>setCompletionProc</B>(<A HREF="../../quicktime/sound/SICompletion.html">SICompletion</A>&nbsp;comp)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="removeCompletionProc()"><!-- --></A><H3>removeCompletionProc</H3><PRE>public void <B>removeCompletionProc</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getCount()"><!-- --></A><H3>getCount</H3><PRE>public int <B>getCount</B>()</PRE><DL><DD>Get the number of bytes that are or were recorded.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of bytes</DL></DD></DL><HR><A NAME="setCount(int)"><!-- --></A><H3>setCount</H3><PRE>public void <B>setCount</B>(int&nbsp;count)</PRE><DL><DD>Sets the number of bytes that are to be recorded.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - number of bytes</DL></DD></DL><HR><A NAME="getBufferLength()"><!-- --></A><H3>getBufferLength</H3><PRE>public int <B>getBufferLength</B>()</PRE><DL><DD>Get the number of bytes that are or were recorded.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of bytes</DL></DD></DL><HR><A NAME="getMilliseconds()"><!-- --></A><H3>getMilliseconds</H3><PRE>public int <B>getMilliseconds</B>()</PRE><DL><DD>Get the the number of milliseconds that are or were recorded.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>number of milliseconds</DL></DD></DL><HR><A NAME="setMilliseconds(int)"><!-- --></A><H3>setMilliseconds</H3><PRE>public void <B>setMilliseconds</B>(int&nbsp;msecs)</PRE><DL><DD>Sets the the number of milliseconds that are to be recorded.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msecs</CODE> - milliseconds</DL></DD></DL><HR><A NAME="getDevice()"><!-- --></A><H3>getDevice</H3><PRE>public <A HREF="../../quicktime/sound/SPBDevice.html">SPBDevice</A> <B>getDevice</B>()</PRE><DL><DD>Gets the device that is attached to this object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the SPBDevice</DL></DD></DL><HR><A NAME="setBuffer(quicktime.util.QTPointerRef)"><!-- --></A><H3>setBuffer</H3><PRE>public void <B>setBuffer</B>(<A HREF="../../quicktime/util/QTPointerRef.html">QTPointerRef</A>&nbsp;buffer)</PRE><DL><DD>Sets the buffer that the device will record into.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the record buffer</DL></DD></DL><HR><A NAME="getBuffer()"><!-- --></A><H3>getBuffer</H3><PRE>public <A HREF="../../quicktime/util/QTPointerRef.html">QTPointerRef</A> <B>getBuffer</B>()</PRE><DL><DD>Sets the buffer that the device will record into.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - the record buffer</DL></DD></DL><HR><A NAME="getError()"><!-- --></A><H3>getError</H3><PRE>public short <B>getError</B>()</PRE><DL><DD>You can call this to check the value of the error code. An error code > 0 means that an Async recording is still occuring. An error code == 0 means no recording and no error. An error code < 0 means that an error has occured and recording is terminated.<DD><DL></DL></DD></DL><HR><A NAME="record(boolean)"><!-- --></A><H3>record</H3><PRE>public void <B>record</B>(boolean&nbsp;flag)            throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Record audio data into memory, either synchronously or asynchronously. The sound is recorded into the specified buffer. If it is recorded synchronously then the error code will be checked and an exception thrown if required. If recorded asynchronously then the application will need to check for errors after the recording has completed with the checkError code. After recording the buffer contains the recorded bytes, the count how many bytes were recorded, the milliseconds how many milliseconds of sound were  recorded based on the current settings of the device.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=780">QuickTime::SPBRecord</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - if true record asynchronously, if false records synchronously.</DL></DD></DL><HR><A NAME="pauseRecording()"><!-- --></A><H3>pauseRecording</H3><PRE>public void <B>pauseRecording</B>()                    throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Pause recording from a sound input device.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=828">QuickTime::SPBPauseRecording</a> </b><BR><BR></DL></DD></DL><HR><A NAME="resumeRecording()"><!-- --></A><H3>resumeRecording</H3><PRE>public void <B>resumeRecording</B>()                     throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Pause recording from a sound input device.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=840">QuickTime::SPBResumeRecording</a> </b><BR><BR></DL></DD></DL><HR><A NAME="stopRecording()"><!-- --></A><H3>stopRecording</H3><PRE>public void <B>stopRecording</B>()                   throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>End a recording from a sound input device. If you call the checkError instance method you will get an abortErr exception which indicates  that the recording was stopped by calling this method.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=849">QuickTime::SPBStopRecording</a> </b><BR><BR></DL></DD></DL><HR><A NAME="isRecording()"><!-- --></A><H3>isRecording</H3><PRE>public boolean <B>isRecording</B>()                    throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The status of the recording.  While the input device is recording, this call returns true. When a recording terminates without an error, this call false. When an error occurs during recording or the recording has been terminated  by a call to the SPBStopRecording function (abortErr), this call throws an exception.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD></DL><HR><A NAME="meterLevel()"><!-- --></A><H3>meterLevel</H3><PRE>public short <B>meterLevel</B>()                 throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The level of the meter.  While the input device is recording, this call returns the level.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current meter level</DL></DD></DL><HR><A NAME="totalSamplesToRecord()"><!-- --></A><H3>totalSamplesToRecord</H3><PRE>public int <B>totalSamplesToRecord</B>()                         throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The total number of samples to record.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of samples to record</DL></DD></DL><HR><A NAME="numberOfSamplesRecorded()"><!-- --></A><H3>numberOfSamplesRecorded</H3><PRE>public int <B>numberOfSamplesRecorded</B>()                            throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The total number of samples recorded.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of samples recorded</DL></DD></DL><HR><A NAME="totalMsecsToRecord()"><!-- --></A><H3>totalMsecsToRecord</H3><PRE>public int <B>totalMsecsToRecord</B>()                       throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The total number of msecs to record.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of msecs to record</DL></DD></DL><HR><A NAME="numberOfMsecsRecorded()"><!-- --></A><H3>numberOfMsecsRecorded</H3><PRE>public int <B>numberOfMsecsRecorded</B>()                          throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The total number of msecs recorded.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.19.htm#pgfId=858">QuickTime::SPBGetRecordingStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of msecs recorded</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SPB.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../quicktime/sound/SoundComponentData.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../quicktime/sound/SPBDevice.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SPB.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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