Running Audacity switch PulseAudio to 44100 until PC restart

Help for Audacity 2.x.x on GNU/Linux.

ImageThis forum is for Audacity 2.x.x on GNU/Linux and Unix-like operating systems.
Please state which version of Linux you are using, the exact three-section version number of Audacity from Help > About Audacity... and whether you installed your distribution's release or daily version of Audacity or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by steve » Sun Sep 03, 2017 8:54 pm

deniskx wrote:I can try if you give instructions. I was build source codes before, but the process is not pleasant.

You can get the 2.1.3 source code via this page: https://www.fosshub.com/Audacity.html (ensure that you get the "Audacity 2.1.3 release" code, because the instructions are different for the beta version).

The build instructions are then basically the same as on this page: https://forum.audacityteam.org/viewtopi ... 19&t=88922
but with the following differences:

4. Configure Audacity:
Code: Select all
../configure --disable-dynamic-loading --enable-debug


6. Install
Don't do this step. You can run the debug version from the command line without installing it.

7. Additional step for testing purposes.
Create a new folder inside the "build" folder and name it "Portable Settings".
Your debug build will now use this folder to save its settings rather than interfering with your regular installed version.

Don't build the "Optional Nyquist Workbench Module". That is not required.

To launch the new debug build, open a terminal window and navigate to the "build" folder, then enter:
Code: Select all
./audacity
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by deniskx » Mon Sep 04, 2017 11:49 am

Build Audacity. Attached log. Report 48000, but I still hear distortions. So someone after convert frequency to 44100 (and then Audigy 2 ZS bad-quality resampled 44.1>48 again). And initiator of this is Audacity. When Audacity run, it tests something and changes the system. Even volume notification appears in tray.
I recorded to dictophone how Audacious plays WAV 48 kHz before (first) and after (next) Audacity run.
Attachments
audacity.log
(3.88 KiB) Downloaded 5 times
audacity.wav
(847.33 KiB) Downloaded 6 times
deniskx
 
Posts: 14
Joined: Wed Aug 30, 2017 12:54 pm
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by steve » Mon Sep 04, 2017 12:01 pm

Could you post the actual test file that you are using, I'd like to try it on my machine to see what happens.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by deniskx » Mon Sep 04, 2017 1:12 pm

It's in first post SB test 48.wav
But you probably will not hear any distortion, even if there is resampling(s) because of high quality of resampling in modern sound cards.
I suggested in this post test with RMAA to find out actually playing sample rate and level of distortion. To do this, you need 2 PC, one of them with Windows.
deniskx
 
Posts: 14
Joined: Wed Aug 30, 2017 12:54 pm
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by steve » Mon Sep 04, 2017 2:48 pm

deniskx wrote:It's in first post SB test 48.wav

When you import it into Audacity, does it look like this:

firsttrack003.png
firsttrack003.png (13.2 KiB) Viewed 161 times


and the track spectrogram view like this:

firsttrack004.png
firsttrack004.png (140.88 KiB) Viewed 161 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by deniskx » Mon Sep 04, 2017 3:43 pm

The point is to play in 48 kHz sample rate a tone of 23-24 kHz (>44.1/2...<48/2) and record. If there is 48>44.1 resampling, there will be no frequencies in the recorded signal above 22 kHz (44.1/2). You can run RMAA in Wine and record a digital loopback. It's not very reliable though. You can play and record digital loopback directly in Audacity I suppose. RMAA can generate a test WAV file. Tomorrow, I delete Linux and return to Windows. If you still have tests, hurry up.
deniskx
 
Posts: 14
Joined: Wed Aug 30, 2017 12:54 pm
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by steve » Mon Sep 04, 2017 3:57 pm

If your sound card works well at 48000 Hz, you could always set up Jack Audio System and configure it to 48000 Hz. That would guarantee that everything is running at 48000 Hz (Jack does not do resampling).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by deniskx » Mon Sep 04, 2017 5:43 pm

What about browsers, for example? They do not have sound settings. Maybe I'll install ArchLinux without PulseAudio and check Audacity on motherboard sound card.

What is your sound card? I'm just curious.
deniskx
 
Posts: 14
Joined: Wed Aug 30, 2017 12:54 pm
Operating System: Linux *buntu

Re: Running Audacity switch PulseAudio to 44100 until PC res

Permanent link to this post Posted by steve » Mon Sep 04, 2017 6:59 pm

deniskx wrote:What about browsers, for example?

"pulseaudio-module-jack" can look after applications that don't support Jack.

Since Ubuntu 16.04, running Jack has got a whole lot easier:
Install qjackctl and pulseaudio-module-jack
and add the following command to run after startup:
Code: Select all
pacmd set-default-sink jack_out


Start Jack with QjackCtl, then use the normal "Sound Settings" (pavucontrol) to direct sound from web browsers and other non-Jack applications to play through "PulseAudio Jack Sink"


deniskx wrote:What is your sound card? I'm just curious.

On this laptop, there is on-board sound from HDA Intel PCH (ALC269VC Analog), HDA Intel PCH HDMI (not used), and a Behringer UCA 202 USB (external).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Previous

Return to GNU/Linux and Unix-like



Who is online

Users browsing this forum: No registered users and 3 guests