Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 - low latency audio

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!

like image 205
kshahar Avatar asked Apr 16 '12 15:04

kshahar


People also ask

What is low latency audio?

Low latency means higher power consumption. If the system uses 10ms buffers, it means that the CPU will wake up every 10ms, fill the data buffer and go to sleep. However, if the system uses 1ms buffers, it means that the CPU will wake up every 1ms.

Why is my laptop sound so low Windows 8?

The quickest way to change the volume for your computer speakers is to click the Speakers button in the notification area of the taskbar, and then move the sliders up or down to increase or decrease the speaker volume.


2 Answers

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.

like image 65
Steve Rowe Avatar answered Sep 30 '22 22:09

Steve Rowe


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

like image 26
Denis Avatar answered Oct 01 '22 00:10

Denis