Post PDC 2008 Wrap-up

Windows Azure. Admittedly, quite cool. I don’t have any uses for it right now, but I like the fact that it’s fully .NET friendly. The bad: a confusing mix of technologies somehow “lumped” under this new brand-name. When are they ever going to learn?

Windows 7 (engineering blog here). The good: a refreshed UI and a bunch of things that hopefully will make it faster (like Vista should have been). The bad: showing a cool demo of the new UI at the PDC 2008 main session, yet giving attendees an older build that contained the least interesting pieces. Seriously bad form Microsoft.

XNA Studio 3.0 released (coincidence actually), cool nonetheless. Makes it so much easier to write games than ever before for the Windows, XBox360, and Zune.

Universal Studios Event. I’d been there before several times, so there really wasn’t much to do, and I’m totally not into “haunted” mazes and such. The bad: there was a lot less fun food options than there had been in the past. Even worse: at least one bus got lost on the way from the hotels to the park (and it took about 1.25 hours to arrive!).

Visual Studio 10. The UI will of course benefit from the switch to WPF – including some slick ways of enhancing the editor. Maybe some nice open source will appear which will all but eliminate the need to buy expensive 3rd party options for editor and shell enhancements (sorry, but they’ve always been too pricey for me).

Microsoft Surface: Yawn. Multi-touch in Windows 7 is where it’s at. Plus, you’re not hindered by the horizontal-only user experience and expensive tables.

 

Bigger shock:

Evaluations

What would they be announcing next year already? PDC generally happens only when there’s a big new “WAVE” planned. Maybe it will be canceled like last years.

Off to PDC 2008 in Los Angeles ….

If there’s something interesting that is announced, that hasn’t already been posted to death, or that I’m particularly excited about, I’ll post it here.

Did you see that Microsoft announced a new .NET logo?

image

Supposedly it’s a “wave” that demonstrates the key values of .NET: consistency, robustness and great user experiences. Huh?

The old logo needed an update – but the characteristics they’re suggesting are conveyed … a bit of a stretch. My reaction: a blurry “N” or “we couldn’t actually decide and everything is a bit fuzzy, “.NET”. :) (That’s the .NET message I’m most familiar with!)

I can see the inspiration… (everything’s blue and they’re using the same basic font).

image

How to play an Audio File in Silverlight, Part 2

I was asked in a comment how to play a sound from a stream, from an embedded resource in Silverlight or WPF.

My answer is that I wouldn’t use an embedded resource, instead I’d suggest using the “Content” Build Action as shown below:

image

I’ve set the explosion.mp3 file’s Build Action to “Content”. Then, using my audio playing technique, I call the function:

PlayAudio("/explosion.mp3", .5);

(The .5 sets the volume.)

You might look at MediaStreamSource (set via the MediaElement’s SetSource property).

There’s an example dealing with MP3 files here. Realize that path requires that your code fully take over the the responsibility for streaming — including understanding the low-level details of the audio/video format. For example, you would need to know how to decode an MP3 file.