I'm writing a simple wave file editor for a college project in MS Visual C++. At the moment I'm trying to draw a graph of a wave file. I have achieved this to some extent but when I try to graph very large wave files the graph does not give an accurate representation of the waveform. I know that this is to do with the fact that there are far more samples than pixels on the screen but I have seen editor's e.g. CoolEdit and GoldWave where this is done. Does anyone have any suggestions as to how I might go about this? Also I want to be able to draw 'rulers' on the display to represent time and amplitude.
Thanks for your time.