home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / WASTE Object Handlers 1.2.5 / Handler Headers / WE_snd_Handler.h < prev   
Encoding:
C/C++ Source or Header  |  1997-01-16  |  910 b   |  36 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef __SOUND__
  3. #include <Sound.h>
  4. #endif
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. void            InitSoundObjectHandler( void );
  11. pascal OSErr    HandleNewSound(Point *defaultObjectSize,WEObjectReference objectRef);
  12. pascal OSErr    HandleDisposeSound( WEObjectReference objectRef );
  13. pascal OSErr    HandleDrawSound(Rect *destRect, WEObjectReference objectRef );
  14. pascal Boolean    HandleClickSound(    Point hitPt, 
  15.                             short modifiers, 
  16.                             long clickTime, 
  17.                             WEObjectReference objectRef);
  18.                             
  19. // SndChannelPtr    CreateNewSoundChannel( void );
  20.  
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24.  
  25. #define        kSoundIconID        550
  26.  
  27. #define        kTypeSound            'snd '
  28.  
  29. //
  30. // If you want the sound object handler's sound channel to
  31. // be create on initialization, define CREATE_CHANNEL_AT_INIT
  32. // to the value 1.  Define CREATE_CHANNEL_AT_INIT to the value
  33. // 0 if you want the channel to be created when first needed.
  34. //
  35.  
  36. #define CREATE_CHANNEL_AT_INIT 1