OpenSDK  V4.2.0
Functions
Audio API

Functions

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_OpenSound (const char *szSessionId)
 Turn on audio. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CloseSound (const char *szSessionId)
 Turn off audio. More...
 
OPENSDK_API unsigned short CALLBACK OpenSDK_GetVolume (const char *szSessionId)
 Get volume. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVolume (const char *szSessionId, unsigned short uVolume)
 Adjust volume. More...
 

Detailed Description

Function Documentation

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CloseSound ( const char *  szSessionId)

Turn off audio.

Parameters
[in]szSessionIdSession ID
Returns
Return 0 on success, -1 on failure
See also
OpenSDK_OpenSound()
OPENSDK_API unsigned short CALLBACK OpenSDK_GetVolume ( const char *  szSessionId)

Get volume.

Parameters
[in]szSessionIdSession ID
Returns
If the returned value is smaller than 0, it indicates failed. While the other values (ranging from 0 to 100) indicate the volume.
See also
OpenSDK_SetVolume()
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_OpenSound ( const char *  szSessionId)

Turn on audio.

Parameters
[in]szSessionIdSession ID
Returns
Return 0 on success, -1 on failure
See also
OpenSDK_CloseSound()
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVolume ( const char *  szSessionId,
unsigned short  uVolume 
)

Adjust volume.

Parameters
[in]szSessionIdSession ID
[in]uVolumeVolume, ranging from 0 to 100
Returns
Return 0 on success, -1 on failure
See also
OpenSDK_GetVolume()