public AudioPlayer(IAudioWrapper audioWrapper, ILogger <AudioPlayer> logger) { _audioWrapper = audioWrapper; _audioWrapper.AudioLoadedEvent += _audioWrapper_AudioLoadedEvent; _audioWrapper.AudioPausedEvent += (s, e) => AudioPausedEvent?.Invoke(this, e); _audioWrapper.AudioStartedEvent += (s, e) => AudioStartedEvent?.Invoke(this, e); _logger = logger; }
public void AudioPlayed() { AudioStartedEvent?.Invoke(this, EventArgs.Empty); }