RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Sound sample?

Zotos

Sorceror
Sound sample?

Trying to play a sound with Ultima.dll but im having problems figuring it out. A small sample on how to play one sound would help out a bunch.

Thx in advance.
 

arul

Sorceror
Code:
Ultima.UOSound sound = Ultima.Sounds.GetSound(someId);

System.Media.SoundPlayer sp = new System.Media.SoundPlayer();
sp.Stream = sound. WAVEStream;
sp.Play();
 
Top