Natthaphon Sudadech
/
PJ04_MASTER
+mp3
Fork of VS1053 by
player.h@6:447108751338, 2017-12-12 (annotated)
- Committer:
- Supermil
- Date:
- Tue Dec 12 19:05:24 2017 +0000
- Revision:
- 6:447108751338
- Parent:
- 4:5b1bd3cca8dc
PJ04+MUSIC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cha45689 | 0:58524d569dfd | 1 | #ifndef PLAYER_H |
cha45689 | 0:58524d569dfd | 2 | #define PLAYER_H |
cha45689 | 0:58524d569dfd | 3 | #include "vs10xx.h" |
cha45689 | 0:58524d569dfd | 4 | |
cha45689 | 0:58524d569dfd | 5 | /** Playing states definations. */ |
cha45689 | 0:58524d569dfd | 6 | volatile typedef enum { |
cha45689 | 0:58524d569dfd | 7 | PS_STOP, // Player stop |
csggreen | 1:17913cff05a2 | 8 | PS_PLAY, // Start to player |
cha45689 | 0:58524d569dfd | 9 | } playerStatetype; |
cha45689 | 0:58524d569dfd | 10 | |
cha45689 | 0:58524d569dfd | 11 | |
cha45689 | 0:58524d569dfd | 12 | class Player |
cha45689 | 0:58524d569dfd | 13 | { |
cha45689 | 0:58524d569dfd | 14 | public: |
cha45689 | 0:58524d569dfd | 15 | void begin(void); |
cha45689 | 0:58524d569dfd | 16 | void playFile(char *file); |
csggreen | 4:5b1bd3cca8dc | 17 | void selectfile(char n); |
csggreen | 1:17913cff05a2 | 18 | void stop(void); |
csggreen | 4:5b1bd3cca8dc | 19 | void run(void); |
Supermil | 6:447108751338 | 20 | //void read(void); |
Supermil | 6:447108751338 | 21 | void SGMP_First_Page(void); |
Supermil | 6:447108751338 | 22 | void set_name(void); |
Supermil | 6:447108751338 | 23 | void set_mode(void); |
cha45689 | 0:58524d569dfd | 24 | private: |
cha45689 | 0:58524d569dfd | 25 | |
cha45689 | 0:58524d569dfd | 26 | }; |
cha45689 | 0:58524d569dfd | 27 | |
cha45689 | 0:58524d569dfd | 28 | #endif |
cha45689 | 0:58524d569dfd | 29 |