📄 sndhandle.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SndHandle.html#getSoundHeaderOffset()">getSoundHeaderOffset</A></B>()</CODE><BR> The number of bytes from the beginning of the sound resource specified by the sndHdl parameter to the sound header that is contained within.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/sound/SndInfo.html">SndInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SndHandle.html#parseSndHeader()">parseSndHeader</A></B>()</CODE><BR> You use this function to retrieve information about a SndHandle.</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><A HREF="../../quicktime/sound/SndHandle.html#setSoundData(quicktime.util.QTPointerRef)">setSoundData</A></B>(<A HREF="../../quicktime/util/QTPointerRef.html">QTPointerRef</A> buffer)</CODE><BR> Sets the internal buffer Pointer of this sound header to the incomding buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SndHandle.html#setupHeader(int, float, int, int, int)">setupHeader</A></B>(int numChannels, float sampleRate, int sampleSize, int compressionType, int numBytes)</CODE><BR> You can use the SetupSndHeader function to construct a sound resource containing sampled sound that can be passed to the SndPlay function.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/sound/SndHandle.html#setupHeader(int, float, int, int, int, int)">setupHeader</A></B>(int numChannels, float sampleRate, int sampleSize, int compressionType, int baseNote, int numBytes)</CODE><BR> You can use the SetupSndHeader function to construct a sound resource containing sampled sound that can be passed to the SndPlay function.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.util.QTHandle"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../quicktime/util/QTHandle.html">QTHandle</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTHandle.html#clone()">clone</A>, <A HREF="../../quicktime/util/QTHandle.html#concatenate(quicktime.util.QTHandleRef)">concatenate</A>, <A HREF="../../quicktime/util/QTHandle.html#fromEncodedImage(quicktime.util.EncodedImage)">fromEncodedImage</A>, <A HREF="../../quicktime/util/QTHandle.html#fromGraphicsExporterInput(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterInput</A>, <A HREF="../../quicktime/util/QTHandle.html#fromGraphicsExporterOutput(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterOutput</A>, <A HREF="../../quicktime/util/QTHandle.html#fromGraphicsExporterText(quicktime.std.image.GraphicsExporter)">fromGraphicsExporterText</A>, <A HREF="../../quicktime/util/QTHandle.html#fromGraphicsImporterAlias(quicktime.std.image.GraphicsImporter)">fromGraphicsImporterAlias</A>, <A HREF="../../quicktime/util/QTHandle.html#fromGraphicsImporterData(quicktime.std.image.GraphicsImporter)">fromGraphicsImporterData</A>, <A HREF="../../quicktime/util/QTHandle.html#fromImageDescription(quicktime.std.image.ImageDescription, int, int)">fromImageDescription</A>, <A HREF="../../quicktime/util/QTHandle.html#fromSoundDescription(quicktime.std.movies.media.SoundDescription, int)">fromSoundDescription</A>, <A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderCurrent(quicktime.std.qtcomponents.TimeCoder)">fromTimeCoderCurrent</A>, <A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderSource(quicktime.std.qtcomponents.TimeCoder, quicktime.std.qtcomponents.TimeCodeDescription)">fromTimeCoderSource</A>, <A HREF="../../quicktime/util/QTHandle.html#fromTimeCoderTime(quicktime.std.qtcomponents.TimeCoder, int)">fromTimeCoderTime</A>, <A HREF="../../quicktime/util/QTHandle.html#fromTrack(quicktime.std.movies.Track)">fromTrack</A>, <A HREF="../../quicktime/util/QTHandle.html#reserveMemory(int)">reserveMemory</A>, <A HREF="../../quicktime/util/QTHandle.html#setSize(int)">setSize</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.util.QTHandleRef"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, byte[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, char[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, double[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, float[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, int[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, long[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, short[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromCompressionDialogState(quicktime.std.qtcomponents.CompressionDialog)">fromCompressionDialogState</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromSCSequence(quicktime.std.qtcomponents.SCSequence, quicktime.qd.QDGraphics, quicktime.qd.QDRect)">fromSCSequence</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getBytes()">getBytes</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getSize()">getSize</A>, <A HREF="../../quicktime/util/QTHandleRef.html#inMemory()">inMemory</A>, <A HREF="../../quicktime/util/QTHandleRef.html#isLocked()">isLocked</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lock()">lock</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lockHigh()">lockHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#moveHigh()">moveHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer()">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer(int, int)">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toString()">toString</A>, <A HREF="../../quicktime/util/QTHandleRef.html#unlock()">unlock</A></CODE></TD></TR></TABLE> <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> <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> <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="SndHandle()"><!-- --></A><H3>SndHandle</H3><PRE>public <B>SndHandle</B>() throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct an empty handle that must be initialized by the setupHeader call.</DL><HR><A NAME="SndHandle(int, boolean)"><!-- --></A><H3>SndHandle</H3><PRE>public <B>SndHandle</B>(int size, boolean clear) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct an empty handle that must be initialized by the setupHeader call.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - how many bytes to allocate<DD><CODE>clear</CODE> - if true the handle's memory is cleared to zeroes.</DL></DD></DL><HR><A NAME="SndHandle(int, float, int, int)"><!-- --></A><H3>SndHandle</H3><PRE>public <B>SndHandle</B>(int numChannels, float sampleRate, int sampleSize, int compressionType) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct a sound resource for containing sampled sound that can be used to record and play sound. You must append the actual sample data to the created SndHandle before it can be used to record or play. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1b.htm#pgfId=908">QuickTime::SetupSndHeader</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>numChannels</CODE> - the number of channels for the sound<DD><CODE>sampleRate</CODE> - the rate at which the sound was recorded<DD><CODE>sampleSize</CODE> - The sample size for the original sound (that is, bits per sample).<DD><CODE>compressionType</CODE> - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).</DL></DD></DL><HR><A NAME="SndHandle(int, float, int, int, int)"><!-- --></A><H3>SndHandle</H3><PRE>public <B>SndHandle</B>(int numChannels, float sampleRate, int sampleSize, int compressionType, int baseNote) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Construct a sound resource for containing sampled sound that can be used to record and play sound. You must append the actual sample data to the created SndHandle before it can be used to record or play. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1b.htm#pgfId=908">QuickTime::SetupSndHeader</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>numChannels</CODE> - the number of channels for the sound<DD><CODE>sampleRate</CODE> - the rate at which the sound was recorded<DD><CODE>sampleSize</CODE> - The sample size for the original sound (that is, bits per sample).<DD><CODE>compressionType</CODE> - The compression type for the sound ('NONE', 'MAC3', 'MAC6', or other third-party types).<DD><CODE>baseNote</CODE> - The base note for the sound, expressed as a MIDI note value.</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="setupHeader(int, float, int, int, int)"><!-- --></A><H3>setupHeader</H3><PRE>public int <B>setupHeader</B>(int numChannels, float sampleRate, int sampleSize, int compressionType, int numBytes) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -