Difference between revisions of "UsbOutputLevel"

From eMDeeWiki
Jump to navigationJump to search
(Created page with '<tt>UAC_HANDLE UsbOutputLevel(UAC_HANDLE devHandle)</tt> '''Return Value''' Returns '''Parameters''' ''devHandle'' :The device handle of an open device. Use the value retur…')
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<tt>UAC_HANDLE UsbOutputLevel(UAC_HANDLE devHandle)</tt>
+
<tt>int UsbOutputLevel(UAC_HANDLE devHandle, float level)</tt>
  
  
 
'''Return Value'''
 
'''Return Value'''
  
Returns
+
[[File:ErrorMacros.png]]
  
  
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]].
 +
 +
''level''
 +
:A normalized value from 0.0 to 1.0 that represents the volume level of the output. A value of 0.0 will be minimum volume and a value of 1.0 will be maximum volume.
  
  
 
'''Remarks'''
 
'''Remarks'''
  
Opens
+
Use this function to set the output volume of the audio CODEC.  This sets the overall volume level of both stereo channels of the CODEC.  This function, in combination with [[UsbOutputBalance]], can be used to set the level of the left and right output channels of the CODEC.
  
  

Latest revision as of 11:15, 19 June 2014

int UsbOutputLevel(UAC_HANDLE devHandle, float level)


Return Value

ErrorMacros.png


Parameters

devHandle

The device handle of an open device. Use the value returned by UsbI2cOpen.

level

A normalized value from 0.0 to 1.0 that represents the volume level of the output. A value of 0.0 will be minimum volume and a value of 1.0 will be maximum volume.


Remarks

Use this function to set the output volume of the audio CODEC. This sets the overall volume level of both stereo channels of the CODEC. This function, in combination with UsbOutputBalance, can be used to set the level of the left and right output channels of the CODEC.



USBI2C API Reference
Index of Functions
Home