Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
13static Q_LOGGING_CATEGORY(qLcMediaAudioOutput, "qt.multimedia.audiooutput")
14
16
18 : QPlatformAudioOutput(parent)
19{
20}
21
25
27{
28 if (vol == volume)
29 return;
30 vol = volume;
31 q->volumeChanged(vol);
32}
33
35{
36 if (muted == m)
37 return;
38 muted = m;
39 q->mutedChanged(muted);
40}
41
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
The QAudioDevice class provides an information about audio devices and their functionality.
\qmltype AudioOutput \instantiates QAudioOutput
void setVolume(float volume) override
void setMuted(bool muted) override
void setAudioDevice(const QAudioDevice &) override
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
const GLfloat * m
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
QHostInfo info
[0]