freeDSP / freeDSP-aurora

freeDSP ADAU1452 with 8 analog input, 8 analog outputs, S/P-DIF I/O, ADAT I/O, USB Audio Class2, WiFi, Bluetooth
Creative Commons Attribution Share Alike 4.0 International
176 stars 55 forks source link

No spotify or plex music over USB audio on windows 10 #104

Closed gdimopoulos closed 2 years ago

gdimopoulos commented 2 years ago

I recently setup a new windows 10 PC and I tried to use Aurora with USB audio. All windows sounds play fine and I can stream audio from my browser (YouTube, Spotfiy, etc.).

But when I try to play music from my Spotify desktop app it fails with an error ("Spotify can't play this right now"). I have the same problem when playing music with Plex.

In the device manager I can see the aurora-dsp devices recognized correctly but I also see an "auverdion DFU" device that is not recognized.

dspverden commented 2 years ago

This is an issue of Spotify or of the UAC2 driver that comes with windows 10 because as you said playing via your browser does work. Aurora does not come with its own driver, it uses the driver from Microsoft. Therefore, nothing we can do (except somebody is willing to invest time for writing a driver for Aurora).

The auverdion DFU is related to firmware update of the XMOS chip. Windows does not support this while macOS an Linux do. Therefore, this is not related to audio playing.

Conclusion: This issue is not related to this project and therefore, I am closing it.

gdimopoulos commented 2 years ago

From the documentation and the description of the project:

Works with ASIO driver under Windows 10.

This means that this is related to the project since you claim that Aurora works fine with the ASIO driver. If you have no plan of supporting windows users and fixing the related issues, you should remove this claim from the documentation and description.

dspverden commented 2 years ago

The question is, does Spotify Desktop app support ASIO4ALL or the Windows UAC2 driver. As you have proven Aurora does play sound from YouTube in your browser. Thus, the chain browser -> Windows UAC2 driver -> Aurora does work and the claim is valid. ;-) Others have proven Aurora works with ASIO4ALL and software that implements the ASIO interface correctly. Fixing the Spotify Desktop App is outside the scope of this project.

gdimopoulos commented 2 years ago

The list of multimedia apps that don't play audio with Aurora is not limited to Spotify. As I mentioned, the same applies to Plex and VLC when playing video with specific audio formats. And these are just the ones I tried. This implies that the issue is not with a specific app or player but with how Aurora receives and decodes the audio stream from these players.

I know first hand that there are devices that are capable of working with any player or content over USB without the need of special drivers. I don't know why Aurora can't do this but I know it is feasible.

dspverden commented 2 years ago

I know what you mean, but again this is an issue for the Windows UAC2 driver and therefore, out of the scope. It is proven that Aurora works class compliant and the apps you mention do play with Aurora on macOS which comes with a class compliant driver, too. As I said there is no direct audio stream from those apps to Aurora. It all goes via the UAC2 driver that receives the stream from the app (perhaps decodes it) and then sends it in UAC2 format to Aurora. The fact that Aurora works with e.g. YouTube proofs that it can receive audio from the UAC2 driver and that the broken link is between the Windows UAC2 driver and Spotify etc. and therefore we have no influence on it. As I said the way to circumvent it is: a) Go via ASIO if your app supports it. b) Write a new driver to replace the Microsoft driver (that is probably the reason, why other devices work).

And hey, this is open source here, make a fork and fix it if you think it should be fixed.

gdimopoulos commented 2 years ago

Thanks for the detailed explanation. It does make more sense to me now.