AudioElementSoundChannel constructor

AudioElementSoundChannel(
  1. AudioElementSound audioElementSound,
  2. num startTime,
  3. num duration,
  4. bool loop, [
  5. SoundTransform? soundTransform,
])

Implementation

AudioElementSoundChannel(AudioElementSound audioElementSound, num startTime,
    num duration, bool loop,
    [SoundTransform? soundTransform])
    : _audioElementSound = audioElementSound {
  _soundTransform = soundTransform ?? SoundTransform();
  _startTime = startTime.toDouble();
  _duration = duration.toDouble();
  _loop = loop;

  audioElementSound._requestAudioElement(this).then(_onAudioElement);
}