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

📄 audiodevice.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#initialize()">initialize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the audio device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#setAngleOffsetToSpeaker(float)">setAngleOffsetToSpeaker</A></B>(float&nbsp;angle)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Angle Offset (in radians) To Speaker.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#setAudioPlaybackType(int)">setAudioPlaybackType</A></B>(int&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Type of Audio Playback physical transducer(s) sound is output to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#setCenterEarToSpeaker(float)">setCenterEarToSpeaker</A></B>(float&nbsp;distance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Distance from interaural mid-point between Ears to a Speaker.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="HEADPHONES"><!-- --></A><H3>HEADPHONES</H3><PRE>public static final int <B>HEADPHONES</B></PRE><DL><DD>Choosing Headphones as the audio playback type     specifies that the audio playback will be through stereo headphones.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.AudioDevice.HEADPHONES">Constant Field Values</A></DL></DL><HR><A NAME="MONO_SPEAKER"><!-- --></A><H3>MONO_SPEAKER</H3><PRE>public static final int <B>MONO_SPEAKER</B></PRE><DL><DD>Choosing a      single near-field monoaural speaker     as the audio playback type     specifies that the audio playback will be through a single speaker     some supplied distance away from the listener.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.AudioDevice.MONO_SPEAKER">Constant Field Values</A></DL></DL><HR><A NAME="STEREO_SPEAKERS"><!-- --></A><H3>STEREO_SPEAKERS</H3><PRE>public static final int <B>STEREO_SPEAKERS</B></PRE><DL><DD>Choosing a      two near-field stereo speakers     as the audio playback type     specifies that the audio playback will be through stereo speakers     some supplied distance away from, and at some given angle to      the listener.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.AudioDevice.STEREO_SPEAKERS">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public boolean <B>initialize</B>()</PRE><DL><DD>Initialize the audio device. Exactly what occurs during initialization is implementation dependent. This method provides explicit control by the user over when this initialization occurs. Initialization must be initiated before any other AudioDevice methods are called.<P><DD><DL><DT><B>Returns:</B><DD>true if initialization was successful without errors</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public boolean <B>close</B>()</PRE><DL><DD>Code to close the device and release resources.<P><DD><DL><DT><B>Returns:</B><DD>true if close of device was successful without errors</DL></DD></DL><HR><A NAME="setAudioPlaybackType(int)"><!-- --></A><H3>setAudioPlaybackType</H3><PRE>public void <B>setAudioPlaybackType</B>(int&nbsp;type)</PRE><DL><DD>Set Type of Audio Playback physical transducer(s) sound is output to.     Valid types are HEADPHONES, MONO_SPEAKER, STEREO_SPEAKERS<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - audio playback type</DL></DD></DL><HR><A NAME="getAudioPlaybackType()"><!-- --></A><H3>getAudioPlaybackType</H3><PRE>public int <B>getAudioPlaybackType</B>()</PRE><DL><DD>Get Type of Audio Playback Output Device.<P><DD><DL><DT><B>Returns:</B><DD>audio playback type</DL></DD></DL><HR><A NAME="setCenterEarToSpeaker(float)"><!-- --></A><H3>setCenterEarToSpeaker</H3><PRE>public void <B>setCenterEarToSpeaker</B>(float&nbsp;distance)</PRE><DL><DD>Set Distance from interaural mid-point between Ears to a Speaker.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>distance</CODE> - from interaural midpoint between the ears to closest speaker</DL></DD></DL><HR><A NAME="getCenterEarToSpeaker()"><!-- --></A><H3>getCenterEarToSpeaker</H3><PRE>public float <B>getCenterEarToSpeaker</B>()</PRE><DL><DD>Get Distance from interaural mid-point between Ears to a Speaker.<P><DD><DL><DT><B>Returns:</B><DD>distance from interaural midpoint between the ears to closest speaker</DL></DD></DL><HR><A NAME="setAngleOffsetToSpeaker(float)"><!-- --></A><H3>setAngleOffsetToSpeaker</H3><PRE>public void <B>setAngleOffsetToSpeaker</B>(float&nbsp;angle)</PRE><DL><DD>Set Angle Offset (in radians) To Speaker.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>angle</CODE> - in radians from head Z axis and vector from center ear to speaker</DL></DD></DL><HR><A NAME="getAngleOffsetToSpeaker()"><!-- --></A><H3>getAngleOffsetToSpeaker</H3><PRE>public float <B>getAngleOffsetToSpeaker</B>()</PRE><DL><DD>Get Angle Offset (in radians) To Speaker.<P><DD><DL><DT><B>Returns:</B><DD>angle in radians from head Z axis and vector from center ear to speaker</DL></DD></DL><HR><A NAME="getTotalChannels()"><!-- --></A><H3>getTotalChannels</H3><PRE>public int <B>getTotalChannels</B>()</PRE><DL><DD>Query total number of channels available for sound rendering for this audio device.  This returns the maximum number of channels  available for Java3D sound rendering for all sound sources.<P><DD><DL><DT><B>Returns:</B><DD>total number of channels that can be used for this audio device</DL></DD></DL><HR><A NAME="getChannelsAvailable()"><!-- --></A><H3>getChannelsAvailable</H3><PRE>public int <B>getChannelsAvailable</B>()</PRE><DL><DD>Query number of channels currently available for use. During rendering, when sound nodes are playing, this method returns the number of channels still available to Java3D for rendering additional sound nodes.<P><DD><DL><DT><B>Returns:</B><DD>total number of channels current available</DL></DD></DL><HR><A NAME="getChannelsUsedForSound(javax.media.j3d.Sound)"><!-- --></A><H3>getChannelsUsedForSound</H3><PRE>public int <B>getChannelsUsedForSound</B>(<A HREF="../../../javax/media/j3d/Sound.html">Sound</A>&nbsp;node)</PRE><DL><DD>Query number of channels that are used, or would be used to render  a particular sound node.  This method returns the number of channels needed to render a particular Sound node.  The return value is the same no matter if the Sound is currently active and enabled (being played) or is inactive.<P><DD><DL><DT><B>Returns:</B><DD>number of channels a particular Sound node is using or would used if enabled and activated (rendered).</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../javax/media/j3d/AudioDevice3D.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>  &nbsp;&nbsp;<A HREF="AudioDevice.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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