← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1460498] Re: Unable to play back sound or plays back too fast with Audacity on Ubuntu 15.04 with wireless USB Headset

 

I am also experiencing this bug. Playback in Audacity is fast/garbled and causes Audacity to crash
external usb soundcard - Behringer UCA202
Ubuntu 15.10
Audacity 2.0.6 from repos or 2.1.2 manually installed

similar to N.J, my terminal is filled with the warning:
ALSA lib pcm.c:7905:(snd_pcm_recover) underrun occurred


(workaround)
open the file ~/.config/pulse/daemon.conf
-
if that file doesn't exist, create it:
cp /etc/pulse/daemon.conf ~/.config/pulse/daemon.conf
-
add this line to the bottom of the file and save it:
default-fragment-size-msec = 2
-
restart pulse:
pulseaudio -k


decreasing the fragment size from the default of 25ms to 2ms probably increases the likelihood of stuttering if the system is under load, but I have not noticed any problems yet.
The "default-fragments" value also has an influence, some values generate the problem and some don't, regardless of the fragment size value. I don't experience the error when default-fragments is on the default of 4 so I leave it unset.

(references)
https://bbs.archlinux.org/viewtopic.php?id=185736
http://forums.linuxmint.com/viewtopic.php?f=42&t=44862

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to audacity in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1460498

Title:
  Unable to play back sound or plays back too fast with Audacity on
  Ubuntu 15.04 with wireless USB Headset

Status in audacity package in Ubuntu:
  Confirmed

Bug description:
  I can record my voice just fine with my headset, but Audacity doesn't
  detect my headset's output. So it records fine, but when it's set to
  "default" or "pulse", I can't play back ANYTHING OR it just plays back
  too fast, trying to play back to my headset, either way is
  unacceptable.

  I have a Logitech Wireless Headset H600 ( USB ).
  Audacity 2.0.6
  Ubuntu 15.04

  nothing_much@nothingmuchheretosay:~$ audacity
  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
  ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
  ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
  ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
  bt_audio_service_open: connect() failed: Connection refused (111)
  bt_audio_service_open: connect() failed: Connection refused (111)
  bt_audio_service_open: connect() failed: Connection refused (111)
  bt_audio_service_open: connect() failed: Connection refused (111)
  Cannot connect to server socket err = No such file or directory
  Cannot connect to server request channel
  jack server is not running or cannot be started
  21:43:19: Debug: DirManager: Created new instance.
  Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
  Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
  Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
  Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
  Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
  21:43:25: Debug: AudioIO::GetBestRate() for capture
  21:43:25: Debug: GetBestRate() suggested rate 44100 Hz
  21:43:25: Debug: GetBestRate() Returning 44100 Hz
  ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
  ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred

  The ALSA lib pcm thing repeats after every attempt to play back,
  happens when it attempts to play back.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: audacity 2.0.6-2 [modified: usr/share/applications/audacity.desktop]
  ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
  Uname: Linux 3.19.0-18-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sun May 31 21:33:16 2015
  InstallationDate: Installed on 2015-05-15 (16 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
  SourcePackage: audacity
  UpgradeStatus: Upgraded to vivid on 2015-05-15 (16 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/audacity/+bug/1460498/+subscriptions


References