Difference between revisions of "UsbGetInputLevel"
From eMDeeWiki
Jump to navigationJump to search (Created page with '<tt>float UsbGetInputLevel(UAC_HANDLE devHandle)</tt> '''Return Value''' Returns '''Parameters''' ''devHandle'' :The device handle of an open device. Use the value returned…') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <tt>float UsbGetInputLevel(UAC_HANDLE devHandle)</tt> | + | <tt>float UsbGetInputLevel(UAC_HANDLE devHandle, int leftOrRight)</tt> |
'''Return Value''' | '''Return Value''' | ||
− | Returns | + | Returns a floating point value between 0.0 and 1.0 that represents the input level that is currently set for each channel of the audio CODEC. |
Line 11: | Line 11: | ||
''devHandle'' | ''devHandle'' | ||
:The device handle of an open device. Use the value returned by [[UsbI2cOpen]]. | :The device handle of an open device. Use the value returned by [[UsbI2cOpen]]. | ||
+ | |||
+ | ''leftOrRight'' | ||
+ | :Determines which stereo channel to retrieve the input level: | ||
+ | ::0 = Left CODEC channel | ||
+ | ::1 = Right CODEC channel | ||
'''Remarks''' | '''Remarks''' | ||
− | + | Use this function to retrieve the input volume level of the audio CODEC. This function can be used to read the default levels of the CODEC after initialization, or to verify the value written from a call to [[UsbInputLevel]]. | |
Latest revision as of 10:20, 9 July 2014
float UsbGetInputLevel(UAC_HANDLE devHandle, int leftOrRight)
Return Value
Returns a floating point value between 0.0 and 1.0 that represents the input level that is currently set for each channel of the audio CODEC.
Parameters
devHandle
- The device handle of an open device. Use the value returned by UsbI2cOpen.
leftOrRight
- Determines which stereo channel to retrieve the input level:
- 0 = Left CODEC channel
- 1 = Right CODEC channel
Remarks
Use this function to retrieve the input volume level of the audio CODEC. This function can be used to read the default levels of the CODEC after initialization, or to verify the value written from a call to UsbInputLevel.