Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Committer:
joshdavy
Date:
Sat Apr 06 14:42:34 2019 +0000
Revision:
5:b9cf407bcc63
Parent:
4:afbf3dd71403
Child:
8:21b6d4dbce44
Music player done!. This revision will play successfully play a song.

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 4:afbf3dd71403 21
joshdavy 4:afbf3dd71403 22
joshdavy 4:afbf3dd71403 23 private:
joshdavy 5:b9cf407bcc63 24 const int* _data;
joshdavy 4:afbf3dd71403 25 int _index;
joshdavy 5:b9cf407bcc63 26 int _length;
joshdavy 5:b9cf407bcc63 27
joshdavy 4:afbf3dd71403 28
joshdavy 4:afbf3dd71403 29 };
joshdavy 4:afbf3dd71403 30 #endif