Browse Source

Get rid of broken log code.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
00bf99a6bf
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      Waveform.C

+ 6
- 6
Waveform.C View File

@@ -69,14 +69,14 @@ Waveform::draw ( int ox, int X, int Y, int W, int H, Audio_File *_clip, int chan
p.max *= _scale;
p.min *= _scale;

if ( Waveform::logarithmic )
{
p.max = 10.0f * log10f( p.max );
p.min = 10.0f * log10f( p.min );
}

const float diff = fabs( p.max - p.min );

/* if ( Waveform::logarithmic ) */
/* { */
/* p.max = 10.0f * log10f( p.max ); */
/* p.min = 10.0f * log10f( p.min ); */
/* } */

if ( diff > 2.0f )
fl_color( FL_RED );
else


Loading…
Cancel
Save