1
/* This file is part of the KDE project.
3
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
Copyright (C) 2008 Matthias Kretz <kretz@kde.org>
6
This library is free software: you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published by
8
the Free Software Foundation, either version 2.1 or 3 of the License.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public License
16
along with this library. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef Phonon_GSTREAMER_AUDIOOUTPUT_H
20
#define Phonon_GSTREAMER_AUDIOOUTPUT_H
23
#include "medianode.h"
25
#include <phonon/audiooutputinterface.h>
33
class AudioOutput : public QObject, public AudioOutputInterface, public MediaNode
36
Q_INTERFACES(Phonon::AudioOutputInterface Phonon::Gstreamer::MediaNode)
38
AudioOutput(Backend *backend, QObject *parent);
42
int outputDevice() const;
43
void setVolume(qreal newVolume);
44
bool setOutputDevice(int newDevice);
45
#if (PHONON_VERSION >= PHONON_VERSION_CHECK(4, 2, 0))
46
bool setOutputDevice(const AudioOutputDevice &newDevice);
50
GstElement *audioElement()
56
void mediaNodeEvent(const MediaNodeEvent *event);
59
void volumeChanged(qreal newVolume);
60
void audioDeviceFailed();
67
GstElement *m_volumeElement;
68
GstElement *m_audioBin;
69
GstElement *m_audioSink;
73
} //namespace Phonon::Gstreamer
77
#endif // Phonon_GSTREAMER_AUDIOOUTPUT_H