Question

I'm considering developing an app for the upcoming Windows 8. The app requires low-latency audio recording and playback, and I'm trying find out whether the OS will support that (as opposed to other platforms).

So what I'd like to know is:

  1. Is there a low-latency audio API in Windows 8?
  2. Will it be supported on platforms other than PC (e.g. tablets)?

Thanks!

Was it helpful?

Solution

WASAPI was introduced with Windows Vista as the low-latency audio API. It is available both to desktop and to Metro style applications on Windows 8. Because it is a very low-level API, using it is not simple, but it gives you the most power. It will work on both Windows 8 and the newly-minted Windows RT (Arm).

Also available is XAudio2 which is a slightly higher-level API which will be easier to work with. It is the replacement for DirectSound and is designed for game developers, but may work for your purposes. This also is available to both Windows 8 and Windows RT.

There is a bit of comparison of the two APIs at the bottom of this article. I would start with XAudio2 and move to WASAPI only if you find XAudio2 doesn't meet your needs.

OTHER TIPS

I would consider using XAudio2. Microsoft providers Basic audio playback sample for easy start

Yes, there is a low latency API you can access. It's called WASAPI

From my understanding, all tablets/Laptops/Desktops/anything running Windows 8, will have access to it. The only downside is that it's harder to work with (because it's lower level), but you get to directly interact with the byte arrays getting send to the speaker, and the latency is very low.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top