1343: OUT_WASAPI 24 bit...only noise [#7146]

Beta Testing for Windows Products and plugins

Moderator: Gurus

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Tue May 10, 2011 10:13 am

Yes, we would definitely like to iron out any WASAPI issues. However, these problems reported in the forum occur only to few people, otherwise it works fine and so we haven't been able to reproduce any problem yet. As I wrote above, please submit as many information as possible, including your soundcard details, information which (all?) modes fail, how exactly do they fail and a debug log could help as well.

Thanks,
Jiri

Otello
Posts: 93
Joined: Tue Nov 24, 2009 11:06 am
Location: Roma - Italy
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by Otello » Tue May 10, 2011 10:36 am

Hello Jiri,

OK, this evening I'll try to create a report with a debug log, BUT: are you absolutely sure your PC is working in exclusive mode?

Please understand that to be sure you are working in exclusive mode with automatic switching of sampling rate according to the file, you need a DAC showing the sampling rate on the display, than you have to play in sequence files coded at different rates, for example 44-16 and 96-24, and you must see the DAC display switching from 44 to 96.
My DAC stick to the rate setted in control panel/audio for not-exclusive mode. :(

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Tue May 10, 2011 11:58 am

Sure, the plug-in was tested both in Shared and Exclusive modes. Note that our WASAPI plug-in supports configuration of the output stream - it can either depend on the source track, or can be manually selected. You can use this feature to check whether the playback fails in all modes, or only some specific ones.

Jiri

Otello
Posts: 93
Joined: Tue Nov 24, 2009 11:06 am
Location: Roma - Italy
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by Otello » Tue May 10, 2011 7:10 pm

Dear jiri,

may I ask you the computer brand, sound card and O.S. which works for you with wasapi?
On my side I have tested MM4 with 4 different PCs: a quite standard desktop PC with ASUS mother board, an ACER Aspire and 2 different Sony VAIO, VPC-Z12 and VPC- N12 series; using the on board s/pdif output if availabe (except VPC-Z12), USB output via an asincronous USB>S/PDIF converter (VPC-Z12) and RME HDSPe AIO sound card (desktop PC); Windows Seven x86 and x64.
Wasapi do NOT work in any of these 5+5 situations. (Needless to say, Foobar wasapi works in all these 5+5 situations.)

Anyway, I made 2 debug log you may download from my web site, if you need more test just ask.

http://www.marcobenedetti.it/Audio/MM4/ ... lt_out.LOG
This test is using the on board S/PDIF output of the Asus MB, Win 7 x64, MM4 build 1371.
The DAC switch sampling rate according to the file, but I have static noise or no sound at all.


http://www.marcobenedetti.it/Audio/MM4/dbgview-RME.LOG
This test is using the digital output of the RME HDSPe AIO card, Win 7 x64, MM4 build1371.
The DAC do NOT switch sampling rate according to the file and stick to the rate I set in control panel/audio for not exclusive mode.

Best regards
Marco

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Wed May 11, 2011 4:19 am

I guess that the problem might be that I haven't tested digital or S/PDIF outputs, will look into it.

Jiri

Otello
Posts: 93
Joined: Tue Nov 24, 2009 11:06 am
Location: Roma - Italy
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by Otello » Wed May 11, 2011 8:31 am

you guess? :D

Dear Jiri, you cannot be sure wasapi exclusive mode is working as expected using the analogue output; you have no control of what the sound card do; by the way, many consumer sound cards convert the sampling rate to a fixed rate before the D-A convertion.
You MUST use the digital output.

I'm sorry, I don't want to be pedant, but there are no shortcuts for this matter; as I told you yesterday:

to be sure you are working in exclusive mode with automatic switching of sampling rate according to the file, you need a DAC showing the sampling rate on the display, than you have to play in sequence files coded at different rates, for example 44-16 and 96-24, and you must see the DAC display switching from 44 to 96.

I'm not a programmer and I cannot help with the code, but according to my tests i'd say you have 2 different problems:
1) the way wasapi negotiate the exclusive mode (RME AIO do not go exclusive, i.e. do not change sampling rate according to the file)
2) the way wasapi handle the digital stream (static noise instead of sound)

