Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Committer:
joshdavy
Date:
Fri Apr 19 17:54:09 2019 +0000
Revision:
8:21b6d4dbce44
Parent:
5:b9cf407bcc63
Child:
14:1e6f74233e8e
Main menu added.;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joshdavy 4:afbf3dd71403 1 #ifndef MUSIC_H
joshdavy 4:afbf3dd71403 2 #define MUSIC_H
joshdavy 4:afbf3dd71403 3
joshdavy 4:afbf3dd71403 4 /*Music Class*/
joshdavy 4:afbf3dd71403 5 #include "mbed.h"
joshdavy 4:afbf3dd71403 6 #include "N5110.h"
joshdavy 4:afbf3dd71403 7 #include "Gamepad.h"
joshdavy 4:afbf3dd71403 8 #include "Sprite.h"
joshdavy 4:afbf3dd71403 9 #include "Player.h"
joshdavy 5:b9cf407bcc63 10
joshdavy 4:afbf3dd71403 11
joshdavy 4:afbf3dd71403 12
joshdavy 4:afbf3dd71403 13
joshdavy 4:afbf3dd71403 14 class Music {
joshdavy 4:afbf3dd71403 15
joshdavy 4:afbf3dd71403 16 public:
joshdavy 4:afbf3dd71403 17 Music();
joshdavy 4:afbf3dd71403 18 ~Music();
joshdavy 5:b9cf407bcc63 19 void init(const int* data,int length);
joshdavy 4:afbf3dd71403 20 void play_next();
joshdavy 8:21b6d4dbce44 21 void play_tone(int freq,int duration);
joshdavy 4:afbf3dd71403 22
joshdavy 4:afbf3dd71403 23
joshdavy 4:afbf3dd71403 24 private:
joshdavy 5:b9cf407bcc63 25 const int* _data;
joshdavy 4:afbf3dd71403 26 int _index;
joshdavy 5:b9cf407bcc63 27 int _length;
joshdavy 5:b9cf407bcc63 28
joshdavy 4:afbf3dd71403 29
joshdavy 4:afbf3dd71403 30 };
joshdavy 4:afbf3dd71403 31 #endif