Using any audio source with HQPlayer - Spotify, Amazon, Apple Music, YouTube Music, Deezer, Soundcloud [2023]

Burn NAA image to SD card:
https://www.signalyst.eu/bins/naa/images/naa-431-raspberrypi4.7z

Hookup to a monitor and keyboard (only required once).

Login as root, no password required.

Then type:

nano /etc/networkaudiod/networkaudiod.xml

Then all you need showing is (you can delete everything else existing, if you want):

<networkaudiod>
         <input channels="2" device="hw:CARD=DAC58580869,DEV=0" format="auto" name="ADI-2 digi coax input" pack_sdm="1" period_time="100" samplerate="0" sync_element="AES Rate" sync_hctl="1"/>
        <input channels="2" device="hw:CARD=DAC58580869,DEV=0" format="auto" name="ADI-2 optical input" pack_sdm="1" period_time="100" samplerate="0" sync_element="SPDIF Rate" sync_hctl="1"/>
</networkaudiod>

Save and exit. Reboot.

Change your DAC’s ID number to your own (my number DAC585… is showing there)

Mac OS will show you the DAC number when connected to your Mac.

Boot all your NAA’s, then open HQPlayer Desktop last.

Under HQP Settings NAA input you should see your ADI-2 there. Choose your ADI-2’s digi coax or optical input. Depends what source you are feeding into ADI-2 but 2 sources possible.

3 Likes

Thanks. Can I do the above if I am using the naa implementation of Ropieexl on the pi?

No idea. I guess you can try and report back?

I just shared what works for me.

Will do. I will experiment and report back. Thanks!

1 Like

You can use one of the ADI-2 digital inputs for your iPad. Apple Music Hi-Res will play bit perfectly into HQPlayer, but any app on iOS will do the same.

And other ADI-2 input for a streamer. And stream to any NAA anywhere in the house, since it is feeding HQPlayer via NAA.

That’s what I use daily for music listening. I have a WiiM Mini streamer for Tidal Connect and Amazon Music UHD bit perfect casting - for these, just use the iPad as a remote controller anywhere in the house, no cables.

Only need cables to feed Apple Music Hi-Res into HQPlayer. Hopefully that changes one day.

I will try this today. Just to make sure, the ADI-2 source setting needs to be ā€œUSB (rec coax)ā€ or is it the ā€œUSB loopbackā€ setting that should be activated with the source set to coax (assuming I am using coax input from X-SPDIF 2 to the ADI-2?

Just looking at my ADI-2 now as I am feeding Apple Music Hi-Res into HQPlayer…

Just select digital coax or toslink input on the ADI-2 - don’t need to choose USB rec coax and no loopback required. Don’t ask me why those are not required because I initially assumed so.

Magically works just selecting ADI-2 digital inputs and will automatically route out of USB into your Pi, to HQPlayer, wherever that machine is in the house

Since ropieee doesn’t seem to have ssh, I put an NAA image on my input raspberry pi. I think I followed all the steps correctly, but what do I need to do on the HQPlayer desktop running on my Mac to be able to get automatic sample rate switching. I can get output if I manually enter the rate in the url field and hit play. But, that I could do before using blackhole. Is there something I am missing on the HQPlayer desktop side?

Have you tried and it doesnt work?

Once you start a rate in the URL field, after that, sample rates will change - give it a try

Yes, once I hit play at a certain rate, it works. In the format display it changes the input sample rate depending on what I play out of the iPad.

It does seem to consume more resources now so I can’t play DSD out with the same settings I did before. I need to test further but is this expected?

Actually I take that back. I remembered my DSD settings wrong. I am able to play with the same settings as before. And I have automatic sample rate switching with Apple Music. This is fantastic. Thanks a lot!!!

1 Like

Only thing is if I want to use my ADI-2 DAC as the output, I need to buy another one. :blush: Or I guess I should get a USB streamer to use in place of the ADI-2 to feed the input NAA. Any recommendations for one?

There are very few input devices where the rate switching is known to work. I’m using ADI-2 Pro for input, since it also provides analog inputs and AES digital input in addition to the ADI-2 DAC.

Not cheap, but it works. RME HDSPe AIO works to limited extent similarly on Linux and properly in similar way on Windows. But it costs about the same…

1 Like

Yeh I picked up a 2nd ADI-2, on the used market. It can be any of the versions.

The USBstreamer won’t switch sample rates automatically - otherwise we’d all be using that for much less money :grinning:

Although on the other forum @jussi_laako I saw you recently mentioned you’d be in contact with miniDSP to ask about their ASIO driver? came back negative from them I guess ?

1 Like

No, I intended to try it out on Windows. Because so far I have never used USBStreamer on anything other than Linux. But so far I’ve been too busy on other things.

Of course it would be great if someone who has USBStreamer and Windows machine would try it out and report the results!

2 Likes

Same I never tried on Windows. Because I stay away from Windows away from work. Especially for music listening

I’ll give it a try! If I can find the thing :smile:

1 Like

Well damn. I bought 2 miniDSP USBStreamers.

One is on the other side of the country, I leave it at my parents house. So when I visit I can Airplay/Spotify Connect to it, feeding into HQPlayer. I know that is there for sure, hooked up to HQPlayer server permanently. Sometimes the old man uses that too.

The other is here with me somewhere but cannot find it in the usual places - too many gadgets all over the place

Unless I bump into it accidentally, everyone will have to wait till I next visit my folks to test it on Windows, maybe June/July :grin:

1 Like

Are you living in heaven? :smile:

1 Like

More like a nightmare. Too many gadgets that I can’t even find / use / test :laughing:

3 Likes

@jussi_laako I use HQplayer on mac. Apple music would play to blackhole 16 channel, and in HQplayer, i set input device as blackhole 16 channel, output device as my USB DAC, and choose audio:default/48000/2 at content source uri to upsample. I found this method doesn’t work when I use NAA as the output device. There’s simply no option in the pull down menu of content source uri.