Public bug reported: Changing volume while parec records monitor causes recorded sound to stutter (synonyms: lag, jump, skips). This was tested on audio coming from Firefox/Flash as well as VLC. Both applications produce the same result.
How to reproduce: 1) Use the following script which finds the monitor pseudo-device and records its output to a file using sox. #!/bin/bash #This script requires sox, if not installed, run " sudo apt-get install sox" command first. # Get PA sink monitor name: MONITOR=$(pactl list | grep -A2 '^Source #' | grep 'Name: .*\.monitor$' | awk '{print $NF}' | tail -n1) # Record monitor output echo "Recording from $MONITOR" echo "Press Ctrl-C or close window to stop recording" parec -d "$MONITOR" | sox -t raw -r 44100 -sLb 16 -c 2 - ~/output.wav 2) While it is recording, play with the volume controls (top panel volume/speaker icon) to bring the volume all the way down, and then all the way up using your mouses scroll wheel or touchpads scroll functionality. Result: recorded sound stutter or lags Expected: monitor device is not linked to output volume therefore sound should be recorded without interference from regular system use. Question: Trying to find the cause of the interference is beyond me. Could this issue be related to sox? If so, could someone recommend or test this script with a different program? ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: pulseaudio-utils 1:1.1-0ubuntu15.1 ProcVersionSignature: Ubuntu 3.2.0-26.41-generic-pae 3.2.19 Uname: Linux 3.2.0-26-generic-pae i686 NonfreeKernelModules: wl AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24. AplayDevices: **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 ApportVersion: 2.0.1-0ubuntu8 Architecture: i386 ArecordDevices: **** List of CAPTURE Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: komputes 1936 F.... pulseaudio komputes 3871 F.... pulseaudio /dev/snd/pcmC0D0p: komputes 3871 F...m pulseaudio Card0.Amixer.info: Card hw:0 'Intel'/'HDA Intel at 0xf0540000 irq 44' Mixer name : 'Realtek ALC268' Components : 'HDA:10ec0268,102802b0,00100101' Controls : 17 Simple ctrls : 10 Date: Sun Jul 15 08:30:10 2012 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423.2) ProcEnviron: TERM=xterm PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: pulseaudio UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 04/09/2010 dmi.bios.vendor: Dell Inc. dmi.bios.version: A07 dmi.board.name: CN0J14 dmi.board.vendor: Dell Inc. dmi.board.version: A07 dmi.chassis.type: 8 dmi.chassis.vendor: Dell Inc. dmi.chassis.version: A07 dmi.modalias: dmi:bvnDellInc.:bvrA07:bd04/09/2010:svnDellInc.:pnInspiron910:pvrA07:rvnDellInc.:rnCN0J14:rvrA07:cvnDellInc.:ct8:cvrA07: dmi.product.name: Inspiron 910 dmi.product.version: A07 dmi.sys.vendor: Dell Inc. ** Affects: pulseaudio (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug i386 precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1024955 Title: Changing volume while parec records monitor causes sound to studder To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1024955/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs