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.
Dependencies: mbed
Sound.cpp
00001 #include "Sound.h" 00002 00003 Sound::Sound() 00004 { 00005 00006 } 00007 00008 Sound::~Sound() 00009 { 00010 00011 } 00012 00013 void Sound::menu_sound(Gamepad &pad) 00014 { 00015 pad.play_melody(5,sound_data_menu,sound_dur_menu,180,0); 00016 } 00017 00018 void Sound::begin_sound(Gamepad &pad) 00019 { 00020 //count down, each duration 0.5s and 60 beats per minute(1s) 00021 pad.play_melody(3,sound_data_begin,sound_dur_begin,60,0); 00022 } 00023 00024 void Sound::over_sound(Gamepad &pad) 00025 { 00026 pad.play_melody(5,sound_data_over,sound_dur_over,60,0); 00027 } 00028 00029 void Sound::vict_sound(Gamepad &pad) 00030 { 00031 pad.play_melody(5,sound_data_vict,sound_dur_vict,60,0); 00032 } 00033 00034 void Sound::count_sound(Gamepad &pad) 00035 { 00036 pad.play_melody(3,sound_data_begin,sound_dur_begin,60,0); 00037 } 00038
Generated on Thu Jul 14 2022 12:45:25 by
