Seamless mp4 Looping Audio

Get Microsoft Silverlight

One of the problems with Silverlight 3 is that there isn't a built in way to have seamless, looping audio.  However, one of the great things about Silverlight 3 is the MediaStreamSource, which you can so that you can create your own audio and visual solutions.  With that in mind, The DDtMM.ISO.Media library allows you to create a MediaStreamSource that allows for the specification of loop points in MP4 audio files. More...

A Better Silverlight Game Loop?

I've had a problem with my timers in my games.  Basically the problem is that when the loop happens too quickly I get a loop that has 0 ticks elapsed.  I am of the belief that there is an issue with resolution from the DateTime.Now which I use to tell how much time has elapsed between a game frame.  You can read more about the problem in this thread on the Silverlight site (I'm pretty innarticulate in it).  The higher the frame rate, the stranger my games appeared to behave and the more occurances of bugs (divide by zero, etc...).  This was less of a problem in Silverlight 2 because it had a limited frame rate at 60 frames.  In Silverlight 3, framerates can go much higher.

In my "Game Engine" I use different loop classes that were originally derived from the Silverlight Games 101 blog.  I've made some modifications from that original code and they all (DispatcherTimer, StoryBoardTimer and CompositionTarget) inherit from the base GameLoop class.

In order to fix my problem, I added a queue that keeps track of the last ten times and returns and average time elapsed.  The result has been very positive as I have not experienced a lot of the errors I used to have, and the games appear to be smoother. More...

XSPF Generator

My Executive MP3 Player uses XML Shareable Playlist Format as it's preferred playlist format.  Creating XSPF playlists is pretty easy to do by hand, but can be a bit time consuming.  So I whipped together a little tool to create the playlists without so much hassle.

I made this tool pretty quickly like, so it's bound to have bugs.  Contact me if you encounter any, or would like to see an enhancement.

Copyright © 2010 DDtMM

Powered by BlogEngine.NET 1.5.0.7