LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2020, 02:17 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
Audacity playback is way too fast - slackware current, audacity 2.4.1/2.4.2


Slackware64-current. 5.4.67 kernel. Fairly clean install from about a week ago.

I installed Audacity using the slackbuilds-current SlackBuild file. I also manually installed audacity 2.4.2, without a SlackBuilds, for testing purposes, both do the same thing.

When I load and play back an mp3 file, it plays very fast - one minute of playback passes in about 4 seconds. I can't find any setting that controls this. It does not matter what mp3 I load and playback, all of them do it, including known good mp3 files that played fine with audacity 2.3.2 in Slackware 14.2.

I built the most current version, 2.4.2 (slackbuilds-current has 2.4.1). Same thing.
I ran it under a different user account to make sure there were no user specific settings causing this. Same thing.
I also tried the "Portable Settings", just make sure there really was not any settings hanging around causing problem. Same thing.
I ran the windows version via wine, and it works perfectly.

This did not happen under Slackware 14.2 and audacity 2.3.2.

At this point I'm not quite sure where to look. Suggestions/advice welcome.
 
Old 10-12-2020, 06:35 PM   #2
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
And I just now noticed the console flooding with this:

ALSA lib pcm.c:8545snd_pcm_recover) underrun occurred

Literally thousands of these scroll up.
 
Old 10-12-2020, 06:36 PM   #3
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
PS Tried 3.0.0 alpha. Same thing.
 
Old 10-13-2020, 06:33 AM   #4
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,072

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Have you tried AlienBob's Audacity-2.4.2 package? Works perfectly on my 64 bit -current.
If you encounter problems with his package as well, maybe the reason can be found in your description of your system as a "fairly" clean install, which could mean a lot of things.
 
Old 10-13-2020, 06:51 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Did you change your default pulseaudio settings? in particular, did you change the defaults for 'default-fragments' and 'default-fragment-size-msec' in /etc/pulse/daemon.conf?
 
1 members found this post helpful.
Old 10-13-2020, 10:24 AM   #6
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by kgha View Post
Have you tried AlienBob's Audacity-2.4.2 package? Works perfectly on my 64 bit -current.
If you encounter problems with his package as well, maybe the reason can be found in your description of your system as a "fairly" clean install, which could mean a lot of things.
I'm currently using his package for audacity and the three deps it lists, jack2, ladspa_sdk and vamp-plugin-sdk. Same thing.

"Fairly clean" means I built it a few weeks ago and haven't had time to screw it up, or so I thought...
 
Old 10-13-2020, 10:25 AM   #7
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by Alien Bob View Post
Did you change your default pulseaudio settings? in particular, did you change the defaults for 'default-fragments' and 'default-fragment-size-msec' in /etc/pulse/daemon.conf?
Yes, in an attempt to fix the problem, though tbh I'm not really sure what settings would be optimal. Did not help.

What is really weird, if I run it as root (I know, never do this), it will work about 80% of the time. It will start out fast, zip through the first 30-60 seconds, and then suddenly sync up and play normally. Successive runs do the same, but it will not sync in the same place, and sometimes won't sync at all.

Last edited by Ook; 10-13-2020 at 10:28 AM.
 
Old 10-13-2020, 10:44 AM   #8
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by Alien Bob View Post
Did you change your default pulseaudio settings? in particular, did you change the defaults for 'default-fragments' and 'default-fragment-size-msec' in /etc/pulse/daemon.conf?
After reading your question, and reading numerous accounts of people changing these settings to fix problems like this, I decided to tweak them some more. They start out like this:

default-fragments = 4
default-fragment-size-msec = 25

After playing with them a bit, I settled on these settings, and much to my surprise this fixes the problem. I had to reduce both of them, as reducing just one did not work. I am curious as to why it works?

default-fragments = 2
default-fragment-size-msec = 10
 
1 members found this post helpful.
Old 10-15-2020, 04:33 PM   #9
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
The changed speed with root access makes me wonder if this is a resampling issue. I'm pretty sure if you specify sampling rate in asound.conf or possibly better /<User>/.asoundrc that locks sampling rate and "discourages" resampling.

There are pulse options that can limit or deny resampling but it's easier for me at least with ALSA.

Last edited by enorbet; 10-15-2020 at 04:35 PM.
 
Old 12-31-2020, 11:51 AM   #10
penduin
LQ Newbie
 
Registered: Aug 2012
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
I've been having similar problems for a long time; playback would start out as very fast garbled noise, and then seemingly at random, it would fix itself and play the rest of the data correctly.

Quote:
Originally Posted by Ook View Post
default-fragments = 2
default-fragment-size-msec = 10
These settings appear to have fixed the problem for me completely, and I'm with Ook in wondering why/how.

My knee-jerk guess is that pulse is involved, so of course inscrutable things will happen. ;^)
But in seriousness, I wonder if there's something about the way audacity's internal data structures get mapped to the audio subsystem it talks to (pulse in our case) that maybe tries to use a shortcut or makes unsafe buffer length assumptions... something that happens to line up and work as intended in almost all cases, but not for Ook and I, for whatever reason.

Audacity knowing where exactly we are within the file even during wrong/fast playback is very curious. It doesn't rule out a PulseAudio bug, especially given our "fix", but I'd love to show this problem to somebody who is familiar with either audacity or pulse's inner workings.
 
Old 01-01-2021, 08:06 AM   #11
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 402

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
I'm currently using his package for audacity and the three deps it lists, jack2, ladspa_sdk and vamp-plugin-sdk. Same thing.
Maybe it has some interaction with jack2 you have as a dependency. I have discover yesterday with Jamulus which is a realtime client-serveur audio for virtual music/concert, that Puseaudio and jackd are doing a sort of war. Previously they couldn't cohabitate at all.

As a remedy which work very well for Jamulus (delay time was reduce from 120ms to 35ms), you should install the Alien Bob pulseaudio-jack package (and reinstall the pulseaudio from current which is now the 14.0 version to be in sync with the Alien Bob package).

Audacity can also recorder a Jamulus session and it works well.

Maybe you have a weird symptom of the same thing.
 
Old 01-01-2021, 08:10 AM   #12
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 402

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
It works also on an older Slackware current if you recreate the Alien Bob package pulseaudio-jack and the official pulseaudio of the Slackware current with the Slackbuilds they provided.

I have tested on the lastest with the packages and on an older install with recompilation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: My Nerd Life: Too Loud, Too Funny, Too Smart, Too Fat LXer Syndicated Linux News 0 01-24-2014 05:21 AM
LXer: Slackware-Current Maybe Too Current LXer Syndicated Linux News 0 04-17-2013 05:50 AM
System Time increasing too too fast!!!! sheikhsa Red Hat 5 02-20-2007 07:47 AM
RealPlayer playback choppy/too fast BCarey Linux - Software 2 12-03-2006 12:04 PM
Alsa and OSS playback is too fast... Belboz99 Linux - Software 1 06-25-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration