* sound/gui interaction
@ 2000-07-20 5:15 douglas irving repetto
2000-07-20 5:37 ` Conrad Parker
0 siblings, 1 reply; 2+ messages in thread
From: douglas irving repetto @ 2000-07-20 5:15 UTC (permalink / raw)
To: linux-sound
hi there linux-sound,
i'm working on a linux sound app. my signal processing loop runs in its
own thread. whenever i do a full drawing update of my GUI, i get a
glitch in the sound output. my CPU usage goes up during the redraw, but
not very much. does anyone know what's happening and how i can avoid it?
i would think that doing the graphics and the sound in seperate threads
would shield the one from the other, but apparently that's not the case.
is this an XWindows issue perhaps?
thanks,
douglas
--
douglas irving repetto
http://music.columbia.edu/~douglas
the music-dsp mailing list and website:
http://shoko.calarts.edu/musicdsp
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: sound/gui interaction
2000-07-20 5:15 sound/gui interaction douglas irving repetto
@ 2000-07-20 5:37 ` Conrad Parker
0 siblings, 0 replies; 2+ messages in thread
From: Conrad Parker @ 2000-07-20 5:37 UTC (permalink / raw)
To: linux-sound
On Thu, Jul 20, 2000 at 01:15:07AM -0400, douglas irving repetto wrote:
>
> hi there linux-sound,
>
> i'm working on a linux sound app. my signal processing loop runs in its
> own thread. whenever i do a full drawing update of my GUI, i get a
> glitch in the sound output. my CPU usage goes up during the redraw, but
> not very much. does anyone know what's happening and how i can avoid it?
> i would think that doing the graphics and the sound in seperate threads
> would shield the one from the other, but apparently that's not the case.
> is this an XWindows issue perhaps?
your thinking is pretty much correct (as threads in Linux are
independently scheduled). What's most important is which thread is
writing to the sound device -- make sure you're not doing your
write()s in the same thread as dealing with X events.
If that's not the case... can we see the code?
Conrad.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-20 5:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-20 5:15 sound/gui interaction douglas irving repetto
2000-07-20 5:37 ` Conrad Parker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox