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
23QT_BEGIN_NAMESPACE
24
25namespace QAudioHelperInternal {
26Q_MULTIMEDIA_EXPORT void qMultiplySamples(float factor,
27 const QAudioFormat &format,
28 const void *src,
29 void *dest,
30 int len) QT_MM_NONBLOCKING;
31
32Q_MULTIMEDIA_EXPORT
33void 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
40QT_END_NAMESPACE
41
42#endif // QAUDIOHELPERS_P_H
43

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