getAudioEffectManager method

TXAudioEffectManager getAudioEffectManager()

Get sound effect management class TXAudioEffectManager, which is used to set the background music, short sound effects and life effects.

Platform not supported:

  • web

Implementation

TXAudioEffectManager getAudioEffectManager() {
  if (_audioEffectManager == null) {
    _cloudChannel!.invokeMethod('getAudioEffectManager');
    if (listener == null) {
      listener = TRTCCloudListenerWrapper(_cloudChannel!);
    }
    _audioEffectManager = new TXAudioEffectManager(_cloudChannel!, listener);
  }
  return _audioEffectManager!;
}