setSoundTouch method

Future<bool> setSoundTouch(
  1. SoundTouchType touchType
)

Implementation

Future<bool> setSoundTouch(SoundTouchType touchType) async {
  if (isCreated == false) return false;
  if (source == null) return false;
  var result = await app_player_channel.invokeMethod(
      "app_player_soundTouch", [this.textureId, touchType.index]);
  if (result == true) {
    this.soundTouchType = touchType;
  }
  return result;
}