AppID
and Key
of the SDK as instructed in Activating Services.tmg_adv_win.h
file in the same directory as other header files in the GME SDK for Windows.virtual int StartAccompany(const char* playerPath, int playerPathLength, const char* mediaFilePath, int mediaFilePathLenght, GMEAccompany_SourceType sourceType) = 0
Parameter | Type | Description |
playerPath | const char* | Player path |
playerPathLength | int | Player path length |
mediaFilePath | const char* | Audio resource path, which can be a file path, folder path, or NULL . |
mediaFilePathLenght | int | Audio resource path length |
sourceType | GMEAccompany_SourceType |
sourceType
description:Parameter | Type |
AV_ACCOMPANY_SOURCE_TYPE_NONE = 0 | The feature is not enabled |
AV_ACCOMPANY_SOURCE_TYPE_SYSTEM = 1 | The audio of the entire system is hooked. You don't have to pass in the audio resource path but need to pass in a known file path as the player path parameter. |
AV_ACCOMPANY_SOURCE_TYPE_PROCESS = 2 | The audio of a process, such as QQ Music, is hooked |
const char* file = "C:\\\\1.txt";// When hooking the system audio, you need to pass in a known file path. Make sure that the file exists.int ret = ITMGAdcanceGetInstance()->StartAccompany(file, strlen(file), NULL, 0, AV_ACCOMPANY_SOURCE_TYPE_SYSTEM);
virtual int StopAccompany() = 0
100
indicates that the volume level remains unchanged. The value range is 0–200.virtual int SetAccompanyVolume(int value) = 0;
virtual int GetAccompanyVolume(int* pVolume) = 0;
virtual int GetAccompanyVolumeDynamic(int* pVolume) = 0;
100
, the value range is 0–100, and 0
indicates that the device is mute.virtual int SetMicDeviceVolume(int vol) = 0;
virtual int GetMicDeviceVolume() = 0;
100
, the value range is 0–100, and 0
indicates that the device is mute.virtual int SetSpeakerDeviceVolume(int vol) = 0;
virtual int GetSpeakerDeviceVolume() = 0;
Was this page helpful?