Alan,
Should work. You just need fix the y-axis to the audio data range and?then use the Left or Right channel data for display. Or merge them into mono channel¡. or display both!
The only trick will be creating a rolling buffer of data with new values pushed in from the left or right (visual left or right not audio channel) so that new data appears on the left or right of the display. So you get:
? ? newest sample ¡¡ oldest sample
or
? ? oldest sample ¡.. newest sample
I don¡¯t think you are missing anything. In fact I recall looking at examples just like this when building the original. I don¡¯t recall if they were for audio data, but they were for data where new samples were added and then ¡°scrolled¡± across and expired off the other end of the chart.
Stephen
Stephen