setAudioFile method

  1. @override
Future<void> setAudioFile({
  1. String mainPath = '',
  2. String accentedPath = '',
})
override

Implementation

@override
Future<void> setAudioFile({
  String mainPath = '',
  String accentedPath = '',
}) async {
  if (mainPath != '') {
    _mainSoundBufferTemp = await _bytesToAudioBuffer(mainPath);
  }
  if (accentedPath != '') {
    _accentedSoundBufferTemp = await _bytesToAudioBuffer(accentedPath);
  }
}