コード例 #1
0
        /// <summary>
        /// Starts playing the stream.
        /// Invokes "VoicePlayerStarted" to other application's modules.
        /// </summary>
        public void StartVoicePlaying()
        {
            try
            {
                _player.Start();
            }
            catch (Exception exception)
            {
                ErrorHandler(exception.Message);
                return;
            }

            VoicePlayerStarted?.Invoke(this, new EventArgs());
        }
コード例 #2
0
 /// <summary>
 /// Handles "VoicePlayerStarted" of the IVoicePlayerService object.
 /// Invokes "VoicePlayerStarted" to other application's modules.
 /// </summary>
 /// <param name="sender">Instance of the VoicePlayerService class.</param>
 /// <param name="e">Contains event data.</param>
 private void VoicePlayerStartedEventHandler(object sender, EventArgs e)
 {
     VoicePlayerStarted?.Invoke(this, new EventArgs());
 }