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');
    _audioEffectManager = new TXAudioEffectManager(_cloudChannel!);
  }
  return _audioEffectManager!;
}