Ejemplo n.º 1
0
 internal void OnStopped(AudioSourceStateEnum lastState)
 {
     if (lastState != AudioSourceStateEnum.Stopped &&
         lastState != AudioSourceStateEnum.Initial)
     {
         StopPolling();
         if (StoppedInternal != null)
         {
             StoppedInternal(this, EventArgs.Empty);
         }
     }
 }
Ejemplo n.º 2
0
 internal void OnPlaying(AudioSourceStateEnum lastState)
 {
     if (lastState != AudioSourceStateEnum.Playing)
     {
         StartPolling();
         if (Playing != null)
         {
             Playing(this, EventArgs.Empty);
         }
     }
 }
Ejemplo n.º 3
0
 internal void OnRewound(AudioSourceStateEnum lastState)
 {
     if (lastState != AudioSourceStateEnum.Initial)
     {
         StopPolling();
         if (lastState == AudioSourceStateEnum.Playing)
         {
             OnStopped(lastState);
         }
         if (Rewound != null)
         {
             Rewound(this, EventArgs.Empty);
         }
     }
 }
Ejemplo n.º 4
0
 internal void OnPaused(AudioSourceStateEnum lastState)
 {
     if (lastState != AudioSourceStateEnum.Paused &&
         lastState != AudioSourceStateEnum.Initial)
     {
         StopPolling();
         if (Paused != null)
         {
             Paused(this, EventArgs.Empty);
         }
         lastState = SourceState;
     }
 }