Player.h 630 Bytes
Newer Older
daFischer's avatar
first  
daFischer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
/* 
 * File:   Player.h
 * Author: user
 *
 * Created on April 30, 2014, 4:30 PM
 */

#ifndef PLAYER_H
#define	PLAYER_H

#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#else
#endif

#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>

#include <stdio.h>
#include <fstream>
#include <time.h>

#include "Audio.h"
#include "Video.h"

using namespace std;

class Player {
public:
    Player(const char*, const char*);
    void loop();
    virtual ~Player();
    
private:
    Audio *audio;
    Video *video;
    bool paused;
#ifndef EMSCRIPTEN
    bool quit;
#endif
};

extern Player *player;
void emLoop();

#endif	/* PLAYER_H */