home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks2 / SoundKit.framework / Headers / SoundMeter.h < prev    next >
Text File  |  1994-09-29  |  1KB  |  62 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. @interface SoundMeter:NSView
  10. {
  11.     id sound;
  12.     int currentSample;
  13.     float currentValue;
  14.     float currentPeak;
  15.     float minValue;
  16.     float maxValue;
  17.     float holdTime;
  18.     float backgroundGray;
  19.     float foregroundGray;
  20.     float peakGray;
  21.     struct {
  22.     unsigned int running:1;
  23.     unsigned int bezeled:1;
  24.     unsigned int shouldStop:1;
  25.     unsigned int _reservedFlags:13;
  26.     } smFlags;
  27.     DPSTimedEntry _timedEntry;
  28.     int _valTime;
  29.     int _peakTime;
  30.     float _valOneAgo;
  31.     float _valTwoAgo;
  32. }
  33.  
  34. - initFrame:(NSRect)frameRect;
  35.  
  36. - read:(NXTypedStream *)aStream;
  37. - write:(NXTypedStream *)aStream;
  38. - (float)holdTime;
  39. - setHoldTime:(float)seconds;
  40. - (float)backgroundGray;
  41. - setBackgroundGray:(float)aValue;
  42. - (float)foregroundGray;
  43. - setForegroundGray:(float)aValue;
  44. - (float)peakGray;
  45. - setPeakGray:(float)aValue;
  46. - sound;
  47. - setSound:aSound;
  48. - run:sender;
  49. - stop:sender;
  50. - (BOOL)isRunning;
  51. - (BOOL)isBezeled;
  52. - setBezeled:(BOOL)aFlag;
  53. - setFloatValue:(float)aValue;
  54. - (float)floatValue;
  55. - (float)peakValue;
  56. - (float)minValue;
  57. - (float)maxValue;
  58. - drawSelf:(NSRect)rect;
  59. - drawCurrentValue;
  60.  
  61. @end
  62.