📄 spbdevice.html
字号:
<BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - set to true to turn the channel on, false to turn it off.</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>Get the current state of the level meter. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean that determines whether the channel is on or off.</DL></DD></DL><HR><A NAME="getLevelMeterLevel()"><!-- --></A><H3>getLevelMeterLevel</H3><PRE>public int <B>getLevelMeterLevel</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the current level of the level meter. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>an integer that signals the current level of the channel.</DL></DD></DL><HR><A NAME="setAutomaticGainControl(boolean)"><!-- --></A><H3>setAutomaticGainControl</H3><PRE>public void <B>setAutomaticGainControl</B>(boolean flag) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the state of the automatic gain control. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - set to true to turn automatic gain on, false to turn it off.</DL></DD></DL><HR><A NAME="getAutomaticGainControl()"><!-- --></A><H3>getAutomaticGainControl</H3><PRE>public boolean <B>getAutomaticGainControl</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the state of the automatic gain control. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean that determines whether automatic gain is on or off.</DL></DD></DL><HR><A NAME="setInputGain(float)"><!-- --></A><H3>setInputGain</H3><PRE>public void <B>setInputGain</B>(float gain) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the input gain level. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>gain</CODE> - a float (fixed value) to set the gain to.</DL></DD></DL><HR><A NAME="getInputGain()"><!-- --></A><H3>getInputGain</H3><PRE>public float <B>getInputGain</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the input gain level. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a float (fixed) of the current level on the input gain.</DL></DD></DL><HR><A NAME="getInputSource()"><!-- --></A><H3>getInputSource</H3><PRE>public int <B>getInputSource</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the input Source Index. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>an integr which is the index of the current sound input source</DL></DD></DL><HR><A NAME="setInputSource(int)"><!-- --></A><H3>setInputSource</H3><PRE>public void <B>setInputSource</B>(int source) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>sets the input Source to the passed in (index) source. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD></DL><HR><A NAME="getInputSourceNames()"><!-- --></A><H3>getInputSourceNames</H3><PRE>public java.lang.String[] <B>getInputSourceNames</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get a list of the names of all the sound input sources supported by the sound input device<DD><DL></DL></DD></DL><HR><A NAME="getChannelAvailable()"><!-- --></A><H3>getChannelAvailable</H3><PRE>public int <B>getChannelAvailable</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the maximum number of channels this device can record. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the maximum number of channels this device can record.</DL></DD></DL><HR><A NAME="getNumberChannels()"><!-- --></A><H3>getNumberChannels</H3><PRE>public int <B>getNumberChannels</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Returns the number of channels that this device is to record. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>channels number of channels</DL></DD></DL><HR><A NAME="setNumberChannels(int)"><!-- --></A><H3>setNumberChannels</H3><PRE>public void <B>setNumberChannels</B>(int channels) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Sets the number of channels that this device is to record. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>channels</CODE> - number of channels</DL></DD></DL><HR><A NAME="getPlayThruOnOff()"><!-- --></A><H3>getPlayThruOnOff</H3><PRE>public int <B>getPlayThruOnOff</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Get the PlayThru level, 0 means it's off. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current PlayThru level.</DL></DD></DL><HR><A NAME="setPlayThruOnOff(int)"><!-- --></A><H3>setPlayThruOnOff</H3><PRE>public void <B>setPlayThruOnOff</B>(int volume) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the PlayThru level, 0 means it's off. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD></DL><HR><A NAME="setSampleRate(float)"><!-- --></A><H3>setSampleRate</H3><PRE>public void <B>setSampleRate</B>(float rate) throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Set the sample rate to be produced by this device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rate</CODE> - the rate of the device</DL></DD></DL><HR><A NAME="getSampleRate()"><!-- --></A><H3>getSampleRate</H3><PRE>public float <B>getSampleRate</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Gets the sample rate produced by this device. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the rate of the device</DL></DD></DL><HR><A NAME="getSampleRateAvailable()"><!-- --></A><H3>getSampleRateAvailable</H3><PRE>public float[] <B>getSampleRateAvailable</B>() throws <A HREF="../../quicktime/sound/SoundException.html">SoundException</A></PRE><DL><DD>Returns a float list containing the sample rates available. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/SOUND/imsoundinput.1a.htm#pgfId=880">QuickTime::SPBGetDeviceInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a float array containing the list of sample rates.</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -