File: mp3player.h

package info (click to toggle)
mp3blaster 2-0b16-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,012 kB
  • ctags: 1,241
  • sloc: cpp: 12,228; ansic: 1,557; sh: 362; makefile: 107
file content (37 lines) | stat: -rw-r--r-- 964 bytes parent folder | download
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_ */