📄 tuneplayer.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:50:59 PDT 2002 --><TITLE>: Class TunePlayer</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TunePlayer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../quicktime/std/music/ToneDescription.html"><B>PREV CLASS</B></A> <A HREF="../../../quicktime/std/music/TuneStatus.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> <A HREF="TunePlayer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.std.music</FONT><BR>Class TunePlayer</H2><PRE>java.lang.Object | +--<A HREF="../../../quicktime/QTObject.html">quicktime.QTObject</A> | +--<A HREF="../../../quicktime/std/comp/ComponentIdentifier.html">quicktime.std.comp.ComponentIdentifier</A> | +--<A HREF="../../../quicktime/std/comp/Component.html">quicktime.std.comp.Component</A> | +--<B>quicktime.std.music.TunePlayer</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/jdirect/InterfaceLib.html">InterfaceLib</A>, <A HREF="../../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A>, <A HREF="../../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><HR><DL><DT>public final class <B>TunePlayer</B><DT>extends <A HREF="../../../quicktime/std/comp/Component.html">Component</A><DT>implements <A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></DL><P>Corresponds to the TunePlayer component type.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_quicktime.jdirect.QuickTimeLib"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.jdirect.<A HREF="../../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/jdirect/QuickTimeLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html#libraryInstance">libraryInstance</A>, <A HREF="../../../quicktime/jdirect/QuickTimeLib.html#name">name</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#TunePlayer()">TunePlayer</A></B>()</CODE><BR> Opens the TunePlayer component.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../quicktime/std/music/TunePlayer.html">TunePlayer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#fromMusicMediaHandler(quicktime.std.movies.media.MusicMediaHandler, int)">fromMusicMediaHandler</A></B>(<A HREF="../../../quicktime/std/movies/media/MusicMediaHandler.html">MusicMediaHandler</A> mh, int index)</CODE><BR> Returns the TunePlayer that is responsible for rendering the music data that is contained within a particular music track.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getIndexedNoteChannel(int)">getIndexedNoteChannel</A></B>(int index)</CODE><BR> Returns the note channel at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/music/NoteAllocator.html">NoteAllocator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getNoteAllocator()">getNoteAllocator</A></B>()</CODE><BR> Returns the NoteAllocator that the tune player is using.</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/std/music/TunePlayer.html#getNumberOfNoteChannels()">getNumberOfNoteChannels</A></B>()</CODE><BR> Returns the number of note channels that the tune player is using.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/music/MixStateInfo.html">MixStateInfo</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getPartMix(int)">getPartMix</A></B>(int partNumber)</CODE><BR> Returns the current state of a part in a mix, its volume, balance, and mute/solo state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/music/TuneStatus.html">TuneStatus</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getStatus()">getStatus</A></B>()</CODE><BR> Returns an initialised structure describing the state of the tune player.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../quicktime/std/clocks/TimeBase.html">TimeBase</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getTimeBase()">getTimeBase</A></B>()</CODE><BR> Returns the TunePlayer's current time Base.</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/std/music/TunePlayer.html#getTimeScale()">getTimeScale</A></B>()</CODE><BR> Returns the current time scale of the tune player, in units-per-second.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/music/TunePlayer.html#getVolume()">getVolume</A></B>()</CODE><BR> Returns the volume of the 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#instant(quicktime.std.music.TuneStatus, int)">instant</A></B>(<A HREF="../../../quicktime/std/music/TuneStatus.html">TuneStatus</A> tune, int tunePosition)</CODE><BR> Play the sequence of music events at a specified position.</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#preroll()">preroll</A></B>()</CODE><BR> Prepares the tune player by attempting to reserve note channels for each part in the 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#queue(quicktime.std.music.MusicData, float, int, int, int)">queue</A></B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> tune, float tuneRate, int tuneStartPosition, int tuneStopPosition, int queueFlags)</CODE><BR> Places a sequence of music events into a queue to be played.</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#setBalance(int)">setBalance</A></B>(int balance)</CODE><BR> Modifies the pan controller setting for a 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#setHeader(quicktime.std.music.MusicData)">setHeader</A></B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> header)</CODE><BR> Prepares the tune player to accept subsequent music event sequences by defining one or more parts to be used by sequence Note events.</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#setHeaderWithSize(quicktime.std.music.MusicData, int)">setHeaderWithSize</A></B>(<A HREF="../../../quicktime/std/music/MusicData.html">MusicData</A> header, int size)</CODE><BR> Prepares the tune player to accept subsequence music events by defining one or more parts to be used.</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#setNoteChannels(quicktime.std.music.NoteChannel[])">setNoteChannels</A></B>(<A HREF="../../../quicktime/std/music/NoteChannel.html">NoteChannel</A>[] noteChannelList)</CODE><BR> Prepares the tune player to accept music event sequences by allocating specified note channels for them.</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#setPartMix(int, float, float, int)">setPartMix</A></B>(int partNumber, float volume, float balance, int mixFlags)</CODE><BR> Alters the volume and the balance of the specified part, with the flags specifying special conditions.</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#setPartTranspose(int, float, int)">setPartTranspose</A></B>(int part, float transpose, int velocityShift)</CODE><BR> Modifies the pitch and velocity of every note of the specified part of a tune.</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#setSofter(boolean)">setSofter</A></B>(boolean softer)</CODE><BR> Adjusts the volume to play at a generally softer value that was the normal value
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -