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

Actually luckily the converters are here in my office and already had optical cables still connected.

It doesn’t work for me either. Maybe @jussi_laako can confirm if I’m doing something wrong

& 2024/03/10 13:20:22 Set transport (5): RPi4 USBStreamer @176.4k
  2024/03/10 13:20:22 	found matching input: RPi4 USBStreamer @176.4k
  2024/03/10 13:20:22 Audio transport: rate=0 channels=0 format=auto buffer=0
  2024/03/10 13:20:22 ALSA input set channels: 2 (2)
  2024/03/10 13:20:22 asoundlib version: 1.2.10
  2024/03/10 13:20:22 ALSA input device: USBStreamer @176.4k
# 2024/03/10 13:20:22 ALSA snd_hctl_open() failed: No such file or directory
# 2024/03/10 13:20:22 ALSA snd_mixer_attach() failed: No such file or directory
# 2024/03/10 13:20:22 clReadAudio::Open(): clALSAEngine::Initialize(): snd_pcm_open(): No such file or directory
& 2024/03/10 13:20:22 Play
# 2024/03/10 13:20:22 clPlayerDaemon::SwitchInput(): clHQPlayerEngine::Play(): Transport == NULL
1 Like

Aha that’s great! Thanks for quickly checking it out :pray:
I can’t see the pack_sdm attribute set on the highlighted line. Did you omit it for a reason?

I’m really curious now that it’s not working in two cases at least, and what does @jussi_laako think about this…

@Stefano_Antonelli , I was reading more about HifiBerry Digi+ I/O, does it support rate switching? From what HifiBerry explained this Digi+ do not see the rate, and this is on HW, so as I understood it passes all throught as-is. Whill NAA differentiate then ?

NAA is Jussi’s image, correct ?

I don’t know but I’m going to use with a CD transport therefore there is non need of rate switching … input is 16/44.1 only

1 Like

Yes it is ……

1 Like

Clear. But equally you don’t speciafy 16/44100 anywhere ? Or, do you ?

I’m waiting for it in few days and I don’t know details but I suppose that the overlay should take care of it

1 Like

I had it and it didn’t work. I checked networkaudiod.xml and it is there by default already

Theoretically it should work. But I haven’t got time to do testing on that, so I don’t know if there’s some reason why it wouldn’t work. I will test it when I find time. Probably in couple of weeks time.

It has been tested only with direct HQPlayer inputs, not through NAA inputs.

With format=“auto”?

It doesn’t support automatic rate switching. You need to manually switch rates. But naturally not a problem if it is being used for something like Spotify, or for a traditional CD-spinner. Or for example AirPlay. Since these are all constant rate use cases.

Would be very interesting to learn what are you going to find out, @Stefano_Antonelli, because in a meanwhile I found these couple of things:

CD/SACD/BD player from Sony, UBP-X800M2, that for SACD can send DSD over HDMI:

And this extractor, that can split HDMI into I2S, etc…

If this link can work the question remains how to route its stream into HQP. So I really wonder how your solution with Digi+ would work.

PS: EDIT Jussi just replied that there’s no automated switching for Digi+, alas…

Thank you, @jussi_laako , ah pity… I agree for CD and Airplay 44100 is set and not a problem, this is what I have set up now with “Node + USBStreamer B”

I wonder if I could get DSD stream, how can I route it to HQP?

First problem is that the input doesn’t have “network” defined as type, so it defaults to local ALSA device. And all the format and sdm_pack attributes need to be there at networkaudiod.xml side, not at the HQPlayer side when the endpoint is remote.

Point is that you can have both traditional CD spinner or similar connected to the Digi+ I/O and some streamer source or similar connected to the USB input. Both on the same input NAA. If you are using HQPlayer Embedded, you can then easily switch between these inputs.

Extracting to DSF is the modern way, and much more optimal. Not bad for DSD64. If you’d like to save some space, use WavPack instead. It can compress DSD content.

yep that is already default for USBSteamer in networkaudiod.xml

Same with pack_sdm=“1”

Nothing to change

I’m confused, “network” is how the RPi4 NAA input is working?

Unless I don’t follow what “type” means?

Is it because channels=“2” missing or something else?

All those attributes are there by default in networkaudiod.xml, for USBStreamer.
Nothing to change at NAA side?

I did not realise two devices are possible, WOOOW! For CD transports or Streamers producing PCM output it is all clear, @jussi_laako

What I’m trying to unserdtand is how to connect SDM stream to NAA/HQP.

I seemingly am missing a piece of a puzzle here between this device Audio extractor HDMI / MHL to I2S / Coaxial / Optical 4K 60Hz - Audiophonics (assuming that it can output SDM over its Toslink or Coaxial or I2S) and NAA/HQP Server.

Can I play multichannel (5.1) Atmos from Apple Music on IPad/iPhone to OS NAA’s USB input?
2 channel Atmos works pretty well.