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
<
qaudiodevice
.
h
>
7
#
include
<
qaudiooutput
.
h
>
8
9
#
include
<
QtCore
/
qloggingcategory
.
h
>
10
11
Q_STATIC_LOGGING_CATEGORY
(qLcMediaAudioOutput,
"qt.multimedia.audiooutput"
);
12
13
QT_BEGIN_NAMESPACE
14
15
QQnxAudioOutput::QQnxAudioOutput(QAudioOutput *parent)
16
: QPlatformAudioOutput(parent)
17
{
18
}
19
20
QQnxAudioOutput::~QQnxAudioOutput()
21
{
22
}
23
24
void
QQnxAudioOutput::setVolume(
float
vol)
25
{
26
if
(vol == volume)
27
return
;
28
vol = volume;
29
q->volumeChanged(vol);
30
}
31
32
void
QQnxAudioOutput::setMuted(
bool
m)
33
{
34
if
(muted == m)
35
return
;
36
muted = m;
37
q->mutedChanged(muted);
38
}
39
40
void
QQnxAudioOutput::setAudioDevice(
const
QAudioDevice &info)
41
{
42
if
(info == device)
43
return
;
44
qCDebug(qLcMediaAudioOutput) <<
"setAudioDevice"
<< info.description() << info.isNull();
45
device = info;
46
47
// ### handle device changes
48
}
49
50
QT_END_NAMESPACE
Q_STATIC_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)
qtmultimedia
src
plugins
multimedia
qnx
common
qqnxaudiooutput.cpp
Generated on
for Qt by
1.16.1