Working with WASAPI



Windows uses a relatively new audio sub-system called WASAPI. WASAPI has two modes, shared and exclusive. In Exclusive mode, Windows provides a single application at a time with exclusive access to an audio device. If another application tries to access an audio device that is already locked in exclusive mode, it will receive an error.

This means that if you are using Airfoil with an application that is playing audio in WASAPI exclusive mode, Airfoil will be unable to play the audio through the local computer speakers.

Workarounds

While we can't circumvent this restriction, there are a couple of workarounds available, depending upon the options you can set in your audio application:

Option 1) Set your audio application to use the DirectSound audio subsystem for playback instead of WASAPI.

Option 2) If the app lets you, set it to use Shared Mode WASAPI, instead of Exclusive Mode.

Option 3) Simply don't select the local (Computer) output with Airfoil when your source application has WASAPI Exclusive mode set. This will of course result in audio only being heard via the remote outputs.

Examples

For example, in J. River Media Center, you can turn off WASAPI by doing the following:

  1. From the Tools menu, select "Options"
  2. In the Audio settings, set "Audio Output Mode" to "Direct Sound"

Or, you can use Shared Mode WASAPI in J. River Media Center:

  1. From the Tools menu, select "Options"
  2. In the Audio settings, set "Audio Output Mode" to "WASAPI"
  3. Click the box next to "Output Mode Settings"
  4. Uncheck the box marked "Open device for exclusive access".

← Back to Airfoil for Windows index