blob: b92fab85b4fab61173c895640fe40d611a665add (
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
42
43
44
45
46
47
48
49
50
51
52
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qqnxaudiooutput_p.h"
#include <private/qqnxaudiodevice_p.h>
#include <qaudiodevice.h>
#include <qaudiooutput.h>
#include <QtCore/qloggingcategory.h>
Q_LOGGING_CATEGORY(qLcMediaAudioOutput, "qt.multimedia.audiooutput")
QT_BEGIN_NAMESPACE
QQnxAudioOutput::QQnxAudioOutput(QAudioOutput *parent)
: QPlatformAudioOutput(parent)
{
}
QQnxAudioOutput::~QQnxAudioOutput()
{
}
void QQnxAudioOutput::setVolume(float vol)
{
if (vol == volume)
return;
vol = volume;
q->volumeChanged(vol);
}
void QQnxAudioOutput::setMuted(bool m)
{
if (muted == m)
return;
muted = m;
q->mutedChanged(muted);
}
void QQnxAudioOutput::setAudioDevice(const QAudioDevice &info)
{
if (info == device)
return;
qCDebug(qLcMediaAudioOutput) << "setAudioDevice" << info.description() << info.isNull();
device = info;
// ### handle device changes
}
QT_END_NAMESPACE
|