private void addsource(IrrKlang.ISoundEngine e, string path, string name)
 {
     using (FileStream s = new FileStream(path, FileMode.Open))
     {
         byte[] SBuffer = new byte[s.Length];
         s.Read(SBuffer, 0, (int)s.Length);
         e.AddSoundSourceFromMemory(SBuffer, name);
     }
 }
Ejemplo n.º 2
0
 public void OnSoundStopped(ISound sound,IrrKlang.StopEventCause reason, object userData)
 {
     PictureBox picbox = ((PictureBox)userData);
      picbox.Image = null;
      picbox.Refresh();
 }