Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qwasmaudioinput_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
#
ifndef
QWASMAUDIOINPUT_H
5
#
define
QWASMAUDIOINPUT_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtMultimedia
/
private
/
qplatformaudioinput_p
.
h
>
19
#
include
<
QtMultimedia
/
private
/
qtmultimediaglobal_p
.
h
>
20
#
include
<
QtMultimedia
/
private
/
qwasmmediadevices_p
.
h
>
21
#
include
<
QtCore
/
qloggingcategory
.
h
>
22
#
include
<
QtCore
/
qobject
.
h
>
23
24
#
include
<
emscripten
.
h
>
25
#
include
<
emscripten
/
val
.
h
>
26
27
QT_BEGIN_NAMESPACE
28
29
Q_DECLARE_LOGGING_CATEGORY
(
qWasmAudioInput
)
30
31
class
QWasmAudioInput
:
public
QObject
,
public
QPlatformAudioInput
32
{
33
Q_OBJECT
34
public
:
35
explicit
QWasmAudioInput
(
QAudioInput
*
parent
);
36
~
QWasmAudioInput
();
37
38
void
setMuted
(
bool
muted)
override
;
39
void
setAudioDevice
(
const
QAudioDevice & device)
final
;
40
41
bool
isMuted
()
const
;
42
void
setVolume
(
float
volume)
final
;
43
emscripten
::
val
mediaStream
();
44
45
46
Q_SIGNALS
:
47
void
mutedChanged
(
bool
muted
);
48
49
private
:
50
bool
m_wasMuted =
false
;
51
emscripten::val m_mediaStream;
52
std::string m_deviceId;
53
};
54
55
QT_END_NAMESPACE
56
57
#
endif
// QWASMAUDIOINPUT_H
QWasmAudioInput
Definition
qwasmaudioinput_p.h:32
QWasmAudioInput::setMuted
void setMuted(bool muted) override
Definition
qwasmaudioinput.cpp:23
QWasmAudioInput::mediaStream
emscripten::val mediaStream()
Definition
qwasmaudioinput.cpp:61
QWasmAudioInput::isMuted
bool isMuted() const
Definition
qwasmaudioinput.cpp:42
QWasmAudioInput::setAudioDevice
void setAudioDevice(const QAudioDevice &device) final
Definition
qwasmaudioinput.cpp:47
QWasmAudioInput::~QWasmAudioInput
~QWasmAudioInput()
Definition
qwasmaudioinput.cpp:19
QWasmAudioInput::setVolume
void setVolume(float volume) final
Definition
qwasmaudioinput.cpp:55
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
qtmultimedia
src
plugins
multimedia
wasm
common
qwasmaudioinput_p.h
Generated on
for Qt by
1.18.0