1 | // Copyright (C) 2024 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 QAUDIOBUFFEROUTPUT_H |
5 | #define QAUDIOBUFFEROUTPUT_H |
6 | |
7 | #include <QtMultimedia/qtmultimediaexports.h> |
8 | #include <QtCore/qobject.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QAudioFormat; |
13 | class QAudioBuffer; |
14 | class QAudioBufferOutputPrivate; |
15 | |
16 | class Q_MULTIMEDIA_EXPORT QAudioBufferOutput : public QObject |
17 | { |
18 | Q_OBJECT |
19 | public: |
20 | explicit QAudioBufferOutput(QObject *parent = nullptr); |
21 | |
22 | explicit QAudioBufferOutput(const QAudioFormat &format, QObject *parent = nullptr); |
23 | |
24 | ~QAudioBufferOutput() override; |
25 | |
26 | QAudioFormat format() const; |
27 | |
28 | Q_SIGNALS: |
29 | void audioBufferReceived(const QAudioBuffer &buffer); |
30 | |
31 | private: |
32 | Q_DISABLE_COPY(QAudioBufferOutput) |
33 | Q_DECLARE_PRIVATE(QAudioBufferOutput) |
34 | }; |
35 | |
36 | QT_END_NAMESPACE |
37 | |
38 | #endif // QAUDIOBUFFEROUTPUT_H |
39 |