Elements used in the Balls and Things games for the RETRO.
Dependents: RETRO_BallsAndPaddle RETRO_BallAndHoles
SoundFX.h@1:71185a0aadfc, 2015-02-06 (annotated)
- Committer:
- maxint
- Date:
- Fri Feb 06 10:18:02 2015 +0000
- Revision:
- 1:71185a0aadfc
- Parent:
- 0:3d0db4e183ee
tiny bit of cleanup
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
maxint | 0:3d0db4e183ee | 1 | #pragma once |
maxint | 0:3d0db4e183ee | 2 | #include "mbed.h" |
maxint | 0:3d0db4e183ee | 3 | #include "MusicEngine.h" |
maxint | 0:3d0db4e183ee | 4 | |
maxint | 0:3d0db4e183ee | 5 | class SoundFX |
maxint | 0:3d0db4e183ee | 6 | { |
maxint | 0:3d0db4e183ee | 7 | public: |
maxint | 0:3d0db4e183ee | 8 | SoundFX(); |
maxint | 0:3d0db4e183ee | 9 | void reset(); |
maxint | 0:3d0db4e183ee | 10 | void beep(int nDuration=1); |
maxint | 0:3d0db4e183ee | 11 | void beepShort(); |
maxint | 0:3d0db4e183ee | 12 | void beepLong(); |
maxint | 0:3d0db4e183ee | 13 | void beepLow(); |
maxint | 0:3d0db4e183ee | 14 | void play(char *szPlay); |
maxint | 0:3d0db4e183ee | 15 | void playTune(); |
maxint | 0:3d0db4e183ee | 16 | void setMute(bool fMute); |
maxint | 0:3d0db4e183ee | 17 | bool getMute(); |
maxint | 0:3d0db4e183ee | 18 | |
maxint | 0:3d0db4e183ee | 19 | void musicCompleted(void); |
maxint | 0:3d0db4e183ee | 20 | |
maxint | 0:3d0db4e183ee | 21 | private: |
maxint | 0:3d0db4e183ee | 22 | bool fMute; |
maxint | 0:3d0db4e183ee | 23 | MusicEngine music; |
maxint | 0:3d0db4e183ee | 24 | }; |