blob: 39efb5582719973c7b597e2ccd7f8ed88e500c0d (
plain)
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
|
#ifndef PHONON_DUMMY_AUDIOOUTPUT_H
#define PHONON_DUMMY_AUDIOOUTPUT_H
#include "backend.h"
#include <phonon/audiooutputinterface.h>
#include <phonon/phononnamespace.h>
QT_BEGIN_NAMESPACE
namespace Phonon
{
namespace Dummy
{
class AudioOutput : public QObject, public AudioOutputInterface
{
Q_OBJECT
Q_INTERFACES(Phonon::AudioOutputInterface)
public:
AudioOutput(Backend *backend, QObject *parent);
~AudioOutput();
qreal volume() const;
int outputDevice() const;
void setVolume(qreal newVolume);
bool setOutputDevice(int newDevice);
bool setOutputDevice(const AudioOutputDevice &newDevice);
Q_SIGNALS:
void volumeChanged(qreal newVolume);
void audioDeviceFailed();
private:
qreal m_volumeLevel;
int m_device;
};
}
} //namespace Phonon::Dummy
QT_END_NAMESPACE
#endif // PHONON_DUMMY_AUDIOOUTPUT_H
|