📄 sound.html
字号:
</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="../../../javax/media/j3d/Sound.html#Sound()">Sound</A></B>()</CODE><BR> Constructs and initializes a new Sound node using default parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#Sound(javax.media.j3d.MediaContainer, float)">Sound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData, float initialGain)</CODE><BR> Constructs and initializes a new Sound node object using the provided data and gain parameter values, and defaults for all other fields.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#Sound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float)">Sound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A> region, float priority)</CODE><BR> Constructs and initializes a new Sound node using provided parameter values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#Sound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float)">Sound</A></B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData, float initialGain, int loopCount, boolean release, boolean continuous, boolean enable, <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A> region, float priority, float rateFactor)</CODE><BR> Constructs and initializes a new Sound node using provided parameter values.</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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getContinuousEnable()">getContinuousEnable</A></B>()</CODE><BR> Retrieves sound's continuous play flag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getDuration()">getDuration</A></B>()</CODE><BR> Get the Sound's duration</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getEnable()">getEnable</A></B>()</CODE><BR> Retrieves sound's enabled flag.</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="../../../javax/media/j3d/Sound.html#getInitialGain()">getInitialGain</A></B>()</CODE><BR> Get the overall gain applied to the sound data associated with source.</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="../../../javax/media/j3d/Sound.html#getLoop()">getLoop</A></B>()</CODE><BR> Retrieves loop count for this sound</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getMute()">getMute</A></B>()</CODE><BR> Retrieves sound Mute state.</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="../../../javax/media/j3d/Sound.html#getNumberOfChannelsUsed()">getNumberOfChannelsUsed</A></B>()</CODE><BR> Retrieves number of channels that are being used to render this sound on the audio device associated with the Virtual Universe's primary view.</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="../../../javax/media/j3d/Sound.html#getNumberOfChannelsUsed(javax.media.j3d.View)">getNumberOfChannelsUsed</A></B>(<A HREF="../../../javax/media/j3d/View.html">View</A> view)</CODE><BR> Retrieves number of channels that are being used to render this sound on the audio device associated with given view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getPause()">getPause</A></B>()</CODE><BR> Retrieves the value of the Pause state flag.</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="../../../javax/media/j3d/Sound.html#getPriority()">getPriority</A></B>()</CODE><BR> Retrieves sound's priority value.</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="../../../javax/media/j3d/Sound.html#getRateScaleFactor()">getRateScaleFactor</A></B>()</CODE><BR> Retrieves Sample Rate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getReleaseEnable()">getReleaseEnable</A></B>()</CODE><BR> Retrieves the release flag for sound associated with sound.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/BoundingLeaf.html">BoundingLeaf</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getSchedulingBoundingLeaf()">getSchedulingBoundingLeaf</A></B>()</CODE><BR> Retrieves the Sound node's scheduling bounding leaf.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getSchedulingBounds()">getSchedulingBounds</A></B>()</CODE><BR> Retrieves the Sound node's scheduling bounds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#getSoundData()">getSoundData</A></B>()</CODE><BR> Retrieves description/data associated with this sound source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isPlaying()">isPlaying</A></B>()</CODE><BR> Retrieves sound's play status.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isPlaying(javax.media.j3d.View)">isPlaying</A></B>(<A HREF="../../../javax/media/j3d/View.html">View</A> view)</CODE><BR> Retrieves sound's play status.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isPlayingSilently()">isPlayingSilently</A></B>()</CODE><BR> Retrieves sound's silent status.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isPlayingSilently(javax.media.j3d.View)">isPlayingSilently</A></B>(<A HREF="../../../javax/media/j3d/View.html">View</A> view)</CODE><BR> Retrieves sound's silent status.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isReady()">isReady</A></B>()</CODE><BR> Retrieves sound's 'ready' status.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/Sound.html#isReady(javax.media.j3d.View)">isReady</A></B>(<A HREF="../../../javax/media/j3d/View.html">View</A> view)</CODE><BR> Retrieves sound's 'ready' status.</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="../../../javax/media/j3d/Sound.html#setContinuousEnable(boolean)">setContinuousEnable</A></B>(boolean state)</CODE><BR> Enables or disables continuous play flag.</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="../../../javax/media/j3d/Sound.html#setEnable(boolean)">setEnable</A></B>(boolean state)</CODE><BR> Enable or disable sound.</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="../../../javax/media/j3d/Sound.html#setInitialGain(float)">setInitialGain</A></B>(float amplitude)</CODE><BR> Set the overall gain scale factor applied to data associated with this source to increase or decrease its overall amplitude.</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="../../../javax/media/j3d/Sound.html#setLoop(int)">setLoop</A></B>(int loopCount)</CODE><BR> Sets a sound's loop count.</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="../../../javax/media/j3d/Sound.html#setMute(boolean)">setMute</A></B>(boolean state)</CODE><BR> Set mute state flag.</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="../../../javax/media/j3d/Sound.html#setPause(boolean)">setPause</A></B>(boolean state)</CODE><BR> Pauses or resumes (paused) playing sound.</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="../../../javax/media/j3d/Sound.html#setPriority(float)">setPriority</A></B>(float priority)</CODE><BR> Set sound's priority value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -