UsbOutputLevel

From eMDeeWiki
Jump to navigationJump to search

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