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

I have 2 Raspberry Pi CM4s installed on 2 TOFU carrier boards. Both of them are using as NAA function on NAA OS.

For both of them I set force turbo to manually fix their CPU to run at only 800MHz (severe underclocking) without any issue (even at DSD1024 for the output NAA).

For the NAA input CM4, running at this 800MHz, connect its USB-C port (use for both data and power supply) to my Surface Pro 5 standard USB3 port also works without issue. This USB3 port can provide only 900mA by standard, BTW.

1 Like

Which one should I use for the Up board? And which one for RPi?
In /bins/naa/images I see custom images for rendu and holo red other than the standard x64 images.

Either one of the x64 images works for UP Board. Only difference is that ramfs loads entire root filesystem to RAM. As a result, you cannot store any changes there.

For RPi4 there’s the raspberrypi4-holored image.

1 Like

And this would support the auto rate switching just like the Up board that you mentioned above?
I just need to connect it using to the USB C port using a USB A to C cable (preferably through a power hub)?

Yes, same way.

Yes, exactly. If the hub also has charge ports, it can be powered up all the time regardless whether the computer is on or not.

1 Like

@jussi_laako
I just tested out with Tidal (in exclusive mode) and Rogue Amoeba Loopback is auto changing the sample rate based on the song, if you disable passthrough MQA decoding. In which case, Loopback gets fixed at 192k.
I started NAA on the same macbook pro and used that Loopback as the NAA Input in HQP.
When I enter audio:default/0/2 in the URI field, and hit play, the input sampling rate gets to 22.05 khz and there’s no sound from the output set to Core Audio MBP Speaker




Agreed , on the edge with the display screen

But for NAA OS of course no display to worry about

Anyway until I experience one single issue powering Pi4 with 4.5W power i can happily keep using it

If I ever have an issue, yes 2.4A ports is the way to go.

I’ve also been looking for Type C to Type C hub with PD ! Not a long list of options yet

1 Like

@jussi_laako I am running Apple Music + BlackHole + LosslessSwitcher on my MacBook. I would prefer to pipe this output to HQPlayer running on my Win machine as it has more compute capability. How can I modify the HQPlayer script to enable this?

Yes, the output side of the loopback. But not the input side of it.

If you run HQPlayer on the same Mac, you don’t need to use NAA there. But yes, the rate detection is not going to work. You need to explicitly set the rate manually to match the source rate.

You need to run the networkaudiod through sudo, otherwise it won’t have enough permissions to capture audio and you get silence as result. It may still not work though.

Now the script refers to “localhost” when talking to HQPlayer. You would just replace this with IP address of your Windows computer. And make sure you have the “allow network control” button pressed in the HQPlayer’s toolbar.

This little Belkin looks great. 100W PD.

https://www.amazon.com/Belkin-Connect-Multiport-Transfer-Chromebook/dp/B0BY27XSJ3/r

Well I need to run HQP on a windows machine to overcome the DoP DSD256 limitation on Mac.
I was just testing this setup to simulate if the rate change would work.

So will the Apple Music approach work with Tidal by modifying the HQP control script? The situation is better apparently with Tidal as it does change the core audio sampling in exclusive mode.

But the input is on peripheral port and feeding the host? But no PD output to the peripheral ports?

Yes it should…

Well, yes and no. I think someone said LosslessSwitcher doesn’t detect those changes. If that’s the case, the rate change doesn’t get propagated to HQPlayer input side.

Using an output NAA is enough for that. Given that the Mac in question has enough CPU power to do better than DSD256 (with good enough settings).

Ok. I’ll have to test that. Question is how the Core Audio sample rate changes can be detected? It feels so close yet so far in getting this to the HQP through the control script.

Unfortunately not in my case. My windows machine is 13900k based so the MacBook Pro is no match for that.

Also I want to avoid the NAA if I can do without.

I have not looked into LosslessSwitcher source codes in that detail. But IIRC, it is watching for example macOS system logs.

I today got the TP-Link USB hub. It even has a power switch to toggle power to the charging ports, so can be used to power on/off RPi4 any time regardless if host is connected to it.

I also got Lenovo Thunderbolt 4 dock that seems to have Type-C charging port. I want to test if it would work with RPi5 serving same function as RPi4. Overall I would like to test if I can get RPi5 device mode working.

2 Likes

Can you please elaborate a bit on that? How does the NAA exactly interact with the Loopback interface?

Be it NAA or HQPlayer, it is just a regular CoreAudio input device. It is not any different from let’s say the built-in microphone or line input.