loadSound method

Future<Sound> loadSound(
  1. AudioData audioData
)

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

Implementation

Future<Sound> loadSound(AudioData audioData) async {
  final engineSound = await _engine.loadSound(audioData);
  final sound = Sound._(engineSound);
  _soundsFinalizer.attach(this, sound);
  return sound;
}