home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / Samples / SprocketExamples / SprocketInvaders / Source / SoundHandler.h < prev    next >
Encoding:
Text File  |  1998-07-14  |  2.0 KB  |  85 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SoundHandler.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (cjd)    Chris DeSalvo
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <6>      7/1/98    cjd        Added SSp CPU load variables
  25. */
  26.  
  27. //•    ------------------------------------------------------------------------------------------    •
  28. //•
  29. //•    Copyright © 1996 Apple Computer, Inc., All Rights Reserved
  30. //•
  31. //•
  32. //•        You may incorporate this sample code into your applications without
  33. //•        restriction, though the sample code has been provided "AS IS" and the
  34. //•        responsibility for its operation is 100% yours.  However, what you are
  35. //•        not permitted to do is to redistribute the source as "DSC Sample Code"
  36. //•        after having made changes. If you're going to re-distribute the source,
  37. //•        we require that you make it clear in the source that the code was
  38. //•        descended from Apple Sample Code, but that you've made changes.
  39. //•
  40. //•        Authors:
  41. //•            Chris De Salvo
  42. //•
  43. //•    ------------------------------------------------------------------------------------------    •
  44.  
  45. #ifndef __SOUNDHANDLER__
  46. #define __SOUNDHANDLER__
  47.  
  48. //•    ------------------------------    Includes
  49. //•    ------------------------------    Public Definitions
  50. //•    ------------------------------    Public Types
  51.  
  52. typedef enum GameSounds
  53. {
  54.     soundPlayerFire,
  55.     soundPlayerHit,
  56.     soundEnemyFire,
  57.     soundEnemyHit,
  58.     soundNumSounds
  59. } GameSounds;
  60.  
  61. //•    ------------------------------    Public Variables
  62.  
  63. extern Boolean    gSoundEffects;
  64.  
  65. #if GENERATINGPOWERPC
  66. extern UInt32    gCPULoadModifier;
  67. extern UInt32    gCPULoadMax;
  68. extern UInt32    gCPUCurrentLoad;
  69. #endif
  70.  
  71. //•    ------------------------------    Public Functions
  72.  
  73. #ifdef __cplusplus
  74. extern "C" {
  75. #endif
  76.  
  77. extern void SoundHandlerInit(void);
  78. extern void SoundHandlerReset(void);
  79. extern void SoundHandlerPlay(GameSounds theSound, SInt16 x, SInt16 y);
  80.  
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84.  
  85. #endif