This is the Mexican Standoff prototype made by Francisco Martin and Andrew Smith. Please refer to the following link for instructions on hardware hookup: https://developer.mbed.org/users/fomartin/notebook/mexican-standoff-reaction-game/

Dependencies:   SDFileSystem mbed-rtos mbed wave_player 4DGL-uLCD-SE PinDetect

Audio/music.h

Committer:
fomartin
Date:
2016-03-14
Revision:
2:3c1a5079243d
Parent:
0:75716bd37804

File content as of revision 2:3c1a5079243d:

#include "PinDetect.h"
#include "SDFileSystem.h"
#include "wave_player.h"
#include "rtos.h"

class Music
{
    private:
        wave_player *speaker;
        Thread *main_music_thread;
        
    public:
        Music(wave_player &speaker_arg);
        
        void playMainMusic(); //starts thread to play main music
        void stopMainMusic(); //ends thread to play main music
        
        //add other audio clip methods here
        /*
         *
         *
         */
        
    protected:
        static void thread_helper(const void *args);
        void main_music(); //actually plays the main music on loop
};