[LAD] Real-time plotting of audio/ oscilloscope.

Paul Davis paul at linuxaudiosystems.com
Thu Jun 17 20:28:27 UTC 2010


2010/6/17 Jörn Nettingsmeier <nettings at folkwang-hochschule.de>:
> On 06/17/2010 07:37 PM, Jeremy wrote:
>
>> Now, assuming a 60 Hz refresh rate (which is what I believe my monitor
>> has),
>> and a buffer size of 1024 pixels, that would be  a throughput of 61440
>> samples per second.  More than the 48000 sampling rate.  So it seems that
>> drawing every sample *is* a reasonable request.  But obviously a lower
>> refresh rate would also satisfy my needs.
>
> drawing all the samples is not the issue. drawing each sample individually
> (and the assorted overhead that goes with it) is.
> you really don't want to call a graphics toolkit more than $refresh times
> per second...

to phrase it another way: its the difference between:

  a) oh good, a new sample has arrived, now i must plot it

  b) excellent, another 1/60th of a second has elapsed, how many
        samples are there for me to draw on the screen?



More information about the Linux-audio-dev mailing list