init method

  1. @override
Future<int> init()
override

初始化

Implementation

@override
Future<int> init() async {
  final int textureId = _textureCounter;
  _textureCounter++;
  _MethodAudioPlayer _audioPlayer = _MethodAudioPlayer(textureId);
  _audioPlayer.init();
  _audioPlayers[textureId] = _audioPlayer;
  return textureId;
}