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); } }
public void OnSoundStopped(ISound sound,IrrKlang.StopEventCause reason, object userData) { PictureBox picbox = ((PictureBox)userData); picbox.Image = null; picbox.Refresh(); }