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
qwindowsaudiodevice_p.h
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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of other Qt classes. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15
16#ifndef QWINDOWSAUDIODEVICEINFO_H
17#define QWINDOWSAUDIODEVICEINFO_H
18
19#include <QtCore/qbytearray.h>
20#include <QtCore/qstringlist.h>
21#include <QtCore/qlist.h>
22#include <QtCore/qdebug.h>
23
24#include <QtMultimedia/qaudiodevice.h>
25#include <private/qaudiosystem_p.h>
26#include <private/qaudiodevice_p.h>
27#include <qcomptr_p.h>
28
29struct IMMDevice;
30
32
33const unsigned int MAX_SAMPLE_RATES = 5;
34const unsigned int SAMPLE_RATES[] = { 8000, 11025, 22050, 44100, 48000 };
35
37{
38public:
39 QWindowsAudioDeviceInfo(QByteArray dev, ComPtr<IMMDevice> immdev, int waveID, const QString &description, QAudioDevice::Mode mode);
41
42 bool open();
43 void close();
44
45 bool testSettings(const QAudioFormat& format) const;
46
47 int waveId() const { return m_devId; }
48 ComPtr<IMMDevice> immDev() const { return m_immDev; }
49
50private:
51 quint32 m_devId;
52 ComPtr<IMMDevice> m_immDev;
53};
54
55
56
58
59
60#endif // QWINDOWSAUDIODEVICEINFO_H
Mode
Describes the mode of this device.
The QAudioFormat class stores audio stream parameter information.
\inmodule QtCore
Definition qbytearray.h:57
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool testSettings(const QAudioFormat &format) const
ComPtr< IMMDevice > immDev() const
QWindowsAudioDeviceInfo(QByteArray dev, ComPtr< IMMDevice > immdev, int waveID, const QString &description, QAudioDevice::Mode mode)
Combined button and popup list for selecting options.
GLenum mode
GLint GLsizei GLsizei GLenum format
unsigned int quint32
Definition qtypes.h:50
const unsigned int SAMPLE_RATES[]
QT_BEGIN_NAMESPACE const unsigned int MAX_SAMPLE_RATES