📄 headspacemixer.html
字号:
<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/headspace/HeadspaceMixer.html#getStartTime(int)">getStartTime</A></B>(int index)</CODE><BR> Returns the system time of when the sound was last "started".</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/headspace/HeadspaceMixer.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/headspace/HeadspaceMixer.html#initialize()">initialize</A></B>()</CODE><BR> Code to initialize 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/headspace/HeadspaceMixer.html#muteSample(int)">muteSample</A></B>(int index)</CODE><BR> Makes the sample 'play silently'.</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/headspace/HeadspaceMixer.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/headspace/HeadspaceMixer.html#pauseSample(int)">pauseSample</A></B>(int index)</CODE><BR> Temporarily stops a cached sample from playing without resetting the sample's current pointer back to the beginning of the sound data so that it can be unpaused at a later time from the same location in the sample when the pause was initiated.</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/headspace/HeadspaceMixer.html#prepareSound(int, javax.media.j3d.MediaContainer)">prepareSound</A></B>(int soundType, <A HREF="../../../../../javax/media/j3d/MediaContainer.html">MediaContainer</A> soundData)</CODE><BR> Code to load sound data into a channel of device channel Load sound as one or mores sample into the Java Sound Mixer: a) as either a STREAM or CLIP based on whether cached is enabled b) positional and directional sounds use THREE samples per sound so index return for the first sample associated with prepared sound is incremented by 2.</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/headspace/HeadspaceMixer.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/headspace/HeadspaceMixer.html#setDirection(int, javax.vecmath.Vector3d)">setDirection</A></B>(int index, <A HREF="../../../../../javax/vecmath/Vector3d.html">Vector3d</A> direction)</CODE><BR> Sets this sound's direction from the local coordinate vector provided.</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/headspace/HeadspaceMixer.html#setFrequencyScaleFactor(float)">setFrequencyScaleFactor</A></B>(float scaleFactor)</CODE><BR> Set frequency scale factor 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/headspace/HeadspaceMixer.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/headspace/HeadspaceMixer.html#setLoop(int, int)">setLoop</A></B>(int index, int count)</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="../../../../../com/sun/j3d/audioengines/headspace/HeadspaceMixer.html#setPosition(int, javax.vecmath.Point3d)">setPosition</A></B>(int index, <A HREF="../../../../../javax/vecmath/Point3d.html">Point3d</A> position)</CODE><BR> Sets this sound's location (in Local coordinates) from specified Point.</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/headspace/HeadspaceMixer.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/headspace/HeadspaceMixer.html#setReflectionCoefficient(float)">setReflectionCoefficient</A></B>(float coefficient)</CODE><BR> Sets the Reflective Coefficient scale factor applied to distinct low-order early reflections of sound off the surfaces in the region defined by the current listening region.</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/headspace/HeadspaceMixer.html#setReverbDelay(float)">setReverbDelay</A></B>(float reverbDelay)</CODE><BR> Sets the reverberation delay 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="../../../../../com/sun/j3d/audioengines/headspace/HeadspaceMixer.html#setReverbOrder(int)">setReverbOrder</A></B>(int reverbOrder)</CODE><BR> Sets the reverberation order of reflections.</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/headspace/HeadspaceMixer.html#setRolloff(float)">setRolloff</A></B>(float rolloff)</CODE><BR> Set rolloff 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/headspace/HeadspaceMixer.html#setVelocityScaleFactor(float)">setVelocityScaleFactor</A></B>(float scaleFactor)</CODE><BR> Set velocity scale factor for current aural attribute applied to all samples when Doppler is calculated.</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/headspace/HeadspaceMixer.html#setVworldXfrm(int, javax.media.j3d.Transform3D)">setVworldXfrm</A></B>(int index, <A HREF="../../../../../javax/media/j3d/Transform3D.html">Transform3D</A> trans)</CODE><BR> Save a reference to the local to virtual world coordinate space</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/headspace/HeadspaceMixer.html#startSample(int)">startSample</A></B>(int index)</CODE><BR> Begins a sound playing on the AudioDevice.</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/headspace/HeadspaceMixer.html#stopSample(int)">stopSample</A></B>(int index)</CODE><BR> Stops the sound on the AudioDevice.</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/headspace/HeadspaceMixer.html#unmuteSample(int)">unmuteSample</A></B>(int index)</CODE><BR> Makes a silently playing sample audible.</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/headspace/HeadspaceMixer.html#unpauseSample(int)">unpauseSample</A></B>(int index)</CODE><BR> Restarts the paused sample from the location in the sample where paused.</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/headspace/HeadspaceMixer.html#updateSample(int)">updateSample</A></B>(int index)</CODE><BR> Explicitly updates a Sample.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.sun.j3d.audioengines.AudioEngine3DL2"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class com.sun.j3d.audioengines.AudioEngine3DL2</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>setDecayFilter, setDecayTime, setDensity, setDiffusion, setObstructionFilter, setObstructionGain, setOcclusionFilter, setOcclusionGain, setReflectionDelay, setReverbCoefficient</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.sun.j3d.audioengines.AudioEngine3D"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class com.sun.j3d.audioengines.AudioEngine3D</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getAuralParameters, getSample, getSampleList, getSampleListSize, getView, setAngularAttenuation, setDistanceFilter, setDistanceGain, setSampleGain, setView</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.sun.j3d.audioengines.AudioEngine"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class com.sun.j3d.audioengines.AudioEngine</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getAngleOffsetToSpeaker, getAudioPlaybackType, getCenterEarToSpeaker, getChannelsAvailable, getChannelsUsedForSound, setAngleOffsetToSpeaker, setAudioPlaybackType, setCenterEarToSpeaker</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.AudioDevice3D"><!-- --></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -