home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / soundkit / NXSoundOut.h < prev    next >
Text File  |  1992-03-17  |  1KB  |  53 lines

  1. /*
  2.  * NXSoundOut.h
  3.  *
  4.  * Interface to sound playback resources.
  5.  *
  6.  * Copyright (c) 1991, NeXT Computer, Inc.  All rights reserved. 
  7.  */
  8.  
  9. #import "NXSoundDevice.h"
  10.  
  11. @interface NXSoundOut:NXSoundDevice
  12. {
  13.     unsigned int    _options;
  14.     int            _reserved1;
  15. }
  16.  
  17. /*
  18.  * Look up the sound-out device port.
  19.  * Returns PORT_NULL if look up fails.
  20.  * Normally only sent by NXSoundDevice -initOnHost.
  21.  */
  22. + (port_t)lookUpDevicePortOnHost:(const char *)hostName;
  23.  
  24. /*
  25.  * Get and set options.
  26.  */
  27. - (BOOL)doesInsertZeros;
  28. - (NXSoundDeviceError)setInsertsZeros:(BOOL)flag;
  29. - (BOOL)doesRampUp;
  30. - (NXSoundDeviceError)setRampsUp:(BOOL)flag;
  31. - (BOOL)doesRampDown;
  32. - (NXSoundDeviceError)setRampsDown:(BOOL)flag;
  33. - (BOOL)doesDeemphasize;
  34. - (NXSoundDeviceError)setDeemphasis:(BOOL)flag;
  35. - (BOOL)isSpeakerMute;
  36. - (NXSoundDeviceError)setSpeakerMute:(BOOL)flag;
  37.  
  38. /*
  39.  * Get clip count.
  40.  */
  41. - (unsigned int)clipCount;
  42.  
  43. /*
  44.  * Attenuation range is -84 (the most attenuated) dB to 0 dB.
  45.  * It effects the internal speaker and headphone output.
  46.  */
  47. - (NXSoundDeviceError)getAttenuationLeft:(float *)leftDB
  48.                                    right:(float *)rightDB;
  49. - (NXSoundDeviceError)setAttenuationLeft:(float)leftDB
  50.                                    right:(float)rightDB;
  51.  
  52. @end
  53.