WASAPI

From JRiverWiki
Revision as of 12:18, 27 September 2010 by Matt (talk | contribs)

Jump to: navigation, search

WASAPI is Microsoft's most modern method for talking with sound devices. WASAPI stands for Windows Audio Session API.

WASAPI is available in Windows Vista, Windows 7, and newer. It allows delivering an unmodified bitstream to a sound device.

WASAPI support was first added to Media Center 13. Media Center 15 added event style WASAPI support.

For XP, ASIO is similar.

An Interact thread on the original creation WASAPI can be found here: http://yabb.jriver.com/interact/index.php?topic=48478.0

WASAPI Modes

There are two main ways to communicate using WASAPI:

WASAPI

This output mode pushes data from Media Center to the sound device.


WASAPI - Event Style

The output mode lets a sound device pull data from Media Center.


Problems

Stuttering

Some devices will start stuttering during playback when using WASAPI. This is due to a bug in the WASAPI system of stock Microsoft driver where the circling buffers get out of order. Stopping and restarting playback is required to reset the stuttering.

Using WASAPI - Event Style will fix this problem.

There are more details here: http://yabb.jriver.com/interact/index.php?topic=59460.0


Hiccups using WASAPI - Event Style

The default buffering value for WASAPI - Event Style is 50ms. With some hardware, and especially USB DACs, a larger value is necessary. If you hear stutters, select 100ms or 250ms for buffering in Options > Audio > Output mode settings...


Playback won't start or stalls

Some hardware is particular about buffer sizes. You may need to experiment with different buffering values using Options > Audio > Output mode settings...


Other Problems For playback problems, please see this thread.