OpenUO is a collection of open source assemblies created to help modify and create Ultima Online content for the classic client.
[TestMethod]
public void TestSoundFactory()
{
var factory = new SoundFactory(Install, Container);
var sound = factory.GetSound<Sound>(1);
Guard.RequireIsNotNull(sound, "Sound was not created.");
sound.Play();
}
public override void Initialize()
{
base.Initialize();
var install = Install;
_fileIndex =
install.IsUopFormat
? install.CreateFileIndex("soundLegacyMUL.uop", 0xFFF, false, ".dat")
: install.CreateFileIndex("soundidx.mul", "sound..mul");
}