00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #import <AppKit/AppKit.h>
00041
00042 @class Snd;
00043
00073 @interface SndMeter: NSView
00074 {
00075 Snd *sound;
00076 int currentSample;
00077 float currentValue;
00078 float currentPeak;
00079 float minValue;
00080 float maxValue;
00081 float holdTime;
00082 NSColor *backgroundColor;
00083 NSColor *foregroundColor;
00084 NSColor *peakColor;
00085 struct {
00086 unsigned int running:1;
00087 unsigned int bezeled:1;
00088 unsigned int shouldStop:1;
00089 unsigned int _reservedFlags:13;
00090 } smFlags;
00091 void *_timedEntry;
00092 int _valTime;
00093 int _peakTime;
00094 float _valOneAgo;
00095 float _valTwoAgo;
00096 }
00097
00132 - (id) initWithFrame: (NSRect) frameRect;
00133
00134 - (id) initWithCoder: (NSCoder *) aStream;
00135 - (void) encodeWithCoder: (NSCoder *) aStream;
00136
00144 - (float) holdTime;
00145
00154 - (void) setHoldTime: (float) seconds;
00155
00162 - (void) setBackgroundColor: (NSColor *) aColor;
00163
00170 - (NSColor *) backgroundColor;
00171
00178 - (void) setForegroundColor: (NSColor *) aColor;
00179
00186 - (NSColor *) foregroundColor;
00187
00194 - (void) setPeakColor: (NSColor *) aColor;
00195
00202 - (NSColor *) peakColor;
00203
00208 - (Snd *) sound;
00209
00214 - (void) setSound: (Snd *) aSound;
00215
00225 - (void) run: (id) sender;
00226
00234 - (void) stop: (id) sender;
00235
00242 - (BOOL) isRunning;
00243
00251 - (BOOL) isBezeled;
00252
00259 - (void) setBezeled: (BOOL) aFlag;
00260
00269 - (void) setFloatValue: (float) aValue;
00270
00278 - (float) floatValue;
00279
00287 - (float) peakValue;
00288
00297 - (float) minValue;
00298
00307 - (float) maxValue;
00308
00317 - (void) drawRect: (NSRect) rects;
00318
00326 - (void) drawCurrentValue;
00327
00328 @end
00329