📄 audiodevice.html
字号:
<CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#initialize()">initialize</A></B>()</CODE><BR> Initialize 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="../../../javax/media/j3d/AudioDevice.html#setAngleOffsetToSpeaker(float)">setAngleOffsetToSpeaker</A></B>(float angle)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#setAudioPlaybackType(int)">setAudioPlaybackType</A></B>(int type)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/AudioDevice.html#setCenterEarToSpeaker(float)">setCenterEarToSpeaker</A></B>(float distance)</CODE><BR> Set Distance from interaural mid-point between Ears to a Speaker.</TD></TR></TABLE> <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 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 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 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> 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <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> <A HREF="AudioDevice.html" TARGET="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -