⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conesound.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>&nbsp;position,                 <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[]&nbsp;frontDistanceAttenuation,                 <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[]&nbsp;backDistanceAttenuation,                 <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A>&nbsp;direction)</PRE><DL><DD>Constructs a ConeSound node object using all the provided PointSound parameter values.  This form uses points or vectors as input for its  position, direction, and front/back distance attenuation arrays.<P> Unlike the single distance gain attenuation array for PointSounds which define spherical areas about the sound source between which gains are linearly interpolated, this directed ConeSound can have two distance gain attenuation arrays that define ellipsoidal attenuation areas. See the  setDistanceGain PointSound method for details on how the separate distance and distanceGain arrays are interpreted.<P> The ConeSound's direction vector and angular measurements are defined in the local coordinate system of the node.<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</CODE> - scheduling bounds<DD><CODE>priority</CODE> - playback ranking value<DD><CODE>position</CODE> - 3D location of source<DD><CODE>frontDistanceAttenuation</CODE> - array of (distance,gain) pairs controlling  attenuation values along the positive direction axis<DD><CODE>backDistanceAttenuation</CODE> - array of (distance,gain) pairs controlling  attenuation values along the negative direction axis<DD><CODE>direction</CODE> - vector defining cones' axii</DL><HR><A NAME="ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float, float, float, float[], float[], float[], float[], float, float, float)"><!-- --></A><H3>ConeSound</H3><PRE>public <B>ConeSound</B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A>&nbsp;soundData,                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 float&nbsp;posX,                 float&nbsp;posY,                 float&nbsp;posZ,                 float[]&nbsp;frontDistance,                 float[]&nbsp;frontDistanceGain,                 float[]&nbsp;backDistance,                 float[]&nbsp;backDistanceGain,                 float&nbsp;dirX,                 float&nbsp;dirY,                 float&nbsp;dirZ)</PRE><DL><DD>Constructs a ConeSound node object using the provided parameter values. This form uses individual float parameters for the elements of the  position, direction, and two distance attenuation arrays. Unlike the single distance gain attenuation array for PointSounds, which  define spherical areas about the sound source between which gains are linearly interpolated, this directed ConeSound can have two distance gain attenuation arrays that define ellipsoidal attenuation areas.  See the setDistanceGain PointSound method for details on how the  separate distance and distanceGain arrays are interpreted. The ConeSound's direction vector and angular measurements are defined in the local coordinate system of the node.<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</CODE> - scheduling bounds<DD><CODE>priority</CODE> - playback ranking value<DD><CODE>posX</CODE> - x coordinate of location of source<DD><CODE>posY</CODE> - y coordinate of location of source<DD><CODE>posZ</CODE> - z coordinate of location of source<DD><CODE>frontDistance</CODE> - array of front distance values used for attenuation<DD><CODE>frontDistanceGain</CODE> - array of front gain scale factors used for attenuation<DD><CODE>backDistance</CODE> - array of back distance values used for attenuation<DD><CODE>backDistanceGain</CODE> - array of back gain scale factors used for attenuation<DD><CODE>dirX</CODE> - x coordinate cones' axii vector<DD><CODE>dirY</CODE> - y coordinate cones' axii vector<DD><CODE>dirZ</CODE> - z coordinate cones' axii vector</DL><HR><A NAME="ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, javax.vecmath.Point3f, javax.vecmath.Point2f[], javax.vecmath.Vector3f, javax.vecmath.Point3f[])"><!-- --></A><H3>ConeSound</H3><PRE>public <B>ConeSound</B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A>&nbsp;soundData,                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>&nbsp;position,                 <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[]&nbsp;distanceAttenuation,                 <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A>&nbsp;direction,                 <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[]&nbsp;angularAttenuation)</PRE><DL><DD>Constructs a ConeSound node object using all the provided PointSound parameter values, which include a single spherical distance attenuation array, but includes an angular attenuation array.  This form uses points and vectors as input for its position, direction, single spherical distanceAttenuation array, and angularAttenuation array. It also accepts arrays of points for the distance attenuation and angular values. Each Point2f in the distanceAttenuation array contains a distance and a gain scale factor. Each Point3f in the angularAttenuation array contains an angular distance, a gain scale factor, and a filtering value (which is currently defined as a simple cutoff frequency).<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</CODE> - scheduling bounds<DD><CODE>priority</CODE> - playback ranking value<DD><CODE>position</CODE> - 3D location of source<DD><CODE>distanceAttenuation</CODE> - array of (distance,gain) pairs controlling  attenuation values along the positive direction axis<DD><CODE>direction</CODE> - vector defining cones' axii<DD><CODE>angularAttenuation</CODE> - array of tuples defining angular gain/filtering</DL><HR><A NAME="ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float, float, float, float[], float[], float, float, float, float[], float[], float[])"><!-- --></A><H3>ConeSound</H3><PRE>public <B>ConeSound</B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A>&nbsp;soundData,                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 float&nbsp;posX,                 float&nbsp;posY,                 float&nbsp;posZ,                 float[]&nbsp;distance,                 float[]&nbsp;distanceGain,                 float&nbsp;dirX,                 float&nbsp;dirY,                 float&nbsp;dirZ,                 float[]&nbsp;angle,                 float[]&nbsp;angularGain,                 float[]&nbsp;frequencyCutoff)</PRE><DL><DD>Constructs a ConeSound node object using all the provided PointSound parameter values, which include a single spherical distance attenuation array, but includes an angular attenuation array. This form uses individual float parameters for elements of position, direction, distanceAttenuation array, and angularAttenuation array. It also accepts separate arrays for the distance and gain scale factors components of distance attenuation, and separate arrays for the angular distance, angular gain, and filtering components of angular attenuation. See the setDistanceGain ConeSound method for details on how the separate distance and distanceGain arrays are interpreted. See the  setAngularAttenuation ConeSound method for details on how the separate angularDistance, angularGain, and filter arrays are interpreted.<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</CODE> - scheduling bounds<DD><CODE>priority</CODE> - playback ranking value<DD><CODE>posX</CODE> - x coordinate of location of source<DD><CODE>posY</CODE> - y coordinate of location of source<DD><CODE>posZ</CODE> - z coordinate of location of source<DD><CODE>distance</CODE> - array of front distance values used for attenuation<DD><CODE>distanceGain</CODE> - array of front gain scale factors used for attenuation<DD><CODE>dirX</CODE> - x coordinate cones' axii vector<DD><CODE>dirY</CODE> - y coordinate cones' axii vector<DD><CODE>dirZ</CODE> - z coordinate cones' axii vector<DD><CODE>angle</CODE> - array of angle radians for angularAttenuation<DD><CODE>angularGain</CODE> - array of gain scale factors for angularAttenuation<DD><CODE>frequencyCutoff</CODE> - array of lowpass filter values in Hertz</DL><HR><A NAME="ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, javax.vecmath.Point3f, javax.vecmath.Point2f[], javax.vecmath.Point2f[], javax.vecmath.Vector3f, javax.vecmath.Point3f[])"><!-- --></A><H3>ConeSound</H3><PRE>public <B>ConeSound</B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A>&nbsp;soundData,                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>&nbsp;position,                 <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[]&nbsp;frontDistanceAttenuation,                 <A HREF="../../../javax/vecmath/Point2f.html">Point2f</A>[]&nbsp;backDistanceAttenuation,                 <A HREF="../../../javax/vecmath/Vector3f.html">Vector3f</A>&nbsp;direction,                 <A HREF="../../../javax/vecmath/Point3f.html">Point3f</A>[]&nbsp;angularAttenuation)</PRE><DL><DD>Constructs and initializes a new Cone Sound node explicitly setting all PointSound and ConeSound fields as arguments: the PointSound position, front and back distance attenuation Point2f array, and ConeSound direction vector and Point3f angular attenuation.<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</CODE> - scheduling bounds<DD><CODE>priority</CODE> - playback ranking value<DD><CODE>position</CODE> - 3D location of source<DD><CODE>frontDistanceAttenuation</CODE> - array of (distance,gain) pairs controlling  attenuation values along the positive direction axis<DD><CODE>backDistanceAttenuation</CODE> - array of (distance,gain) pairs controlling  attenuation values along the negative direction axis<DD><CODE>direction</CODE> - vector defining cones' axii<DD><CODE>angularAttenuation</CODE> - array of tuples defining angular gain/filtering</DL><HR><A NAME="ConeSound(javax.media.j3d.MediaContainer, float, int, boolean, boolean, boolean, javax.media.j3d.Bounds, float, float, float, float, float[], float[], float[], float[], float, float, float, float[], float[], float[])"><!-- --></A><H3>ConeSound</H3><PRE>public <B>ConeSound</B>(<A HREF="../../../javax/media/j3d/MediaContainer.html">MediaContainer</A>&nbsp;soundData,                 float&nbsp;initialGain,                 int&nbsp;loopCount,                 boolean&nbsp;release,                 boolean&nbsp;continuous,                 boolean&nbsp;enable,                 <A HREF="../../../javax/media/j3d/Bounds.html">Bounds</A>&nbsp;region,                 float&nbsp;priority,                 float&nbsp;posX,                 float&nbsp;posY,                 float&nbsp;posZ,                 float[]&nbsp;frontDistance,                 float[]&nbsp;frontDistanceGain,                 float[]&nbsp;backDistance,                 float[]&nbsp;backDistanceGain,                 float&nbsp;dirX,                 float&nbsp;dirY,                 float&nbsp;dirZ,                 float[]&nbsp;angle,                 float[]&nbsp;angularGain,                 float[]&nbsp;frequencyCutoff)</PRE><DL><DD>Constructs and initializes a new Cone Sound node explicitly setting all PointSound and ConeSound fields as arguments but all the vector and point arguments are broken into individual float array components.<P><DT><B>Parameters:</B><DD><CODE>soundData</CODE> - sound source data associated with this node<DD><CODE>initialGain</CODE> - amplitude scale factor applied to sound<DD><CODE>loopCount</CODE> - number of times sound is looped<DD><CODE>release</CODE> - flag denoting playing sound to end<DD><CODE>continuous</CODE> - denotes that sound silently plays when disabled<DD><CODE>enable</CODE> - sound switched on/off<DD><CODE>region</

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -