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

  1. /*
  2.  * NXSoundParameters.h
  3.  *
  4.  * Copyright (c) 1993, NeXT Computer, Inc.  All rights reserved. 
  5.  */
  6.  
  7. #import <objc/HashTable.h>
  8. #import <Foundation/Foundation.h>
  9. #import <sound/soundstruct.h>
  10. #import "NXSoundParameterTags.h"
  11.  
  12. @protocol NXSoundParameters
  13. - (BOOL)boolValueForParameter:(NXSoundParameterTag)ptag;
  14. - (int)intValueForParameter:(NXSoundParameterTag)ptag;
  15. - (float)floatValueForParameter:(NXSoundParameterTag)ptag;
  16. - (void)setParameter:(NXSoundParameterTag)ptag toBool:(BOOL)flag;
  17. - (void)setParameter:(NXSoundParameterTag)ptag toInt:(int)value;
  18. - (void)setParameter:(NXSoundParameterTag)ptag toFloat:(float)value;
  19. - (void)removeParameter:(NXSoundParameterTag)ptag;
  20. - (BOOL)isParameterPresent:(NXSoundParameterTag)ptag;
  21. - (void)getParameters:(const NXSoundParameterTag **)list
  22.     count:(unsigned int *)numParameters;
  23. - (void)getValues:(const NXSoundParameterTag **)list
  24.      count:(unsigned int *)numValues forParameter:(NXSoundParameterTag)ptag;
  25. @end
  26.  
  27. @interface NXSoundParameters : NSObject <NXSoundParameters>
  28. {
  29.     HashTable        *_paramTable;
  30.     NXSoundParameterTag *_paramList;
  31.     int            _reserved;
  32. }
  33.  
  34. + (NSString *)localizedNameForParameter:(NXSoundParameterTag)ptag;
  35. - (id)init;
  36. - (id)initFromSound:(id)aSound;
  37. - (id)initFromSoundStruct:(SNDSoundStruct *)soundStruct;
  38. - (void)configureSoundStruct:(SNDSoundStruct *)soundStruct;
  39. - (void)encodeWithCoder:(NSCoder *)stream;
  40. - (id)initWithCoder:(NSCoder *)stream;
  41. - (void)dealloc;
  42.  
  43. @end
  44.