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.
Dependents: RETRO_BallsAndPaddle RETRO_BallAndHoles
SoundFX.h
00001 #pragma once 00002 #include "mbed.h" 00003 #include "MusicEngine.h" 00004 00005 class SoundFX 00006 { 00007 public: 00008 SoundFX(); 00009 void reset(); 00010 void beep(int nDuration=1); 00011 void beepShort(); 00012 void beepLong(); 00013 void beepLow(); 00014 void play(char *szPlay); 00015 void playTune(); 00016 void setMute(bool fMute); 00017 bool getMute(); 00018 00019 void musicCompleted(void); 00020 00021 private: 00022 bool fMute; 00023 MusicEngine music; 00024 };
Generated on Thu Jul 14 2022 10:55:45 by
1.7.2