| 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 QAUDIOHELPERS_P_H |
| 5 | #define QAUDIOHELPERS_P_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/qspan.h> |
| 19 | #include <QtMultimedia/qaudioformat.h> |
| 20 | #include <QtMultimedia/private/qtmultimediaglobal_p.h> |
| 21 | #include <QtMultimedia/private/qaudio_rtsan_support_p.h> |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | namespace QAudioHelperInternal { |
| 26 | Q_MULTIMEDIA_EXPORT void qMultiplySamples(float factor, |
| 27 | const QAudioFormat &format, |
| 28 | const void *src, |
| 29 | void *dest, |
| 30 | int len) QT_MM_NONBLOCKING; |
| 31 | |
| 32 | Q_MULTIMEDIA_EXPORT |
| 33 | void applyVolume(float volume, |
| 34 | const QAudioFormat &, |
| 35 | QSpan<const std::byte> source, |
| 36 | QSpan<std::byte> destination) QT_MM_NONBLOCKING; |
| 37 | |
| 38 | } // namespace QAudioHelperInternal |
| 39 | |
| 40 | QT_END_NAMESPACE |
| 41 | |
| 42 | #endif // QAUDIOHELPERS_P_H |
| 43 | |