6
#include <arts/kmedia2.h>
7
#include <noatun/playlist.h>
15
class Synth_AMAN_PLAY;
20
class StereoEffectStack;
21
class StereoVolumeControl;
29
* Handles all playing, connecting to aRts.
30
* Does almost everything related to multimedia.
31
* Most interfacing should be done with Player
33
class Engine : public QObject
36
friend class NoatunApp;
38
Engine(QObject *parent=0);
40
void setInitialized();
41
bool initialized() const;
45
* opens the file, use play() to start playing
47
bool open(const PlaylistItem &file);
53
* Terminates playing, does not close the file
62
* unit is milliseconds
66
void setVolume(int percent);
68
void connectPlayObject();
72
* emitted when arts dies and noatun has to start
73
* it again. This is called when the new arts
74
* is already initialized
80
void receivedStreamMeta(
81
const QString &streamName, const QString &streamGenre,
82
const QString &streamUrl, const QString &streamBitrate,
83
const QString &trackTitle, const QString &trackUrl
89
void slotProxyError();
94
int position(); // return position in milliseconds
95
int length(); // return track-length in milliseconds
100
void closeMixerFD(int);
101
void useHardwareMixer(bool);
105
Arts::SoundServerV2 *server() const;
106
Arts::PlayObject playObject() const;
107
Arts::SoundServerV2 *simpleSoundServer() const;
108
Noatun::StereoEffectStack *effectStack() const;
109
Noatun::Equalizer *equalizer() const;
110
Noatun::StereoEffectStack *visualizationStack() const;
111
Noatun::StereoEffectStack *globalEffectStack() const;
112
Noatun::Session *session() const;