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

Anything like it for the PC world?

I do not know :frowning:, a quick search results in this: VB-Audio VoiceMeeter, which is free, Other interesting Windows alternatives to Loopback are JACK Audio Connection Kit, Virtual Audio Cable, VB-Audio Virtual Cable and Total Recorder.

but I did not look at any of these

Virtual audio cable hi fi works good with Hq player Desktop.I can play Spotify , Youtube music , Deezer Tidal and Qobuz.But Qobuz and Tidal can work in wasapi exclusive , have different file sampling rates, and you have to switch the frequency manuallyā€¦I think that this method is best suited for Spotify, because the computer on which Spotify is installed can be controlled from the application on the smartphone (spotify connect). with other streaming services, you will have to install a computer remote control programā€¦ (There is also a YouTube music desktop remote program, but it has one drawback, first you need to start the playback on the computer, and then control it from the phone)

2 Likes

Yep Iā€™ve used this too. Similar functionality as BlackHole

Similar limitation - you need to manually change sample rates.

1 Like

So you install HQP OS on the atom and just connect the iPad to the micro B? This might be my solution

Hi, this method used to work but now no longer works. Something broke in Linux kernel along the way. We did a lot of investigating and testing (all in this thread) but it is no longer a recommended method for auto sample rate switching.

The best is method #4 that I last linked in other thread , when I mentioned RME ADI-2:

1 Like

Another method, new, is RME HDSPe AIO with ASIO driver is recognized in HQ player as an input

But needs Windows.

Since you run a Mac, not really applicable to you.

And and finding a used RME ADI-2 will be much cheaper than new Windows Machine + RME HDSPe AIO card.

1 Like

Another idea - @shankha you could try the BlackHole method with this below.

I tried this app last year and it was not good at all. Maybe it has improved since then.

BlackHole is free on macOS and you can trial HQPlayer Desktop for free also.

1 Like

cool, thanks

@dabassgoesboomboom IIRC, RME announced at some point a loopback feature for ADI-2 DAC. Have you tried this with yours? It could be one additional way to do inputs.

2 Likes

Mmmm good point @jussi_laako .

Let me try this and report back!

My ADI-2 DAC already works as HQPlayer input, with TOSLink and Digital Coax.

What would loopback (potentially) offer in terms of inputs ?

1 Like

In some cases you could replace need for any other external hardware for feeding audio from application X to HQPlayer, you could have both on the same machine with audio routed locally through the loopback.

Unfortunately I didnā€™t yet manage to convince MC of RME to add rate reporting support to the ADI-2 ASIO driver. But it is technically entirely possible, as you know from my Linux driverā€¦

1 Like

Ok will try it now! Have to first check if I have latest firmware

Itā€™s been such a great HQP input, I havenā€™t touched it for many months - except turning on/off, selecting TOSlink/digital coax source :grin:

Ok so I plugged in headphones to test this out.

When I select the ADI-2 input, itā€™s not working. HQP output is set to PCM705kHz, so that is showing.

Log error below

This is obvious ALSA for both input and output at same time

If the manual says coax/optical is then no longer available for recording, then this is to be expected?

? 2023/03/25 21:11:43 clReadAudio::Read(): starting failed, attempt to reinitialize...
  2023/03/25 21:11:43 ALSA input attempting to uninitialize...
