Chris Dick
/
Gameduino_Invaders_game
Invaders game for the Gameduino
sound.h@1:f44175dd69fd, 2012-09-29 (annotated)
- Committer:
- TheChrisyd
- Date:
- Sat Sep 29 13:01:42 2012 +0000
- Revision:
- 1:f44175dd69fd
- Parent:
- 0:8a7c58553b44
- Child:
- 2:20a89dc286d5
saved progress
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TheChrisyd | 1:f44175dd69fd | 1 | /*------------------------------------------------------------------ |
TheChrisyd | 1:f44175dd69fd | 2 | Game sounds |
TheChrisyd | 1:f44175dd69fd | 3 | ------------------------------------------------------------------*/ |
TheChrisyd | 1:f44175dd69fd | 4 | // Where to put the sample playback buffer |
TheChrisyd | 1:f44175dd69fd | 5 | static const unsigned int samplePlaybackBuffer = 0x7f00; |
TheChrisyd | 1:f44175dd69fd | 6 | |
TheChrisyd | 1:f44175dd69fd | 7 | // Reset all sounds |
TheChrisyd | 1:f44175dd69fd | 8 | void resetGameSounds(); |
TheChrisyd | 1:f44175dd69fd | 9 | |
TheChrisyd | 1:f44175dd69fd | 10 | // Update all sounds |
TheChrisyd | 1:f44175dd69fd | 11 | void updateGameSounds(); |
TheChrisyd | 1:f44175dd69fd | 12 | |
TheChrisyd | 1:f44175dd69fd | 13 | // Set these flags to true to play the corresponding sound |
TheChrisyd | 1:f44175dd69fd | 14 | extern bool playerShootSound; |
TheChrisyd | 1:f44175dd69fd | 15 | extern bool alienDeathSound; |
TheChrisyd | 1:f44175dd69fd | 16 | extern bool playerDeathSound; |
TheChrisyd | 1:f44175dd69fd | 17 | extern bool alienBeatSound; |
TheChrisyd | 1:f44175dd69fd | 18 | extern bool saucerSound,stopSaucerSnd,saucerDieSound; |