6
#include <arts/kmedia2.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);
71
* emitted when arts dies and noatun has to start
72
* it again. This is called when the new arts
73
* is already initialized
79
int position(); // return position in milliseconds
80
int length(); // return track-length in milliseconds
85
void closeMixerFD(int);
86
void useHardwareMixer(bool);
90
Arts::SoundServerV2 *server() const;
91
Arts::PlayObject playObject() const;
92
Arts::SoundServerV2 *simpleSoundServer() const;
93
Noatun::StereoEffectStack *effectStack() const;
94
Noatun::Equalizer *equalizer() const;
95
Noatun::StereoEffectStack *visualizationStack() const;
96
Noatun::StereoEffectStack *globalEffectStack() const;
97
Noatun::Session *session() const;