- 2023/03/25 21:11:43 ALSA input backend uninitialized
  2023/03/25 21:11:43 ALSA input attempting to initialize...
  2023/03/25 21:11:43 Input set channels: 2 (2)
  2023/03/25 21:11:43 Input SDM packing: 1
  2023/03/25 21:11:43 asoundlib version: 1.2.6.1
  2023/03/25 21:11:43 ALSA input device: hw:CARD=DAC51050442,DEV=0
  2023/03/25 21:11:43 ALSA input control element: AES Rate
  2023/03/25 21:11:43 ALSA input low level rate element: AES Rate
  2023/03/25 21:11:43 ALSA input control element: AES Sync
  2023/03/25 21:11:43 ALSA input control element: Current Frequency
  2023/03/25 21:11:43 ALSA input control element: SPDIF Format
  2023/03/25 21:11:43 ALSA input control element: SPDIF Interface
  2023/03/25 21:11:43 ALSA input control element: SPDIF Rate
  2023/03/25 21:11:43 ALSA input control element: SPDIF Sync
  2023/03/25 21:11:43 ALSA input control element: Sync Source
  2023/03/25 21:11:43 ALSA input control element: System Rate
  2023/03/25 21:11:43 ALSA input control element: Capture Channel Map
  2023/03/25 21:11:43 ALSA input control element: Playback Channel Map
  2023/03/25 21:11:43 ALSA input mixer element: AES Rate
  2023/03/25 21:11:43 ALSA input mixer element: AES Sync
  2023/03/25 21:11:43 ALSA input mixer element: Current Frequency
  2023/03/25 21:11:43 ALSA input mixer element: SPDIF Format
  2023/03/25 21:11:43 ALSA input mixer element: SPDIF Interface
  2023/03/25 21:11:43 ALSA input mixer element: SPDIF Rate
  2023/03/25 21:11:43 ALSA input mixer element: SPDIF Sync
  2023/03/25 21:11:43 ALSA input mixer element: Sync Source
  2023/03/25 21:11:43 ALSA input mixer element: System Rate
  2023/03/25 21:11:43 ALSA input access mode: RW_INTERLEAVED
  2023/03/25 21:11:43 ALSA input PCM format: S32_LE
  2023/03/25 21:11:43 ALSA input PCM bits: 32
  2023/03/25 21:11:43 ALSA input PCM physical width: 32
  2023/03/25 21:11:43 ALSA input PCM rates: 705600 - 705600
  2023/03/25 21:11:43 ALSA input rate available: 705600
  2023/03/25 21:11:43 ALSA input DSD using DoP
  2023/03/25 21:11:43 ALSA input rate available: 11289600
+ 2023/03/25 21:11:43 ALSA input backend initialized
! 2023/03/25 21:11:43 clHQPlayerEngine::Execute(): clReadAudio::Read(): clAudioEngine::Reinitialize(): clAudioEngine::SetSampleRate(): requested rate not available
  2023/03/25 21:11:43 Stop request (reset)
& 2023/03/25 21:11:43 Stop...
- 2023/03/25 21:11:43 ALSA output engine stopping...
- 2023/03/25 21:11:45 ALSA output engine stop request...
- 2023/03/25 21:11:45 ALSA output engine stopped
- 2023/03/25 21:11:45 Playback engine stopped
& 2023/03/25 21:11:45 ...stopped
  2023/03/25 21:11:45 Set volume: -3 +
  2023/03/25 21:11:45 Audio transport: rate=0 channels=2 format=auto buffer=100 (normal)
  2023/03/25 21:11:45 ALSA input sampling rate: 44100 (44100)

@jussi_laako - Unless you mean, play a USB source to ADI-2 and try to output from HQPlayer back to ADI-2 ?

I would need to make a change to hqplayerd.xml though to input from USB? Currently its setup to input from digital coax / TOSlink

Because the manual says coax/optical is then no longer available for recording, with loopback to USB

Currently for ADI-2 HQP input (digi coax and TOSlink):

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

For example play from some other application on Linux to the ADI-2 USB output, and then attach HQPlayer to the ADI-2 input. You may need to either use ā€œ0ā€ as sampling rate in HQPlayer URI, or match the output rate. Both input and output need to be same rate naturally, otherwise it wonā€™t work.

There are two ALSA devices, one input and one output. So this should work.

1 Like

It is likely the ā€œSPDIF Rateā€ one, so the ā€œopticalā€ input. But you can check with alsamixer which one shows correctly.

1 Like

I fiddled with everything and canā€™t get it to work. Also fiddled with channel offset, from 0 to 4 (nothing in the ADI-2 DAC manual about which is what)

Source is 44.1kHz (Soundcloud in Firefox browswer on same Ubuntu Desktop machine)

I select 44.1kHz under URL in HQP Desktop and it fails.

I select 705kHz and it starts running but no sound

I am selected USB source on the ADI-2 itself but no sound

After trying playing to ADI-2 USB input from Ubuntu, I tried playing to my USB-to-optical converter and doing it that way. But no luck with sound.

Itā€™s not completely clear how loopback is actually working, which means Iā€™m trying all kinds of things without really knowing what Iā€™m doing - just hoping to get some sound :grin:

Once HQPlayer 705kHz is running, I notice when I select ADI-2 USB in Ubuntu 'Sound settings, it wonā€™t let me select it.

I guess HQPlayer is taking full control of it, so Ubuntu Desktop cant also play to it

Problem is here, you have the ADI-2 selected as output device too. So Ubuntu cannot play to it. Only select it as input device and something else as output. Then Ubuntu should be able to play to the ADI-2 output side.

Just in case, first start playback to the ADI-2 from Firefox for example. And only then try to start playback from HQPlayer, using the same rate as the output is going.