UsbOutputBalance

From eMDeeWiki
Jump to navigationJump to search

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