Difference between revisions of "UsbOutputBalance"

From eMDeeWiki
Jump to navigationJump to search
(Created page with '<tt>UAC_HANDLE UsbOutputBalance(UAC_HANDLE devHandle)</tt> '''Return Value''' Returns '''Parameters''' ''devHandle'' :The device handle of an open device. Use the value ret…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<tt>UAC_HANDLE UsbOutputBalance(UAC_HANDLE devHandle)</tt>
+
<tt>int UsbOutputBalance(UAC_HANDLE devHandle, float fPan)</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]].
 +
 +
''fPan''
 +
:A normalized value from -1.0 to 1.0 representing the balance, or pan, of the output.  A value of -1.0 will pan the output completely to the left channel and a value of 1.0 will pan the output completely to the right channel.  The value is continuous between -1.0 and 1.0 with a value of 0.0 being the center (equal volume to both left and right channels).
  
  
 
'''Remarks'''
 
'''Remarks'''
  
Opens
+
Use this function to set the output balance of the audio CODEC.  This is the "pan position" for the audio signals being sent from the audio CODEC.  This function, in combination with [[UsbOutputLevel]], can be used to set the level of the left and right output channels of the CODEC.
  
  

Latest revision as of 10:14, 9 July 2014

int UsbOutputBalance(UAC_HANDLE devHandle, float fPan)


Return Value

ErrorMacros.png


Parameters

devHandle

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

fPan

A normalized value from -1.0 to 1.0 representing the balance, or pan, of the output. A value of -1.0 will pan the output completely to the left channel and a value of 1.0 will pan the output completely to the right channel. The value is continuous between -1.0 and 1.0 with a value of 0.0 being the center (equal volume to both left and right channels).


Remarks

Use this function to set the output balance of the audio CODEC. This is the "pan position" for the audio signals being sent from the audio CODEC. This function, in combination with UsbOutputLevel, can be used to set the level of the left and right output channels of the CODEC.



USBI2C API Reference
Index of Functions
Home