loadSound method

Future<LoadedSound> loadSound(
  1. TypedData audioData
)

Copies data to the internal memory location and creates a LoadedSound from it.

Implementation

Future<LoadedSound> loadSound(TypedData audioData) async {
  final platformSound = await _engine.loadSound(audioData);
  final sound = LoadedSound._(platformSound);
  _soundsFinalizer.attach(sound, platformSound);
  return sound;
}