Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
sound.h@2:20a89dc286d5, 2012-12-20 (annotated)
- Committer:
- TheChrisyd
- Date:
- Thu Dec 20 21:33:52 2012 +0000
- Revision:
- 2:20a89dc286d5
- Parent:
- 1:f44175dd69fd
Shields aren't destroyed when hit, life sprites aren't displaying properly.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TheChrisyd | 2:20a89dc286d5 | 1 | /*------------------------------------------------------------------ |
| TheChrisyd | 2:20a89dc286d5 | 2 | Game sounds |
| TheChrisyd | 2:20a89dc286d5 | 3 | ------------------------------------------------------------------*/ |
| TheChrisyd | 2:20a89dc286d5 | 4 | // Where to put the sample playback buffer |
| TheChrisyd | 2:20a89dc286d5 | 5 | static const unsigned int samplePlaybackBuffer = 0x7f00; |
| TheChrisyd | 2:20a89dc286d5 | 6 | |
| TheChrisyd | 2:20a89dc286d5 | 7 | // Reset all sounds |
| TheChrisyd | 2:20a89dc286d5 | 8 | void resetGameSounds(); |
| TheChrisyd | 2:20a89dc286d5 | 9 | |
| TheChrisyd | 2:20a89dc286d5 | 10 | // Update all sounds |
| TheChrisyd | 2:20a89dc286d5 | 11 | void updateGameSounds(); |
| TheChrisyd | 2:20a89dc286d5 | 12 | |
| TheChrisyd | 2:20a89dc286d5 | 13 | // Set these flags to true to play the corresponding sound |
| TheChrisyd | 2:20a89dc286d5 | 14 | extern bool playerShootSound; |
| TheChrisyd | 2:20a89dc286d5 | 15 | extern bool alienDeathSound; |
| TheChrisyd | 2:20a89dc286d5 | 16 | extern bool playerDeathSound; |
| TheChrisyd | 2:20a89dc286d5 | 17 | extern bool alienBeatSound; |
| TheChrisyd | 2:20a89dc286d5 | 18 | extern bool saucerSound,stopSaucerSnd,saucerDieSound; |