got mp3

Dependents:   greenmp3hotmark

Fork of VS1053 by SGMP Coperations

Committer:
cha45689
Date:
Fri Dec 02 19:37:00 2016 +0000
Revision:
0:58524d569dfd
Child:
1:17913cff05a2
ss

Who changed what in which revision?

UserRevisionLine numberNew 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
cha45689 0:58524d569dfd 8 PS_PLAY, // Start to player
cha45689 0:58524d569dfd 9 PS_PAUSE, //Pause play
cha45689 0:58524d569dfd 10 PS_RECORDING, //Recording states
cha45689 0:58524d569dfd 11 } playerStatetype;
cha45689 0:58524d569dfd 12
cha45689 0:58524d569dfd 13 /** Control states definations. */
cha45689 0:58524d569dfd 14 volatile typedef enum
cha45689 0:58524d569dfd 15 {
cha45689 0:58524d569dfd 16 CS_EMPTY = 0, // Have no control
cha45689 0:58524d569dfd 17 CS_PLAYPAUSE, // Play/pause button pressed
cha45689 0:58524d569dfd 18 CS_RECORDING, // Play/pause button long pressed
cha45689 0:58524d569dfd 19 CS_UP, // Up button pressed
cha45689 0:58524d569dfd 20 CS_DOWN, // Down button pressed
cha45689 0:58524d569dfd 21 CS_NEXT, // Right button pressed
cha45689 0:58524d569dfd 22 CS_PREV, // Left button pressed
cha45689 0:58524d569dfd 23 } ctrlStatetype;
cha45689 0:58524d569dfd 24
cha45689 0:58524d569dfd 25 class Player
cha45689 0:58524d569dfd 26 {
cha45689 0:58524d569dfd 27 public:
cha45689 0:58524d569dfd 28 void begin(void);
cha45689 0:58524d569dfd 29 void playFile(char *file);
cha45689 0:58524d569dfd 30 void recordFile(char *file);
cha45689 0:58524d569dfd 31 private:
cha45689 0:58524d569dfd 32
cha45689 0:58524d569dfd 33 };
cha45689 0:58524d569dfd 34
cha45689 0:58524d569dfd 35 #endif
cha45689 0:58524d569dfd 36