O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Low-Latency Sound

The MediaElement is a high-level wrapper for audio or video playback. It provides plenty of worthwhile features and is reasonably flexible. You can use it to play background music or to create your own customized video player.

However, the MediaElement isn't a natural fit for applications that need to combine or manipulate real-time audio. For example, if you want to use sound in an arcade game or build a music synthesizer, the MediaElement is awkward at best. Here are some of the challenges you'll face:

  • To avoid delays, you need to create the MediaElement and load its audio well before you actually play it. As a workaround, developers often cycle their sound effects through a group of MediaElement objects (which can get messy). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required