📄 sndchannel.html
字号:
<A NAME="doCommand(quicktime.sound.SndCommand, boolean)"><!-- --></A><H3>doCommand</H3><PRE>public void <B>doCommand</B>(<A HREF="../../quicktime/sound/SndCommand.html">SndCommand</A> cmd, boolean noWait) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The SndDoCommand function sends the sound command specified in the cmd parameter to the end of the command queue of the channel specified in the chan parameter.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cmd</CODE> - A sound command to be sent to the channel<DD><CODE>noWait</CODE> - noWait A flag indicating whether the Sound Manager should wait for a free space in a full queue (FALSE) or whether it should return immediately with a queueFull result code if the queue is full (TRUE).</DL></DD></DL><HR><A NAME="doImmediate(quicktime.sound.SndCommand)"><!-- --></A><H3>doImmediate</H3><PRE>public void <B>doImmediate</B>(<A HREF="../../quicktime/sound/SndCommand.html">SndCommand</A> cmd) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>The SndDoImmediate function operates much like SndDoCommand, except that it bypasses the existing command queue of the sound channel and sends the specified command directly to the Sound Manager for immediate processing. </DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cmd</CODE> - A sound command to be sent to the channel</DL></DD></DL><HR><A NAME="getLevelMeterOnOff()"><!-- --></A><H3>getLevelMeterOnOff</H3><PRE>public boolean <B>getLevelMeterOnOff</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Gets Level Meter state.</DL></DD><DD><DL><DT><B>Returns:</B><DD>the balance value</DL></DD></DL><HR><A NAME="setLevelMeterOnOff(boolean)"><!-- --></A><H3>setLevelMeterOnOff</H3><PRE>public void <B>setLevelMeterOnOff</B>(boolean enabled) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Sets Level Meter state.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - true if enabled</DL></DD></DL><HR><A NAME="enableClock(boolean)"><!-- --></A><H3>enableClock</H3><PRE>public void <B>enableClock</B>(boolean flag) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Returns the current clock of the SoundClock.</DL></DD><DD><DL><DT><B>Returns:</B><DD>the clock</DL></DD></DL><HR><A NAME="getClock()"><!-- --></A><H3>getClock</H3><PRE>public <A HREF="../../quicktime/std/clocks/Clock.html">Clock</A> <B>getClock</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Returns the current clock of the SoundClock.</DL></DD><DD><DL><DT><B>Returns:</B><DD>the clock</DL></DD></DL><HR><A NAME="getActiveLevels()"><!-- --></A><H3>getActiveLevels</H3><PRE>public <A HREF="../../quicktime/std/movies/media/LevelMeterInfo.html">LevelMeterInfo</A> <B>getActiveLevels</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Gets the level values.</DL></DD><DD><DL><DT><B>Returns:</B><DD>LevelMeterInfo object</DL></DD></DL><HR><A NAME="getEQSpectrumBands(int)"><!-- --></A><H3>getEQSpectrumBands</H3><PRE>public <A HREF="../../quicktime/std/movies/media/MediaEQSpectrumBands.html">MediaEQSpectrumBands</A> <B>getEQSpectrumBands</B>(int count) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Pass in the count of bands you expect to get back, it would return the the actual value of bands available with their frequncy limits.</DL></DD><DD><DL><DT><B>Returns:</B><DD>MediaEQSpectrumBandsRecord object</DL></DD></DL><HR><A NAME="setEQSpectrumBands(quicktime.std.movies.media.MediaEQSpectrumBands)"><!-- --></A><H3>setEQSpectrumBands</H3><PRE>public void <B>setEQSpectrumBands</B>(<A HREF="../../quicktime/std/movies/media/MediaEQSpectrumBands.html">MediaEQSpectrumBands</A> spectrumInfo) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the array of fequencies that are used to calculate spectral information. The frequencies are the upper limits for each band, thus the first frequency specified (say 100) will set that first band from 0 to 100Hz, the second value (say 200) sets the second band from 100 to 200Hz.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>spectrumInfo</CODE> - MediaEQSpectrumBandsRecord object</DL></DD></DL><HR><A NAME="getEQSpectrumLevels(int)"><!-- --></A><H3>getEQSpectrumLevels</H3><PRE>public int[] <B>getEQSpectrumLevels</B>(int count) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Gets the Equalizer Band Levels. The levels are equal to supplied the bands count.</DL></DD><DD><DL><DT><B>Returns:</B><DD>bandLevels</DL></DD></DL><HR><A NAME="getEQToneControlOnOff()"><!-- --></A><H3>getEQToneControlOnOff</H3><PRE>public boolean <B>getEQToneControlOnOff</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Returns true if the tone control (bass and treble) are enabled.</DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean.</DL></DD></DL><HR><A NAME="setEQToneControlOnOff(boolean)"><!-- --></A><H3>setEQToneControlOnOff</H3><PRE>public void <B>setEQToneControlOnOff</B>(boolean flag) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>If true enables the tone control (bass and treble).</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - a boolean.</DL></DD></DL><HR><A NAME="setEQToneControlGain(int, int)"><!-- --></A><H3>setEQToneControlGain</H3><PRE>public void <B>setEQToneControlGain</B>(int bass, int treble) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Sets the values of the bass and treble tone control gain values. Range is 0 to 255 unity gain. You can overdrive these values...</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bass</CODE> - the sound bass<DD><CODE>treble</CODE> - the sound treble</DL></DD></DL><HR><A NAME="getEQToneControlGain()"><!-- --></A><H3>getEQToneControlGain</H3><PRE>public int[] <B>getEQToneControlGain</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Gets the values of the bass and treble tone control gain values. Range is 0 to 255 unity gain. You can overdrive these values...</DL></DD><DD><DL><DT><B>Returns:</B><DD>an array on length 2, containing 1st element as bass and 2nd element as treble.</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=2 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="class-use/SndChannel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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"> <A HREF="../../quicktime/sound/SCStatus.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/sound/SndCommand.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="SndChannel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -