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
|
#ifndef _MP3PLAYER_CLASS_
#define _MP3PLAYER_CLASS_
#include "mp3blaster.h"
#include "mp3play.h"
#include "playwindow.h"
#include <mpegsound.h>
#ifdef HAVE_BOOL_H
#include <bool.h>
#endif
class mp3Player : public Mpegfileplayer, public genPlayer
{
public:
mp3Player(mp3Play *calling, playWindow *interface, int threads);
~mp3Player(){};
bool playing(int verbose);
#ifdef PTHREADEDMPEG
bool playingwiththread(int verbose);
#endif
int geterrorcode(void) { return Mpegfileplayer::geterrorcode(); }
bool openfile(char *filename, char *device, soundtype write2file=NONE) {
return Mpegfileplayer::openfile(filename, device, write2file); }
void closefile(void) { return Mpegfileplayer::closefile(); }
void setdownfrequency(int value) {
Mpegfileplayer::setdownfrequency(value); }
void set8bitmode() { Mpegfileplayer::set8bitmode(); }
private:
int nthreads;
playstatus status;
playWindow *interface;
mp3Play *caller;
};
#endif /* _MP3PLAYER_CLASS_ */
|