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
5
6#include <qaudiodevice.h>
7#include <qaudiooutput.h>
8
9#include <QtCore/qloggingcategory.h>
10
11Q_STATIC_LOGGING_CATEGORY(qLcMediaAudioOutput, "qt.multimedia.audiooutput");
12
13QT_BEGIN_NAMESPACE
14
15QQnxAudioOutput::QQnxAudioOutput(QAudioOutput *parent)
16 : QPlatformAudioOutput(parent)
17{
18}
19
20QQnxAudioOutput::~QQnxAudioOutput()
21{
22}
23
24void QQnxAudioOutput::setVolume(float vol)
25{
26 if (vol == volume)
27 return;
28 vol = volume;
29 q->volumeChanged(vol);
30}
31
32void QQnxAudioOutput::setMuted(bool m)
33{
34 if (muted == m)
35 return;
36 muted = m;
37 q->mutedChanged(muted);
38}
39
40void 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
50QT_END_NAMESPACE
QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY(lcSynthesizedIterableAccess, "qt.iterable.synthesized", QtWarningMsg)