IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

6 Pages V   1 2 3 > »   
Reply to this topicStart new topic
WASAPI output plugin
Dremora
post Apr 14 2008, 17:48
Post #1





Group: Developer
Posts: 81
Joined: 25-February 07
From: Dublin, Ireland
Member No.: 40959



Windows Vista has a new audio output method called WASAPI which allows to bypass unnecessary processing levels, reducing latency. It would be very nice if someone could write a WASAPI output plugin for foobar2000. It could serve as a safe kernel streaming replacement for Vista.
Go to the top of the page
+Quote Post
Peter
post Apr 14 2008, 18:47
Post #2


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



It's been done but there are somewhat annoying bugs that I don't know how to workaround yet and the whole thing is unusable on large percentage of pre-SP1 machines because of documented Vista mixer bugs. This plug-in will definitely be released at some point.
Go to the top of the page
+Quote Post
Dremora
post Apr 14 2008, 19:59
Post #3





Group: Developer
Posts: 81
Joined: 25-February 07
From: Dublin, Ireland
Member No.: 40959



Thanks for the fast reply, I am looking forward to the release of this plugin! And I'm certainly going to install SP1.
Go to the top of the page
+Quote Post
sanyigz
post Jun 11 2008, 19:31
Post #4





Group: Members
Posts: 24
Joined: 6-June 08
Member No.: 54083



Oh i can't stand this stupid vista mixer, i want bit exact solution sad.gif

When wasapi plugin will be released? Or i need to buy an asio soundcard?

"whole thing is unusable on large percentage of pre-SP1"

So it's working on sp1 vista? Then why haven't been released yet? Who don't have sp1 don't use it, it's simple smile.gif
Go to the top of the page
+Quote Post
boomtopper
post Jun 13 2008, 19:43
Post #5





Group: Members
Posts: 48
Joined: 29-May 08
Member No.: 53896



Awesome can't wait till this is implemented!
Thanx, Peter
Go to the top of the page
+Quote Post
Peter
post Jun 19 2008, 20:10
Post #6


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



Here it is: http://www.foobar2000.org/components

I've done what I could to make this usable and the results are quite decent on all of my machines by now.

Unfortunately, some of the issues I've noticed still persist and I have no power over them as they're clear bugs in Microsoft's code still present as for Vista SP1 with latest updates. For an example, if you uncheck the Allow applications to take exclusive control of this device option in your device's properties, any apps currently playing audio in exclusive mode may crash.

This component has been in development since late 2007. First it got stalled because exclusive mode was completely broken on my workstation with pre-SP1 Vista x64. Then it got stalled because of weird behaviors occuring with various soundcards not using Microsoft's own audio drivers (the released version contains a workaround for these). I wouldn't recommend this component for regular use, it seems nobody else seriously used WASAPI before and Microsoft's QA decided to skip verifying whether it works properly.
Go to the top of the page
+Quote Post
Son Gohan
post Jun 19 2008, 20:57
Post #7





Group: Members
Posts: 9
Joined: 28-October 04
Member No.: 17889



I tried the plugin with the lastest foobar2000 release (0.9.5.3) under vista x64 SP1 and onboard HD audio codec (realtek alc660 with the lastest drivers, 1.91). So far it seems that...

a)8 bit audio "works" (lots of buzzing and distortion).
b)16 bit audio output works fine.
c)24bit audio output does not work (Unrecoverable playback error: Could not open device (8889000F)
d)32 bit audio output does not work either."Unrecoverable playback error: Could not open device: unsupported data format".

I don't know if this might be related to this behaviour, but in Xmplay there is a extra option in the WASAPI output plugin ("use native 32 bit resolution in shared mode").

This post has been edited by Son Gohan: Jun 19 2008, 21:07
Go to the top of the page
+Quote Post
boomtopper
post Jun 19 2008, 21:30
Post #8





Group: Members
Posts: 48
Joined: 29-May 08
Member No.: 53896



Thanx for the plugin Peter but i'm having a problem with it.
I use a Edirol UA25 which is connected via usb. I have set it to output using WSAPI Edirol UA25. But when I try and play a track I get a "Unrecoverable Playback error: Could not open device (Device in use)".
If I set WASAPI to use the onboard soundcard it seems to playback.
I do not have any other audio programs open?
Cheers

This post has been edited by boomtopper: Jun 19 2008, 21:31
Go to the top of the page
+Quote Post
Hengest
post Jun 20 2008, 03:42
Post #9





