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
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 <QtCore/qobject.h>
19#include <QtCore/qloggingcategory.h>
20
21#include <private/qtmultimediaglobal_p.h>
22#include <private/qplatformaudioinput_p.h>
23#include "private/qwasmmediadevices_p.h"
24
25#include <emscripten.h>
26#include <emscripten/val.h>
27
29
31
33{
35public:
38
39 void setMuted(bool muted) override;
40 void setAudioDevice(const QAudioDevice & device) final;
41
42 bool isMuted() const;
43 void setVolume(float volume) final;
45
46
48 void mutedChanged(bool muted);
49
50private:
51 bool m_wasMuted = false;
52 void setDeviceSourceStream(const std::string &id);
53 emscripten::val m_mediaStream;
54 std::unique_ptr<JsMediaInputStream> m_mediaInputStream;
55};
56
57QT_END_NAMESPACE
58
59#endif // QWASMAUDIOINPUT_H
void setMuted(bool muted) override
emscripten::val mediaStream()
bool isMuted() const
void setAudioDevice(const QAudioDevice &device) final
void setVolume(float volume) final
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)