home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / SoundKit.framework / Versions / A / Headers / SoundMeter.h < prev    next >
Encoding:
Text File  |  1995-07-26  |  1.4 KB  |  63 lines

  1. /*
  2.     SoundMeter.h
  3.     Sound Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <AppKit/NSView.h>
  8.  
  9. @class Sound;
  10.  
  11. @interface SoundMeter:NSView
  12. {
  13.     id sound;
  14.     int currentSample;
  15.     float currentValue;
  16.     float currentPeak;
  17.     float minValue;
  18.     float maxValue;
  19.     float holdTime;
  20.     NSColor *backgroundColor;
  21.     NSColor *foregroundColor;
  22.     NSColor *peakColor;
  23.     struct {
  24.     unsigned int running:1;
  25.     unsigned int bezeled:1;
  26.     unsigned int shouldStop:1;
  27.     unsigned int _reservedFlags:13;
  28.     } smFlags;
  29.     void *_timedEntry;
  30.     int _valTime;
  31.     int _peakTime;
  32.     float _valOneAgo;
  33.     float _valTwoAgo;
  34. }
  35.  
  36. - (id)initWithFrame:(NSRect)frameRect;
  37.  
  38. - (id)initWithCoder:(NSCoder *)aStream;
  39. - (void)encodeWithCoder:(NSCoder *)aStream;
  40. - (float)holdTime;
  41. - (void)setHoldTime:(float)seconds;
  42. - (void)setBackgroundColor:(NSColor *)color;
  43. - (NSColor *)backgroundColor;
  44. - (void)setForegroundColor:(NSColor *)color;
  45. - (NSColor *)foregroundColor;
  46. - (void)setPeakColor:(NSColor *)color;
  47. - (NSColor *)peakColor;
  48. - (Sound *)sound;
  49. - (void)setSound:(Sound *)aSound;
  50. - (void)run:(id)sender;
  51. - (void)stop:(id)sender;
  52. - (BOOL)isRunning;
  53. - (BOOL)isBezeled;
  54. - (void)setBezeled:(BOOL)aFlag;
  55. - (void)setFloatValue:(float)aValue;
  56. - (float)floatValue;
  57. - (float)peakValue;
  58. - (float)minValue;
  59. - (float)maxValue;
  60. - (void)drawRect:(NSRect)rects;
  61. - (void)drawCurrentValue;
  62. @end
  63.