* Question - scratchy audio
@ 2004-05-12 10:49 David McNab
2004-05-12 12:14 ` David McNab
0 siblings, 1 reply; 2+ messages in thread
From: David McNab @ 2004-05-12 10:49 UTC (permalink / raw)
To: alsa-devel
Hi,
Having (at the moment) failed to get the ALSA realtime/abs queueing
working, I've resorted to having my app spit out direct events, and
things are working reasonably well.
However, I've got a problem, where I'm getting intermittent
'scratch'/'pop' noises (sounds a bit like a dodgy jack or lead).
Any ideas what could be causing this?
--
Kind regards
David
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question - scratchy audio
2004-05-12 10:49 Question - scratchy audio David McNab
@ 2004-05-12 12:14 ` David McNab
0 siblings, 0 replies; 2+ messages in thread
From: David McNab @ 2004-05-12 12:14 UTC (permalink / raw)
Cc: alsa-devel
David McNab wrote:
> However, I've got a problem, where I'm getting intermittent
> 'scratch'/'pop' noises (sounds a bit like a dodgy jack or lead).
>
> Any ideas what could be causing this?
For the benefit of others who may be new to alsa seq api, I'll post what
I found out.
It seems that if a client process is spiking the CPU, even for short
bursts, it will impact one or more other audio progs. Not sure whether
the scratchiness is caused by ALSA, fluidsynth, or something else
getting momentarily cpu-starved.
Solution - I optimised my (python) client app, psyco'ed the scheduler
loop, and shimmed to C functions which create and dispatch the events.
It turned out that my python code was doing a lot of unnecessary object
creation and dict manipulation, which was causing CPU spikes. Seems that
even a spike of a couple of ms can impact the audio.
Result - instead of scratchy audio, with jerky off-time notes sounding
like a garage band with a 3-day hangover, the music is now coming
through clear and rhythmically tight.
Seems I won't need to bother battling with alsa queues and scheduling
any more :))
Cheers
David
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-12 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-12 10:49 Question - scratchy audio David McNab
2004-05-12 12:14 ` David McNab
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.