protected override void PlayNativeMusic()
 {
     if (musicStream == null || source == null)
     {
         return;
     }
     musicStream.Rewind();
     source.Start();
     isPlaying     = true;
     playStartTime = DateTime.Now;
 }
Beispiel #2
0
 protected override void PlayNativeMusic()
 {
     musicStream.Rewind();
     for (int index = 0; index < NumberOfBuffers; index++)
     {
         if (!Stream(buffers[index]))
         {
             break;
         }
     }
     openAL.Play(channelHandle);
     playStartTime = DateTime.Now;
 }
Beispiel #3
0
 public void Play()
 {
     musicStream.Rewind();
     for (int index = 0; index < NumberOfBuffers; index++)
     {
         if (!Stream())
         {
             break;
         }
     }
     source.Play();
     playStartTime = DateTime.Now;
 }