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
10QT_BEGIN_NAMESPACE
11
12class QAudioFormat;
13class QAudioBuffer;
14class QAudioBufferOutputPrivate;
15
16class Q_MULTIMEDIA_EXPORT QAudioBufferOutput : public QObject
17{
18 Q_OBJECT
19public:
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
28Q_SIGNALS:
29 void audioBufferReceived(const QAudioBuffer &buffer);
30
31private:
32 Q_DISABLE_COPY(QAudioBufferOutput)
33 Q_DECLARE_PRIVATE(QAudioBufferOutput)
34};
35
36QT_END_NAMESPACE
37
38#endif // QAUDIOBUFFEROUTPUT_H
39

source code of qtmultimedia/src/multimedia/audio/qaudiobufferoutput.h