protected override void ThreadedLoadSound(object stateInfo) { LoadInfo info = (LoadInfo)stateInfo; Axiom.SoundSystems.Sound sound = new Axiom.SoundSystems.DirectSound.Sound(info.file_name, info.sound_id, info.sound_type); soundlist.Insert(info.sound_id, sound); }
public override Axiom.SoundSystems.Sound LoadSound(string filename, short type) { // create the sound and add it to our list Axiom.SoundSystems.Sound sound = new Axiom.SoundSystems.DirectSound.Sound(filename, lastid, type); soundlist.Insert(lastid, sound); // update the ID counter lastid++; return sound; }