Exemplo n.º 1
0
 /// <summary>
 /// Raises SoundEvent
 /// </summary>
 /// <param name="e">SoundEvent Args</param>
 protected void OnSoundEvent(SoundEventArgs e)
 {
     if (SoundEvent != null)
     {
         SoundEvent(this, e);
     }
 }
Exemplo n.º 2
0
 private void ProcessSoundEvent(object sender, SoundEventArgs e)
 {
     if (e.Action == SoundAction.Stop)
     {
         this.Stop();
     }
     else if (e.Action == SoundAction.Fadeout)
     {
         this.Fadeout(e.FadeoutTime);
     }
     else
     {
         throw new SdlException();
     }
 }
Exemplo n.º 3
0
 private void ProcessSoundEvent(object sender, SoundEventArgs e)
 {
     if (e.Action == SoundAction.Stop)
     {
         this.Stop();
     }
     else if (e.Action == SoundAction.Fadeout)
     {
         this.Fadeout(e.FadeoutTime);
     }
     else
     {
         throw new SdlException();
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Raises SoundEvent
 /// </summary>
 /// <param name="e">SoundEvent Args</param>
 protected void OnSoundEvent(SoundEventArgs e)
 {
     if (SoundEvent != null)
     {
         SoundEvent(this, e);
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Fades out the sound sample.
 /// </summary>
 public void Fadeout(int fadeoutTime)
 {
     SoundEventArgs args = new SoundEventArgs(SoundAction.Fadeout, fadeoutTime);
     OnSoundEvent(args);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Stops the sound sample.
 /// </summary>
 public void Stop()
 {
     SoundEventArgs args = new SoundEventArgs(SoundAction.Stop);
     OnSoundEvent(args);
 }
Exemplo n.º 7
0
        /// <summary>
        /// Fades out the sound sample.
        /// </summary>
        public void Fadeout(int fadeoutTime)
        {
            SoundEventArgs args = new SoundEventArgs(SoundAction.Fadeout, fadeoutTime);

            OnSoundEvent(args);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Stops the sound sample.
        /// </summary>
        public void Stop()
        {
            SoundEventArgs args = new SoundEventArgs(SoundAction.Stop);

            OnSoundEvent(args);
        }