📄 tuneplayer.html
字号:
for QT 2_1, otherwise sets the volume to a normal level.</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/std/music/TunePlayer.html#setSoundLocalization(quicktime.std.music.SoundLocalization)">setSoundLocalization</A></B>(<A HREF="../../../quicktime/std/music/SoundLocalization.html">SoundLocalization</A> data)</CODE><BR> Passes sound localisation data to the tune player.</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/std/music/TunePlayer.html#setTimeScale(int)">setTimeScale</A></B>(int scale)</CODE><BR> Sets the time scale used by the tune player.</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/std/music/TunePlayer.html#setVolume(float)">setVolume</A></B>(float volume)</CODE><BR> Sets the volume for the entire sequence.</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/std/music/TunePlayer.html#stop()">stop</A></B>()</CODE><BR> Stops a currently playing sequence.</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/std/music/TunePlayer.html#task()">task</A></B>()</CODE><BR> Call this method periodically to allow the tune player to perform tasks it must perform at foreground task time.</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/std/music/TunePlayer.html#unroll()">unroll</A></B>()</CODE><BR> Releases any note channels that may have been allocated by previous calls to preroll.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.std.comp.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.std.comp.<A HREF="../../../quicktime/std/comp/Component.html">Component</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/std/comp/Component.html#count()">count</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.std.comp.ComponentIdentifier"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.std.comp.<A HREF="../../../quicktime/std/comp/ComponentIdentifier.html">ComponentIdentifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#find(quicktime.std.comp.ComponentDescription)">find</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#find(quicktime.std.comp.ComponentIdentifier, quicktime.std.comp.ComponentDescription)">find</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#getInfo()">getInfo</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#toString()">toString</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="TunePlayer()"><!-- --></A><H3>TunePlayer</H3><PRE>public <B>TunePlayer</B>() throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Opens the TunePlayer component. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refComponentMgr.8.htm#28411">QuickTime::OpenADefaultComponent</a> </b><BR><BR><!-- ============ 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="fromMusicMediaHandler(quicktime.std.movies.media.MusicMediaHandler, int)"><!-- --></A><H3>fromMusicMediaHandler</H3><PRE>public static <A HREF="../../../quicktime/std/music/TunePlayer.html">TunePlayer</A> <B>fromMusicMediaHandler</B>(<A HREF="../../../quicktime/std/movies/media/MusicMediaHandler.html">MusicMediaHandler</A> mh, int index) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the TunePlayer that is responsible for rendering the music data that is contained within a particular music track. If the movie or this media is edited in any way then the returned TunePlayer becomes invalid and must be got again. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17201">QuickTime::MusicMediaGetIndexedTunePlayer()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index within the media.<DT><B>See Also: </B><DD><A HREF="../../../quicktime/std/movies/media/MusicMediaHandler.html#getIndexedTunePlayer(int)"><CODE>MusicMediaHandler.getIndexedTunePlayer(int)</CODE></A></DL></DD></DL><HR><A NAME="setHeader(quicktime.std.music.MusicData)"><!-- --></A><H3>setHeader</H3><PRE>public void <B>setHeader</B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> header) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Prepares the tune player to accept subsequent music event sequences by defining one or more parts to be used by sequence Note events. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#22248">QuickTime::TuneSetHeader</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - the tune header data</DL></DD></DL><HR><A NAME="getTimeBase()"><!-- --></A><H3>getTimeBase</H3><PRE>public <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A> <B>getTimeBase</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the TunePlayer's current time Base. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.24.htm#41874">QuickTime::TuneGetTimeBase</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the TimeBase</DL></DD></DL><HR><A NAME="setTimeScale(int)"><!-- --></A><H3>setTimeScale</H3><PRE>public void <B>setTimeScale</B>(int scale) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Sets the time scale used by the tune player. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#17049">QuickTime::TuneSetTimeScale</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - the new scale</DL></DD></DL><HR><A NAME="getTimeScale()"><!-- --></A><H3>getTimeScale</H3><PRE>public int <B>getTimeScale</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the current time scale of the tune player, in units-per-second. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#17848">QuickTime::TuneGetTimeScale</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current scale</DL></DD></DL><HR><A NAME="getNumberOfNoteChannels()"><!-- --></A><H3>getNumberOfNoteChannels</H3><PRE>public int <B>getNumberOfNoteChannels</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the number of note channels that the tune player is using. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#24559">QuickTime::TuneGetIndexedNoteChannel</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of note channels</DL></DD></DL><HR><A NAME="getIndexedNoteChannel(int)"><!-- --></A><H3>getIndexedNoteChannel</H3><PRE>public <A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A> <B>getIndexedNoteChannel</B>(int index) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the note channel at the specified index. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#24559">QuickTime::TuneGetIndexedNoteChannel</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the part for which you want the note channel<DT><B>Returns:</B><DD>the note channel</DL></DD></DL><HR><A NAME="queue(quicktime.std.music.MusicData, float, int, int, int)"><!-- --></A><H3>queue</H3><PRE>public void <B>queue</B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> tune, float tuneRate, int tuneStartPosition, int tuneStopPosition, int queueFlags) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Places a sequence of music events into a queue to be played. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#39626">QuickTime::TuneQueue</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tune</CODE> - the events to be played<DD><CODE>tuneRate</CODE> - the playback rate at which to play the events<DD><CODE>tuneStartPosition</CODE> - sequence starting time<DD><CODE>tuneStopPosition</CODE> - sequence ending time<DD><CODE>queue</CODE> - flags with details about how to play the queued tune events.</DL></DD></DL><HR><A NAME="instant(quicktime.std.music.TuneStatus, int)"><!-- --></A><H3>instant</H3><PRE>public void <B>instant</B>(<A HREF="../../../quicktime/std/music/TuneStatus.html">TuneStatus</A> tune, int tunePosition) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Play the sequence of music events at a specified position. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#25076">QuickTime::TuneInstant</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tune</CODE> - the tune data is contained within the TuneStatus object<DD><CODE>tunePosition</CODE> - the position within tune sequence data in time units</DL></DD></DL><HR><A NAME="getStatus()"><!-- --></A><H3>getStatus</H3><PRE>public <A HREF="../../../quicktime/std/music/TuneStatus.html">TuneStatus</A> <B>getStatus</B>() throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns an initialised structure describing the state of the tune player. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/tp_qtma_qtmaref.36.htm#16281">QuickTime::TuneGetStatus</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a tune status object</DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -