Fixed a few problems with wave drawing-

Optimized so only samples inside the screens bounds are drawn.
Wave display detail is based on zoom - so you can view realy large wave files as well as indervidual samples.
Changed logic so an approximation of the wave is displayed rather then just the symetrical amplitude of the sound.
Triangles at start and end were annoying and obscured the start of the sound. made them alpha 0.7 for sound clips only.
a whole CD of music should display well and zoom smoothly now.
This commit is contained in:
Campbell Barton
2006-01-29 14:58:41 +00:00
parent 9f5a58aeff
commit 160239ea73
2 changed files with 118 additions and 35 deletions

View File

@@ -37,7 +37,7 @@ struct ScrArea;
struct Sequence;
void drawseqspace(struct ScrArea *sa, void *spacedata);
void drawseq(struct Sequence *seq);
void drawseq(struct Sequence *seq, struct ScrArea *sa);
void set_special_seq_update(int val);
#endif