Getting Audacity to work

Tim M southern.tim at gmail.com
Fri Jul 20 13:29:58 UTC 2007


Usually this means some other app is hogging the sound card.

> Open a console and run
> $ lsof | grep dev
> and see if something suspicious turns up.
>
> If not, strace audacity:
>
> $ strace -o aud.trc audacity
>
> and after you got the error message, close audacity.
> Then have a look at that trace, especially "open" calls:
>
> $ grep -i open aud.trc | less
>
> Search in there for "dev" occurances and see if they look like they
> should.
>
> Do you have more than one sound card? ran asoundconf? is oyur sound
> hardware
> capable of hardware mixing?
>
> Dex
>
> Thank Dex for the information. I just have one sound card running and I
doubt it is capable of hardware mixing. According to KinfoCenter it is an
Intel 82801DB-ICH4. I ran the two command you suggested. The first came
back:
 sudo strace -o aud.trc audacity
Password:
umovestr: Input/output error
Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1108
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback,
outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1662
Expression 'PaAlsaStream_Configure( stream, inputParameters,
outputParameters, sampleRate, framesPerBuffer, &inputLatency,
&outputLatency, &hostBufferSizeMode )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1783

This is just a part of the  $ grep -i open aud.trc | less print. As a total
newbie I have no idea what it is trying to tell me. Maybe it is saying I
need a better sound card? Tim

open("/dev/dsp", O_RDONLY|O_NONBLOCK)   = 7
open("/dev/dsp", O_WRONLY|O_NONBLOCK)   = 7
open("/dev/snd/controlC0", O_RDONLY)    = 7
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 7
open("/dev/snd/controlC0", O_RDONLY)    = 7
open("/dev/snd/controlC0", O_RDWR)      = 7
open("/dev/snd/controlC1", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC1", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC2", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC2", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC3", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC3", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC4", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC4", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC5", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC5", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC6", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC6", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC7", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC7", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC8", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC8", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC9", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/dev/aloadC9", O_RDONLY)          = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC10", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC10", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC11", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC11", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC12", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC12", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC13", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC13", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC14", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC14", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC15", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC15", O_RDONLY)         = -1 ENOENT (No such file or
directory)
open("/dev/snd/controlC16", O_RDONLY)   = -1 ENOENT (No such file or
directory)
open("/dev/aloadC16", O_RDONLY)         = -1 ENOENT (No such file or
directory)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20070720/31b9fdb5/attachment.html>


More information about the kubuntu-users mailing list