Tuesday, December 30, 2008

XAudio and XInput

These are interesting APIs. I've already done some XInput code for the XBox 360 controller, which will probably make it into the next release, but I'm curious about XAudio. What I read about it indicates that it's just a layer on top of DirectSound, rather than something that talks directly to the HAL, but DirectSound is a bit ancient and creaky these days, so if this still manages to do things more efficiently it'll have to be taken seriously as an option.

So I'm getting up to speed with the API right now, just doing a basic "play a WAV file" application to see how much I like it. I've already moved the sound code on to DirectSound 8 since release 1.2, and have cleaned out a lot of the old weirdness that was in there (especially in the initialization), but I'm seriously curious about this one.

0 comments: