HOW TO...Setup Foobar2000 to use WASAPI
Thought I'd see what I could do with my current PC setup to improve sound quality without spending any money. My setup is....
MS Vista Service Pack 1.
Creative Sound Blaster Xfi Extreme Gamer.
Beresford TC-7510 DAC.
Grado SR80 Headphones.
Foobar2000, WinAmp, WMP
What I wanted to do was bypass the audio processing performed by windows to ensure that a bit perfect audio stream arrived at my DAC. I knew of a couple of ways to do this.....ASIO and Kernel Streaming
I gave ASIO a whirl and downloaded the plugins for Foobar2000 and WinAmp. With FooBar2000 I experienced modest improvements in sound quality. I couldn't get ASIO working with WinAmp.
OK, but I wanted more.
So I took a look at Kernel Streaming and stumbled across Windows Audio Session API (WASAPI). WASAPI is a new feature for Vista and allows playback of an unaltered bitstream without passing it through the Windows Mixer. I just so happens that a new plugin has been released for Foobar2000 to use this API (Application Programming Interface).
This was simple to configure (see instructions below) and has provided me with a worthwhile audio improvement. I suspect that much of this has been gained from actually releasing the full potential of the DAC as much as anything else.
Anyway, I thought it was worth making others aware of my findings and provide instructions detailing how to go about it.
I haven't managed to find a WASAPI plugin for WinAmp.
To read more about WASAPI in Foobar2000 see this.
To read more about WASAPI in Vista see this.
Configuration Instructions
Go to the Foobar2000 components page here and click the link for WASAPI output support
or click this link to download the zip file directly.
The following dialog is displayed.
Click Save and save the zip file to your hard drive.
Just to be safe, scan the zip for viruses then, assuming it is virus free, extract the files.
Copy the file foo_out_wasapi.dll into your Foobar2000 component folder. Mine can be found at C
rogram Filesfoobar2000components.
Open Foobar2000 and select File | Preferences and the Preferences window opens. Select the Components node in the tree to check that WASAPI output support is available.
Expand Playback and click Output 
Select the appropriate WASAPI device in the Output Device drop down list. 
For me, this is the WASAPI SPDIF Out (Creative SB Xfi).
Then click Save All.
Some people have experienced problems with choppy playback. There is a fix. Simply reduce the Buffer Length (see previous image). Some posters on other sites have reduced the buffer length to as low as 250ms.
EDIT: I have also set my X-fi soundcard, using the latest Creative Console Launcher, to accept an audio stream of 44.1kHz, thereby eliminating any upsampling of the signal on my PC.
Apart from the improved sound quality, you will know that this has worked because the volume slider in the task tray has no effect on volume levels during playback. Moreover, a delay has been introduced in the volume slider in Foobar.
I'll be honest, PJ, I work in IT and I read your subject and had no idea what it meant!
This is why I use iTunes, PJ.
professorhat:I'll be honest, PJ, I work in IT and I read your subject and had no idea what it meant!
I have provided this supporting thread. Hope this helps.
JohnDuncan:This is why I use iTunes, PJ.
Yes, I understand the convenience. However, if I were to take that stance all the way I would be using a one box solution for hifi/av.
Yourself and most posters on this site spent an inordinate amount of time and money mixing components, plugging them together using many different iinterconnects, etc and talking/posting/reading about them on this site. Why not spend the same effort on sorting out your PC source?
OK, if you are using OS X and iTunes...perhaps there's nothing you can do. But if you're using a PC running Windows, there are lots of options and configurations.
Updated original post to include setting the X-fi soundcard to 44.1kHz.
a bit off topic but PJPro, how much difference in sound quality is there when you bypass your DAC and plug a 3.5mm -> twin RCA lead straight into your amp from your sound card?
ÿJust curious cause I listen to all my music thru my PC myselfÿ
PJPro.. thanks for the article.
I was just wondering (before I migrate the whole music collection to foobar2000 from Winamp) if the above methods are useful with CA DACMagic (I connect it through USB)?
I am using Windows Vista.
Thanks
To use WASAPI you need your player and soundcard to implement the WASAPI interface. Foobar2000 does this. I think we can regard the DAC Magic as an external soundcard.....but I do not believe there is a driver available which implements WASAPI.
So, either stick with Winamp or get a cheap soundcard which provides a WASAPI driver and connect that to your DAC via coaxial or optical.
Mix the wasabi powder with a little water, in a ratio of about 1:1. When you are ready to eat the sashimi, take a pinch of the wasabi with your hashi, and mix into some soy sauce in a dipping bowl.
Take a slice of the sashimi, dip in the wasabi/soy mix, eat.
Hhhmmm. Like I say. Sounds nice!
What's hashi by the way? Something naughti?
I've got the WASAPI Foobar plugin working no problem. Output over USB to a Maplin Soundbox and then to Beresford DAC. No problems, easy to do. Can't see why it wouldn't work for a DACMagic over USB
What I really want is a Media Monkey WASAPI plug in.
PJPro:What's hashi by the way? Something naughti?
No.
PJ,
Thanks for taking the time to explain.
I used to mess around with Foobar, ASIO, etc when I used an XP laptop as a source. I don't know if it ever worked correctly. ASIO4ALL wasn't always lighting up green. I suspect my Maplin Sound Box wasn't compatible, and I needed an external USB interface with its own drivers?
Thankfully I have a Mac now, so can use a nice interface, touch screen remote, and have upto 24/96 from the built-in digital output without any messing around.
Nejc Trdin:PJPro.. thanks for the article.
I was just wondering (before I migrate the whole music collection to foobar2000 from Winamp) if the above methods are useful with CA DACMagic (I connect it through USB)?
I am using Windows Vista.
Thanks
Nerc - you can indeed setup WASAPI over Foobar and use with USB as I did this last night. Wasapi will show up in Foobar preferenecs and instead of the soundcard it will say USB Audio device (or smth similar).
- Login to post comments





Anyone tried this?
My useful(?) What HiFi Forum threads can be found here.