Playback of imported/recorded files distorted and fast.

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, 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 (see 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.
p4ulr33d
Posts: 8
Joined: Tue Jun 18, 2013 9:52 pm
Operating System: Please select

Playback of imported/recorded files distorted and fast.

Post by p4ulr33d » Tue Jun 18, 2013 10:11 pm

This is a tough one to describe, but I'll do my best.

Say I open an mp3 file with Audacity, it imports just fine -- there are no errors, and the wave forms look as they should. But when I press play, Audacity seems to fast forward through the track (at a rate of approximately six times normal speed), but the sound isn't just fast, it's distorted and sounds muffled. (Unfortunately, I can't provide an audio example as I use audacity to capture system sounds.) The playback speed slider is on normal, so it's not that. Similarly, when I record from my soundcard, it works as it should, but when I playback the recorded audio, again, it's too fast and distorted. However, if I export the recorded sound as .wav, and play it back through VLC, the sound is fine. It's normal speed and clear as a bell. My point is, Audacity seems to be working fine. It's capturing sound correctly, it's exporting sound correctly, it's just not playing sound correctly. During playback, if I faff about with the sliders, it tends to crash, too.

I'm currently using Manjaro Linux 0.8.6, Audacity version 2.0.3-2, and am using pulseaudio. (Correctly chosen in the options.)

Any ideas?

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Playback of imported/recorded files distorted and fast.

Post by kozikowski » Tue Jun 18, 2013 10:16 pm

Say I open an mp3 file
Let's say you didn't. Let's say you opened a compressed type of file such as an AAC or M4A. Audacity doesn't know how to manage those and so it plays them as if they were normal files giving the chipmunk sound.

You can use the FFMpeg software to make Audacity recognize and play many more different file types.

http://audacityteam.org/download/linux

Koz

p4ulr33d
Posts: 8
Joined: Tue Jun 18, 2013 9:52 pm
Operating System: Please select

Re: Playback of imported/recorded files distorted and fast.

Post by p4ulr33d » Tue Jun 18, 2013 10:22 pm

Yes, but the issue isn't that I'm having a problem with mp3 files. I simply mentioned mp3 as an example. The problem is with sound playback. If I capture my system sound -- so this is before I've exported the raw sound into any format, compressed or otherwise -- the sound plays fast and distorted.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Playback of imported/recorded files distorted and fast.

Post by steve » Tue Jun 18, 2013 10:22 pm

That sounds very strange - I've not come across this problem.

If you only have one sound card installed, there should be options in the record and playback devices in the Device Toolbar that include (hw:0,0) in their names. Try selecting those, and ensure that no other application is using sound, then see if that works any better.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

p4ulr33d
Posts: 8
Joined: Tue Jun 18, 2013 9:52 pm
Operating System: Please select

Re: Playback of imported/recorded files distorted and fast.

Post by p4ulr33d » Wed Jun 19, 2013 12:29 am

Just a quickie before bed: after a bit of fiddling, I seem to have developed a rather clumsy workaround. I can record from my soundcard using the default pulseaudio settings, but to play the recording back I have to switch to the sound on my video card (HDMI). I can then play and edit, but if I try to record with HDMI sound, nothing comes through. A bit rough and ready, but it'll work at a push. I just can't work out why I'm having this problem. Generally Audacity works just fine for me. I did a search on the Manjaro forums in case it was an Arch problem, but I couldn't see anything. Will have a twiddle over the next few days and see whether I can come up with anything else.

Thanks for the help so far....

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Playback of imported/recorded files distorted and fast.

Post by steve » Wed Jun 19, 2013 1:32 am

p4ulr33d wrote: but to play the recording back I have to switch to the sound on my video card (HDMI)
It makes me shudder whenever I read "HDMI" in the same paragraph as anything to do with audio. I've seen so many problems related to HDMI audio, not only on Linux but on Windows too.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

p4ulr33d
Posts: 8
Joined: Tue Jun 18, 2013 9:52 pm
Operating System: Please select

Re: Playback of imported/recorded files distorted and fast.

Post by p4ulr33d » Wed Jun 19, 2013 8:14 am

In this instance, it's actually pulse audio causing the problems. It's glitch-free mode. When I disable it Audacity keeps crashing and speeding. When I enable it, my overall sound is a bit dodgy. Oh, the agony of choice.

Thanks for the suggestions, guys. Now I know what's wrong, I can at least work on it. I suspect it's un-solveable, but there we go.

gwenlune
Posts: 2
Joined: Sat Sep 14, 2013 12:19 pm
Operating System: Please select

Re: Playback of imported/recorded files distorted and fast.

Post by gwenlune » Sat Sep 14, 2013 12:25 pm

Hi
Did you find a solution for this problem? I have same one.

Im' on Achlinux 64

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Playback of imported/recorded files distorted and fast.

Post by Gale Andrews » Mon Sep 16, 2013 1:26 am

gwenlune wrote:Did you find a solution for this problem? I have same one.
Achlinux 64
Try playing at the same sample rate that you record at.

What are the audio devices in Help > Audio Device Info?

If you have pulse, have you installed pulse audio volume control?

In Help > About Audcity, "Build Information", what is the enabled sample rate conversion library?

In the Quality Preferences, try a lower quality converter for the "Real-time" sample rate converter.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kmaliagkas
Posts: 2
Joined: Fri Aug 08, 2014 2:06 pm
Operating System: Please select

Re: Playback of imported/recorded files distorted and fast.

Post by kmaliagkas » Fri Aug 08, 2014 2:08 pm

The problem is in the pulse audio. From a thread I've found that if you start the Audacity with the following command

env PULSE_LATENCY_MSEC=30 audacity

the playback plays correctly

Post Reply