Group: Members
Posts: 133
Joined: 27-April 06
From: Perth, WA
Member No.: 30103



QUOTE (Son Gohan @ Jun 20 2008, 03:57) *
a)8 bit audio "works" (lots of buzzing and distortion).
b)16 bit audio output works fine.
c)24bit audio output does not work (Unrecoverable playback error: Could not open device (8889000F)
d)32 bit audio output does not work either."Unrecoverable playback error: Could not open device: unsupported data format".


Similar problem here under Vista 32 bit using an m-audio transit usb soundcard. 8 bit audio, however, doesn't work either.

QUOTE (boomtopper @ Jun 20 2008, 04:30) *
Thanx for the plugin Peter but i'm having a problem with it.
I use a Edirol UA25 which is connected via usb. I have set it to output using WSAPI Edirol UA25. But when I try and play a track I get a "Unrecoverable Playback error: Could not open device (Device in use)".
If I set WASAPI to use the onboard soundcard it seems to playback.
I do not have any other audio programs open?
Cheers


Look in Vista's mixer panel (the one that shows the volume levels of individual programs), and check to make sure that no other programs are showing-up there.

Edit: forgot to mention that there also seems to be a noticeable lag between moving the volume slider, and the volume actually changing.

This post has been edited by Hengest: Jun 20 2008, 03:47


--------------------
"Lifting Shadows Off a Dream"
Go to the top of the page
+Quote Post
Dremora
post Jun 20 2008, 10:35
Post #10





Group: Developer
Posts: 81
Joined: 25-February 07
From: Dublin, Ireland
Member No.: 40959



Peter, thank you very much!
Go to the top of the page
+Quote Post
Peter
post Jun 20 2008, 10:52
Post #11


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



QUOTE (Son Gohan @ Jun 19 2008, 21:57) *
a)8 bit audio "works" (lots of buzzing and distortion).
b)16 bit audio output works fine.
c)24bit audio output does not work (Unrecoverable playback error: Could not open device (8889000F)
d)32 bit audio output does not work either."Unrecoverable playback error: Could not open device: unsupported data format".
For reference, I'm getting b/c/d too, and the "8889000F" error with 8-bit, on two different onboard audio chips with Microsoft audio drivers. MSDN doesn't mention what this error code (AUDCLNT_E_ENDPOINT_CREATE_FAILED) means in this context, it's probably a driver or OS bug.
QUOTE
I don't know if this might be related to this behaviour, but in Xmplay there is a extra option in the WASAPI output plugin ("use native 32 bit resolution in shared mode").
Shared mode is not really interesting for us - it still lets Vista's audio mixer mix our stream with other sounds but as far as I can tell it requires us to produce an audio stream in the exact format that the mixer works with (32-bit floating-point, sample rate matching Windows mixer settings and channel count matching soundcard specifications), so it's pretty much the same as DirectSound but more painful to use because Windows no longer does resampling or channel mixing behind the scenes for you when necessary.
Go to the top of the page
+Quote Post
bb10
post Jun 20 2008, 14:31
Post #12





Group: Members
Posts: 169
Joined: 8-November 06
Member No.: 37341



Thanks! It works fine in 16bit mode. However, the volume control reacts a bit slow. Is that normal?
Go to the top of the page
+Quote Post
pyr0rrzzz
post Jun 20 2008, 15:12
Post #13





Group: Members
Posts: 52
Joined: 26-January 07
From: Germany
Member No.: 40023



I wonder if this plugin offers anything new to n00bs like me huh.gif
Explain, please tongue.gif
Go to the top of the page
+Quote Post
sanyigz
post Jun 20 2008, 15:35
Post #14





Group: Members
Posts: 24
Joined: 6-June 08
Member No.: 54083



OHHHHHH yesss thank you!

Its working working on 16bit, but i have that unrecoverable playback error too @24/32bit.

Vista 64 SP1, Realtek ALC883 audio, R1.94 driver

But now i can put the bass to high level without distortion laugh.gif Now the "wall" are my ears, and my headphone smile.gif

BTW 24bit mode in wasapi exclusive is working in xmplayer for me, just its doing random ctd-s, with unhandled exeption errormessage, and it have winamp like ui, and i hate that smile.gif

This post has been edited by sanyigz: Jun 20 2008, 15:52
Go to the top of the page
+Quote Post
vigylant
post Jun 20 2008, 15:44
Post #15





Group: Members
Posts: 125
Joined: 4-June 07
Member No.: 44055



