📄 javasoundmixer.html
字号:
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#clearSound(int)">clearSound</A></B>(int index)</CODE><BR> Clears the fields associated with sample data 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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#close()">close</A></B>()</CODE><BR> Code to close the device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#getNumberOfChannelsUsed(int)">getNumberOfChannelsUsed</A></B>(int index)</CODE><BR> Get number of channels used by a particular sample on the audio device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#getNumberOfChannelsUsed(int, boolean)">getNumberOfChannelsUsed</A></B>(int index, boolean muted)</CODE><BR> Overriden method from AudioEngine3D.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#getSampleDuration(int)">getSampleDuration</A></B>(int index)</CODE><BR> Get length of time a sample would play if allowed to play to completion.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#getStartTime(int)">getStartTime</A></B>(int index)</CODE><BR> Get time this sample begun playing on the audio device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#getTotalChannels()">getTotalChannels</A></B>()</CODE><BR> Query total number of channels available for sound rendering for this audio device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#initialize()">initialize</A></B>()</CODE><BR> Code to initialize the device New interface to mixer/engine specific methods</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#muteSample(int)">muteSample</A></B>(int index)</CODE><BR> Mute sample.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#pause()">pause</A></B>()</CODE><BR> Pauses audio device engine without closing the device and associated threads.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#pauseSample(int)">pauseSample</A></B>(int index)</CODE><BR> Pause sample.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#prepareSound(int, javax.media.j3d.MediaContainer)">prepareSound</A></B>(int soundType, <A HREF="../../../../../javax/media/j3d/MediaContainer.html" title="class in javax.media.j3d">MediaContainer</A> soundData)</CODE><BR> Code to load sound data into a channel of device mixer.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#resume()">resume</A></B>()</CODE><BR> Resumes audio device engine (if previously paused) without reinitializing * the device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setDirection(int, javax.vecmath.Vector3d)">setDirection</A></B>(int index, <A HREF="../../../../../javax/vecmath/Vector3d.html" title="class in javax.vecmath">Vector3d</A> direction)</CODE><BR> Set direction vector of sample.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setGain(float)">setGain</A></B>(float scaleFactor)</CODE><BR> Set overall gain control of all sounds playing on the audio device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setLoop(int, int)">setLoop</A></B>(int index, int count)</CODE><BR> Set number of times sample is looped.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setPosition(int, javax.vecmath.Point3d)">setPosition</A></B>(int index, <A HREF="../../../../../javax/vecmath/Point3d.html" title="class in javax.vecmath">Point3d</A> position)</CODE><BR> Set location of sample.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setRateScaleFactor(int, float)">setRateScaleFactor</A></B>(int index, float rateScaleFactor)</CODE><BR> Set scale factor applied to sample playback rate for a particular sound associated with the audio device.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setReflectionCoefficient(float)">setReflectionCoefficient</A></B>(float coefficient)</CODE><BR> Set reverberation surface reflection coefficient value for current aural attribute applied to all samples.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setReverbDelay(float)">setReverbDelay</A></B>(float reverbDelay)</CODE><BR> Set reverberation delay time for current aural attribute applied to all samples.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setReverbOrder(int)">setReverbOrder</A></B>(int reverbOrder)</CODE><BR> Set reverberation order for current aural attribute applied to all samples.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#setVworldXfrm(int, javax.media.j3d.Transform3D)">setVworldXfrm</A></B>(int index, <A HREF="../../../../../javax/media/j3d/Transform3D.html" title="class in javax.media.j3d">Transform3D</A> trans)</CODE><BR> Save a reference to the local to virtual world coordinate space Overriden method from AudioEngine3D.</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#startSample(int)">startSample</A></B>(int index)</CODE><BR> Start sample playing on audio device</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="../../../../../com/sun/j3d/audioengines/javasound/JavaSoundMixer.html#stopSample(int)">stopSample</A></B>(int index)</CODE><BR> Stop sample playing on audio device</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -