XXHighEnd

Ultimate Audio Playback => XXHighEnd Support => Topic started by: numlog on January 05, 2019, 02:48:12 am



Title: INVALID ARG with 705.6kHz WASAPI
Post by: numlog on January 05, 2019, 02:48:12 am
''INVALID ARG device can not play'' error pops up when trying to play any file at 705.6kHz with WASAPI, i though it was WASAPI limited to 352.8kHz but Jriver MC will upsample and play at 705.6 with WASAPI. also 768kHz does work in XXHE and it sounds great.
what could the problem be with 705.6?


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: PeterSt on January 05, 2019, 07:15:13 am

Hi Numlog,

Can you switch on logging (at the bottom in Settings), kill XXEngine3.exe (click blue led in the right hand border), press Play on that file, let the error appear on screen, do nothing further and now grab tha latest X3 and X3PB two log iles. You can attach them on a post in response.

Btw, I am not 768KHz will work in XXHighEnd by other DAC's than the NOS1. So maybe recheck if that really works, because I have doubts about it (and then the general issue is that it was never made for normal DACs doing 705.6/768 - which in the not so far past just did not exist).

Peter


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: listening on January 05, 2019, 10:16:05 am
Btw, I am not 768KHz will work in XXHighEnd by other DAC's than the NOS1.
Hi Peter,

705.6 and 768 KHz are working with the SMSL DAC.

Georg


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: PeterSt on January 05, 2019, 02:42:17 pm

Thank you Georg. I don't think I was ever able to test that (the NOS1 uses a special connection to achieve that sampling rate).

Best regards,
Peter


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: numlog on January 06, 2019, 01:37:10 am
files attached.

768 is working after testing with a few different 48 and 96kHz files

btw this is with Topping D50, using DIYinHK USB to IS2 interface.


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: PeterSt on January 06, 2019, 06:59:45 am

Is it possible that you send me that track (via FileMail etc.) ?
I don't think it is the track, but I need to be sure. And then I compare the logging with what happens over here.


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: numlog on January 06, 2019, 11:41:24 pm
I have tried many different tracks, wav, flac, mp3, 88.2kHz, some stored on different drives, nothing works. this was just most recent track in playlist.

It might actually be this USB interface im using https://www.diyinhk.com/shop/audio-kits/107-xmos-dsd-dxd-768khz-high-quality-usb-to-i2sdsd-pcb.html (https://www.diyinhk.com/shop/audio-kits/107-xmos-dsd-dxd-768khz-high-quality-usb-to-i2sdsd-pcb.html), if you scroll down they list all supported ''I2S signal specification'' but 705.6 is not included, yet the other 44.1 multiples are.

obviously 705.6 is supported in some capacity, it works with KS mode, ASIO and even with WASAPI in JRiver... and the DAC's displays indicates 705.6kHz  in all these cases.

Maybe this is some raw form of WASAPI support which XXHE uses for optimum SQ?



Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: PeterSt on January 07, 2019, 06:43:16 am

Quote
Maybe this is some raw form of WASAPI support which XXHE uses for optimum SQ?

Although this would be true (like "Event Mode" or whatever other software calls it) is not in there at all. It is just (indeed) that mere raw mode which existed only at the very beginning of WASAPI. But that should not matter.
What does matter is the denotation of DIYinHK at the driver, which tells that using the highest speed is at your own "risk" etc. or whatever it tells or ever back told about it (maybe this changed). So this is (or was ?) some self-implementation of the IIRC XMOS driver and it is tweaked or tricked. So yeah ... maybe that is it.

On an other note, be aware that not all software implements WASAPI in Exclusive Mode (and IIRC JR does not or at least allows the situation of "not"). This means that resampling may take place if a sampling rate is not supported.
If Foobar did not change things, then that would be the better candidate for comparing because Foobar does not (did not) allow working outside of Exclusive Mode (same for XXHighEnd and that thus can incur for the culprit easily).

Please be aware that Q1 is quite crucial for WASAPI to work (and that the error in particular indeed can come from this). At getting it to work, always have xQ1 at 1 and best is to have the Device Buffer Size at its default of 4096. The default of Q1 is 14 (so start there) and vary it with 7 and 20 (not everything between it). If this does not help, set the Device Buffer Size to 1024 and try the 3 Q1 settings again.
If that again does not help, set back the Device Buffer Size to 4096 and never look at it again (it probably does nothing these days, except for being part of the calculation which Q1 x xQ1 also is part of (think like Q1 x x Q1 x DevBufSize).

For WASAPI this is all about timing and how the endpoint device (DAC) talks back about this. So if that does not happen for this particular rate ...

On a not unimportant side note : I can't see per the logging where it realy goes wrong or what part of the code is executed. Maybe this is because it has been 100 years by now that I used WASAPI - maybe this is because I removed redundant code. But the fault and abrubt ending in the log file I don't recognize.
Btw, it should be so that you get one or two more error messages, one of them showing a sequence of numbers. Am I right ? if so, can you give me a screencopy of that ?

Peter


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: numlog on January 07, 2019, 06:35:10 pm
foobar resampler doesnt support 705.6 so no other way to test it. there exists some 768kHz audio test file online but no 705.6.
you are correct about number error, screenshot is attached.

A future driver or firmware update for interface could fix the problem, thats the best i can hope for.


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: listening on January 07, 2019, 09:53:31 pm
Hi Numlog,

did you try https://sourceforge.net/projects/resamplerv/ ?

Georg


Title: Re: INVALID ARG with 705.6kHz WASAPI
Post by: numlog on January 10, 2019, 08:40:06 pm
I hadnt, thanks. its not working, so that answers that  :)