tencent cloud

Game Multimedia Engine

릴리스 노트
제품 소개
제품 개요
장점 및 특징
제품 기능
응용 시나리오
보안 및 컴플라이언스 인증
사용자 튜토리얼
SDK 다운로드 가이드
제품 기능 데모
기본 기능 데모
시나리오 기반 Demo
콘솔 가이드
사용량 조회
서비스 활성화
시작하기
Quick Integration of SDK
Quick Integration of Sample Project
기본 기능 개발 가이드
인증 키
실시간 음성 채팅 역할 설정
음질 선택
고급 기능 개발 가이드
서버 녹음
레인지 보이스
3D 음향 효과
음향 효과 및 반주
네트워크 오디오 스트림 포워딩 라우팅
사용자 지정 메시지 채널
회사 방화벽 제한을 해결하는 방법
Language Parameter Reference List
GME 채팅방 관리 통합
클라이언트 API
Unity SDK
SDK for Unreal Engine
Cocos2D SDK
SDK for Windows
SDK for iOS
SDK for Android
SDK for macOS
H5 SDK
Electron SDK
SDK for Flutter
SDK Version Upgrade Guide
에러 코드
Toolchain
Server APIs
History
Introduction
API Category
Usage APIs
Recording APIs
Making API Requests
Voice Chat APIs
Application APIs
Data Types
Error Codes
FAQ
제품 기능
문제 해결 가이드
과금
Sample Project 사용 문제
일반 문제
인증
방 입장 실패
사운드 및 오디오
네트워크
음성을 텍스트로 변환
프로그램 내보내기
Service Agreement
Service Level Agreement
문의하기
용어집
GME 정책
데이터 처리 및 보안 계약
개인 정보 보호 정책

SDK Version Upgrade Guide

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-18 15:15:48
This document describes the upgrade of GME.

Upgrade from GME 2.x to 2.9

SDK updates

Dynamic library split
Rename Android package
The GME SDK is updated with the following new library files in addition to libgmesdk.

Library files' corresponding features

The new version of GME splits the dynamic libraries to reduce the package size. You can only import the library files you need. For example, if you only need the voice changing feature, to import libgme_soundtouch is good.
Library File
Feature
libgmefdkaac
1. Used to enter an SD or HD voice room.
2. Used to play back accompaniment files in ACC format
libgmefaad2
Used to play back accompaniment files in MP4 format
libgmeogg
Used to play back accompaniment files in OGG format
libgmelamemp3
Used to play back accompaniment files in MP3 format
libgmesoundtouch
Used for voice changing and pitch changing

Upgrade Notice

For iOS upgrade, please see iOS Project Upgrade guide. For Android upgrade, you need to rename package(change Tencent into GME) and modify obfuscation configuration. Please see Project Export. For Unity upgrade, if you used SD or HD sound quality, or accompaniment, please see Using HD Sound Quality.

Upgrade from GME 2.2 to 2.3.5

SDK updates

New features
Offline voice can be used during voice chat now.
Voice chat can filter offensive, insecure, or inappropriate information.
HTML5-based voice chat is supported now, making voice chat available across all operating systems.
Android v8a architecture is supported now.
Low-latency capture and playback is adaptive to Android now.
Optimizations
Optimized the range voice APIs of the SDK to lower the access threshold.
Optimized noise reduction for voice.
Greatly reduced memory usage by the SDK.

Changes in Major APIs

EnterRoom

The room entering operation has been changed from sync to async. If the return value is 0, the async delivery is successful and waiting to be processed by the callback function; otherwise, the async delivery fails.
public abstract int EnterRoom();

ExitRoom

The room exiting operation has been changed from sync to async. It is handled in the same way as the RoomExitComplete callback function. If the return value is AV_OK, the async delivery is successful.
Note:
If there is a scenario in the application where room entry is performed immediately after room exit, you don't need to wait for the RoomExitComplete callback notification from the ExitRoom API during API call; instead, you can directly call the API.
public abstract int ExitRoom();

Changes in Error Codes

For uniform processing of all error codes, use !AV_OK.
To handle the errors separately, focus on the type of error returned by the API.
Note:
Error code "1" has no specific meaning and will no longer be returned since v2.3.5, so it has been deleted.

Changes in Other APIs

PauseAudio/ResumeAudio

public int PauseAudio()
public int ResumeAudio()
If the ITMGAudioCtrl::PauseAudio or ResumeAudio API is called in an SDK before v2.3, please see the table below for version comparison.
Before v2.3
v2.3
For mutual exclusivity with other modules
Change PauseAudio to Pause and change ResumeAudio to Resume
For using offline voice in voice chat
Delete PauseAudio and ResumeAudio

Changes in the Parameters of the SetLogLevel API

Original API
ITMGContext virtual void SetLogLevel(int logLevel, bool enableWrite, bool enablePrint)
New API
ITMGContext virtual void SetLogLevel(ITMG_LOG_LEVEL levelWrite, ITMG_LOG_LEVEL levelPrint)
Parameter description
Parameter
Type
Description
levelWrite
ITMG_LOG_LEVEL
Sets the level of logs to be written, TMG_LOG_LEVEL_NONE means not to write
levelPrint
ITMG_LOG_LEVEL
Sets the level of logs to be printed, TMG_LOG_LEVEL_NONE means not to print
ITMG_LOG_LEVEL Type
ITMG_LOG_LEVEL
Description
TMG_LOG_LEVEL_NONE=0
Do not print logs
TMG_LOG_LEVEL_ERROR=1
Prints error logs (default)
TMG_LOG_LEVEL_INFO=2
Prints prompt logs
TMG_LOG_LEVEL_DEBUG=3
Prints development and debugging logs
TMG_LOG_LEVEL_VERBOSE=4
Prints high-frequency logs

Upgrade from GME 2.3.5 to 2.5.1

New APIs

GetSendStreamLevel

This API is used to get the real-time audio upstreaming volume level. An int-type value will be returned. Value range: 0–100.
ITMGContextGetInstance()->GetAudioCtrl()->GetSendStreamLevel();

GetRecvStreamLevel

This API is used to get the real-time audio downstreaming volume levels of other members in the room. An int-type value will be returned. Value range: 0–100.
iter->second.level = ITMGContextGetInstance()->GetAudioCtrl()->GetRecvStreamLevel(iter->second.openid.c_str());

API changes

Type change for returned values of voice messaging and speech-to-text APIs

The type of returned values of the following APIs has been changed to int.
StartRecording
UploadRecordedFile
DownloadRecordedFile
PlayRecordedFile
SpeechToText

Upgrade from GME 2.5 to 2.7

New APIs

PlayRecordedFile(const char* filePath, ITMG_VOICE_TYPE voiceType)

This API is used to playback voice message with voice changing effects.

SetAccompanyKey(int nKey)

This API is used to set the voice chat accompaniment up and down.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백