home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / BreakApp / SoundEffect.h < prev    next >
Text File  |  1992-04-24  |  582b  |  28 lines

  1. #import <objc/Object.h>
  2. #import <soundkit/Sound.h>
  3. #import <soundkit/NXPlayStream.h>
  4.  
  5. @interface SoundEffect:Object
  6. {
  7.     Sound *sound;            // The sound data for this sound
  8.     struct {
  9.         unsigned int refCount:24;    // Number of play requests pending
  10.     unsigned int freeWhenDone:1;    // Free when all are done
  11.     unsigned int :7;
  12.     } flags;
  13. }
  14.  
  15. - initFromSection:(const char *)sound;
  16. - play;
  17. - play:(float)volume pan:(float)rads;
  18. - free;
  19.  
  20. + (void)setSoundEnabled:(BOOL)flag;
  21. + (BOOL)soundEnabled;
  22.  
  23. + (void)setMaxSoundStreams:(unsigned int)max;
  24. + (unsigned int)maxSoundStreams;
  25.  
  26. @end
  27.  
  28.