[pulseaudio-tickets] [Bug 66424] New: incorrect sample rate when recording a monitor

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jun 30 18:00:09 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=66424

          Priority: medium
            Bug ID: 66424
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: incorrect sample rate when recording a monitor
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: maarten-baert at hotmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: core
           Product: PulseAudio

I was trying to record 'Monitor of Built-in Audio Analog Stereo' at 44.1kHz,
but for some reason PulseAudio actually recorded it at 48kHz. The result is a
44.1kHz audio file that actually contains 48kHz audio, so when it is played
back there is a very noticeable pitch shift and the length is also wrong. I
could reproduce this with my own application (which uses ALSA), Audacity (also
ALSA), arecord and parecord. For the last two I used these commands (while
playing a 44.1kHz MP3 in VLC):

arecord -f S16_LE -c 2 -r 44100 /tmp/alsa-test-44100.wav
parecord --format=s16le --channels=2 --rate=44100 /tmp/pa-test-44100.wav

I also tried recording at 48kHz, and this doesn't fix the problem. The
following commands:

arecord -f S16_LE -c 2 -r 48000 /tmp/alsa-test-48000.wav
parecord --format=s16le --channels=2 --rate=48000 /tmp/pa-test-48000.wav

... would also result in pitch-shifted sound.

I also tried repeatedly switching between the 'monitor' and my microphone (with
pavucontrol), and there was only a pitch shift when I recorded the 'monitor'.

I tried to change some settings in daemon.conf so I restarted PulseAudio, but
it turns out that just restarting made the problem go away. After that I
haven't been able to reproduce it. But I'm sure it was there: I still have the
pitch-shifted audio files and a list of packet timestamps from my application.

I am using Arch Linux and PulseAudio 4.0. I am using the default configuration
except for 'flat-volumes=no'.

I can upload the audio files and packet timestamps if they are useful.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20130701/f3062418/attachment.html>


More information about the pulseaudio-bugs mailing list