Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound Card loopback test: no measurement result #3

Closed
ariendj opened this issue Oct 4, 2022 · 7 comments
Closed

Sound Card loopback test: no measurement result #3

ariendj opened this issue Oct 4, 2022 · 7 comments

Comments

@ariendj
Copy link

ariendj commented Oct 4, 2022

Screenshot_20221004_124601
Screenshot_20221004_124236

Hello mincequi! I got qLouder to build and run :)
First thing I did is to try a loopback measurement of my sound card.
I selected the correct pipewire (PulseAudio compatibility-) devices and qpwgraph shows the audio input and output being routed to the correct devices. Volume is on full bast. Yet, after clicking on "measure" and seeing the animation, nothing happens.
The input and output devices are set to 48k, my pipewire setup is running at 192kHz 32bit floating point though. I wasn't able to specify bit depth.

Please let me know if you need more info or if there's anything I can try to assist with this :)

@mincequi
Copy link
Owner

mincequi commented Oct 5, 2022

Hi @ariendj
nice to hear, that it is working. At least to the point where you start measuring...
To be honest: i did not have those intermediate audio frameworks (like PulseAudio, Jack, Pipewire, etc) in mind. Instead, i tried to work as direct with the hardware as possible (ALSA). Also the sample rate detection of sound cards on linux does not seem to work properly. So, i limited this tool to 44.1 and 48 kHz.
Internally, this tool works with 32bit float per default.

You could try to find the proper ALSA devices and try a lower sample rate. Your card should work with 48kHz, i assume. Btw: what is your actual sound card?

However, i need to rework the playback/recording part anyway, because i am using two different frameworks: QtMultimedia and cinder. I will port away from QtMultimedia in favor of cinder (or maybe something else).
In the meanwhile, i will also strick my nose into pipewire...

@ariendj
Copy link
Author

ariendj commented Oct 9, 2022

My mistake. I just blindly assumed that qLouder would support JACK because that's what qLoud used (and Pipewire supports). I'll try again with the ALSA interfaces that are also listed. The dmix ones might work, unless pipewire claims full hardware access.

The soundcard I used is the Asus Xonar U7, a semi-decent USB card that should have a signal to noise ratio above 100dB in loopback mode. Mine does, at least on the left channel. Right input seems broken at under 80dB...

Thanks a lot for your help, I really appreciate you diving head first into the pits of hell linux desktop audio.

@mincequi
Copy link
Owner

mincequi commented Nov 5, 2022

Hey @ariendj ,
i ported away from cinder using miniaudio as playback backend in this branch. I guess, it will make it into main very soon. If you want, you can checkout this branch: https://github.com/mincequi/qLouder/tree/miniaudio

@mincequi mincequi closed this as completed Nov 7, 2022
@mincequi
Copy link
Owner

mincequi commented Nov 7, 2022

Closed as ported away from cinder.

@ariendj
Copy link
Author

ariendj commented Nov 14, 2022

I did a "git pull / make clean / cmake .. / make" and now all I get is this:
arien@NBADJ01:~/source/qLouder/build$ ./qLouder QML debugging is enabled. Only use this in a safe environment. Segmentation fault

@mincequi
Copy link
Owner

This does not tell me much. A backtrace would be great. However, i assume it is because you use jack...
Pulseaudio should do the trick

@mincequi
Copy link
Owner

You can check latest master. This could fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants