#define PLAYER_DECL true
class player
{
private:
// Variables
FILE *fileCmd1; // Pointer to the player pipe
char strCurrent[300]; // Currently playing song
public:
// Variables
int is_playing; // Is there an mp3 playing?
int is_paused; // Is the mp3 paused?
int intStopPressed; // Has the user pressed the stop key?
int update; // Display needs updating
// Functions
player(); // Constructor
int play(char*, char*); // Play an mp3
int stop(); // Stop playback
int pause(); // Pause playback
int killme(); // Close the pipe if it is open
int display_song(int); // Display currently playing song on LCD screen
};
syntax highlighted by Code2HTML, v. 0.9.1