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 | #ifndef QAUDIO_H |
6 | #define QAUDIO_H |
7 | |
8 | #if 0 |
9 | #pragma qt_class(QAudio) |
10 | #endif |
11 | |
12 | #include <QtMultimedia/qtmultimediaglobal.h> |
13 | |
14 | #include <QtCore/qmetatype.h> |
15 | |
16 | QT_BEGIN_NAMESPACE |
17 | |
18 | //QTM_SYNC_HEADER_EXPORT QAudio |
19 | |
20 | // Class forward declaration required for QDoc bug |
21 | class QString; |
22 | namespace QAudio |
23 | { |
24 | enum Error { NoError, OpenError, IOError, UnderrunError, FatalError }; |
25 | enum State { ActiveState, SuspendedState, StoppedState, IdleState }; |
26 | |
27 | enum VolumeScale { |
28 | LinearVolumeScale, |
29 | CubicVolumeScale, |
30 | LogarithmicVolumeScale, |
31 | DecibelVolumeScale |
32 | }; |
33 | |
34 | Q_MULTIMEDIA_EXPORT float convertVolume(float volume, VolumeScale from, VolumeScale to); |
35 | } |
36 | |
37 | #ifndef QT_NO_DEBUG_STREAM |
38 | Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug dbg, QAudio::Error error); |
39 | Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug dbg, QAudio::State state); |
40 | Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug dbg, QAudio::VolumeScale role); |
41 | #endif |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QAUDIO_H |
46 | |