Tried it in Vista SP1, but it says that it cannot open the device or something...
Using an Onkyo SE90-PCI card with the newest drivers...

edit: And, it works in XMPlay smile.gif

This post has been edited by vigylant: Jun 20 2008, 15:46


--------------------
Foobar2000 @ Onkyo SE-90PCI @ Sennheiser HD595 :)
Go to the top of the page
+Quote Post
The Link
post Jun 20 2008, 18:23
Post #16





Group: Members
Posts: 665
Joined: 27-November 02
Member No.: 3911



QUOTE (sanyigz @ Jun 20 2008, 16:35) *
BTW 24bit mode in wasapi exclusive is working in xmplayer for me, just its doing random ctd-s, with unhandled exeption errormessage, and it have winamp like ui, and i hate that smile.gif
Perhaps I'm missing sth. but playing back an original 24 bit flac file in xmplay using wasapi exclusive mode shows "Output 96000 hz - stereo - 16 bit" in the console. It seems that the output resolution gets changed to 16 bit which also works just fine in foobar.
Go to the top of the page
+Quote Post
Peter
post Jun 20 2008, 19:51
Post #17


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



Here's a beta version of the component for you to test: [link removed, use the latest stable version instead]

Changes:
  • Somewhat more informative error messages.
  • 24-bit mode now works on more soundcards - 24-bit padded to 32-bit is used when possible.
Go to the top of the page
+Quote Post
Warre
post Jun 20 2008, 21:16
Post #18





Group: Members
Posts: 1
Joined: 20-June 08
Member No.: 54641



Thanks, beta version works great in 24bit with my onboard Realtek ALC888 and latest drivers (R1.96) smile.gif
Go to the top of the page
+Quote Post
sanyigz
post Jun 20 2008, 21:19
Post #19





Group: Members
Posts: 24
Joined: 6-June 08
Member No.: 54083



now it's working for me. ALC883

"24-bit padded to 32-bit is used when possible." What does this mean?
Go to the top of the page
+Quote Post
jarsonic
post Jun 20 2008, 22:57
Post #20





Group: Members
Posts: 199
Joined: 30-September 01
From: C-ville, VA
Member No.: 83



@sanyigz: The eight extra bits utilized in 32-bit are padded as zeros. This allows you to have a 24-bit stream within a 32-bit container.

This post has been edited by jarsonic: Jun 20 2008, 23:03
Go to the top of the page
+Quote Post
vigylant
post Jun 21 2008, 11:36
Post #21





Group: Members
Posts: 125
Joined: 4-June 07
Member No.: 44055



Still doesnt work for me...
Says the 44100hz @ 24bit @ 2CH is unsupported, although my soundcard can output 192khz @ 24bit @ 2CH, so i dont see the prob tongue.gif


--------------------
Foobar2000 @ Onkyo SE-90PCI @ Sennheiser HD595 :)
Go to the top of the page
+Quote Post
Son Gohan
post Jun 21 2008, 15:05
Post #22





Group: Members
Posts: 9
Joined: 28-October 04
Member No.: 17889



yes! WASAPI now works fine with my setup (vista x64 SP1, realtek ALC660, 1.96 drivers).

As a side effect, 8 bit audio output is now broken:
"Unrecoverable playback error: Could not open device: unsupported data format: 44100 Hz / 8-bit / 2 channels"

This post has been edited by Son Gohan: Jun 21 2008, 15:06
Go to the top of the page
+Quote Post
Peter
post Jun 21 2008, 16:45
Post #23


foobar2000 developer


Group: Admin
Posts: 3275
Joined: 30-September 01
Member No.: 84



New version (1.1) up.
Go to the top of the page
+Quote Post
ffbadkill
post Jun 25 2008, 12:21
Post #24





Group: Members
Posts: 10
Joined: 15-February 07
Member No.: 40649



Thank you very much and it works great with my Onkyo SE-200PCI smile.gif
Go to the top of the page
+Quote Post
McMusic
post Jun 26 2008, 10:06
Post #25





Group: Members
Posts: 73
Joined: 10-February 08
From: Germany
Member No.: 51187



Can anyone explain me the differences between the WASAPI plugin and kernel streaming? They both should be bit-exact, or is kernel streaming not bit-exact on Vista?

Which of the two plugins is to favor, when I want bit-exact playback on a Vista SP1-machine?

This post has been edited by McMusic: Jun 26 2008, 10:08
Go to the top of the page
+Quote Post

6 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd August 2014 - 16:03