Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxaudiooutput.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
include
"qqnxaudiooutput_p.h"
5
6
#
include
<
private
/
qqnxaudiodevice_p
.
h
>
7
8
#
include
<
qaudiodevice
.
h
>
9
#
include
<
qaudiooutput
.
h
>
10
11
#
include
<
QtCore
/
qloggingcategory
.
h
>
12
13
Q_STATIC_LOGGING_CATEGORY
(qLcMediaAudioOutput,
"qt.multimedia.audiooutput"
);
14
15
QT_BEGIN_NAMESPACE
16
17
QQnxAudioOutput::QQnxAudioOutput(QAudioOutput *parent)
18
: QPlatformAudioOutput(parent)
19
{
20
}
21
22
QQnxAudioOutput::~QQnxAudioOutput()
23
{
24
}
25
26
void
QQnxAudioOutput::setVolume(
float
vol)
27
{
28
if
(vol == volume)
29
return
;
30
vol = volume;
31
q->volumeChanged(vol);
32
}
33
34
void
QQnxAudioOutput::setMuted(
bool
m)
35
{
36
if
(muted == m)
37
return
;
38
muted = m;
39
q->mutedChanged(muted);
40
}
41
42
void
QQnxAudioOutput::setAudioDevice(
const
QAudioDevice &info)
43
{
44
if
(info == device)
45
return
;
46
qCDebug(qLcMediaAudioOutput) <<
"setAudioDevice"
<< info.description() << info.isNull();
47
device = info;
48
49
// ### handle device changes
50
}
51
52
QT_END_NAMESPACE
Q_STATIC_LOGGING_CATEGORY
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
qtmultimedia
src
plugins
multimedia
qnx
common
qqnxaudiooutput.cpp
Generated on
for Qt by
1.14.0