Hope this helps...

Best regards
Marco

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Wed May 11, 2011 10:49 am

Marco,

no, really, I'm pretty sure it's an Exclusive mode, not only do I see it while looking into our source code, but there are also many way other ways of testing it (e.g. that other audio is terminated when any application goes to the Exclusive mode).

From the log I see why in the case of RME HDSPe AIO card it doesn't look like the Exclusive mode - because it really _is_not_. Due to failure in initialization routines of WASAPI, MM automatically switches to out_MMDS.dll plug-in. This looks like another problem: MM tries to switch to 96000kHz, 2 ch, 24 bps mode, but WASAPI reports that it fails. On the other hand, 44100kHz, 2 ch, 16 bps is used without any problem. Do other applications work fine in the failed case?

As for the problem on S/PDIF output of the Asus MB, I'm still trying to figure out what's going on there. Could you please try:
1. Other than S/PDIF output? I'm actually not sure whether this can be the source of the problem.
2. Download a testing version from http://www.mediamonkey.com/beta/out_WASAPI.dll and see whether there's any difference. It would help to add more details, e.g. in which modes you don't hear anything and in which there's a noise.

Btw, in order to publish here only the result of this process, could you please e-mail me your reply?

Thanks,
Jiri

Otello
Posts: 93
Joined: Tue Nov 24, 2009 11:06 am
Location: Roma - Italy
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by Otello » Wed May 11, 2011 1:01 pm

jiri wrote: Btw, in order to publish here only the result of this process, could you please e-mail me your reply?

Thanks,
Jiri
Yes, no problem, but I don't know your email address. :)
I think I cannot attach my logs to a PM in the forum...

Btw, yes of course, Foobar and Jriver work fine in the failed case.

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Wed May 11, 2011 1:17 pm

You should see my e-mail in my profile here in the forum. Anyway, it's 'jh' at mediamonkey dot com.

Thanks,
Jiri

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Tue May 17, 2011 4:57 am

There was introduced Advanced button in WASAPI plug-in configuration dialog in the latest 4.0 beta build. I'd love to hear from those having any WASAPI related issue, whether it gets better when you uncheck 'Event-driven Exclusive mode' there. Please post your results together with description of your setup (sound card, etc.). You can also try to play with the buffer size configuration in the Advanced dialog, it can help in some cases.

Thanks,
Jiri

Note: Please update out_WASAPI.dll to the one you can download from http://www.mediamonkey.com/beta/out_WASAPI.dll , since there were some improvements made.

etheriau
Posts: 58
Joined: Mon Apr 07, 2008 11:28 am
Location: Montréal

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by etheriau » Tue May 17, 2011 9:44 am

YES Finally!!!! I can confirm this new plugin (without making any adjustments) works fine in Exclusive mode with my D4 Mamba USB DAC (16 bit 44.1 KHz).

Good work guys.

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Tue May 17, 2011 11:05 am

Just to clarify, when you go to Advanced configuration of WASAPI plug-in, it has Event-driven Exclusive mode enabled, right?

Jiri

etheriau
Posts: 58
Joined: Mon Apr 07, 2008 11:28 am
Location: Montréal

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by etheriau » Tue May 17, 2011 1:18 pm

Yes everything is checked.

However...Sometimes if I hit pause and play again it will not play. I have to reselect the file and double click to get rid of the issue.

We'll investigate a bit more and let you know what I find.
thx

etheriau
Posts: 58
Joined: Mon Apr 07, 2008 11:28 am
Location: Montréal

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by etheriau » Wed May 18, 2011 8:47 am

Trying to play after a long pause does not work.

jiri
Posts: 5395
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1343: OUT_WASAPI 24 bit...only noise [#7146]

Post by jiri » Wed May 18, 2011 10:14 am

Will try to reproduce on some sound card. However, as with any other possible problem, please try to reproduce with Event Driven mode disabled.

Thanks,
Jiri

Post Reply