Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qaudiohelpers.cpp File Reference

(843fdd9802b41b6b3113d5d65aacbc4c6d1cb08f)

#include "qaudiohelpers_p.h"
#include <QtCore/qdebug.h>
#include <QtMultimedia/private/qaudio_qspan_support_p.h>
#include <QtMultimedia/private/qmultimedia_enum_to_string_converter_p.h>
#include <limits>
Include dependency graph for qaudiohelpers.cpp:

Go to the source code of this file.

Namespaces

namespace  QAudioHelperInternal

Macros

#define QT_MM_RESTRICT   /*__restrict__*/

Functions

void QAudioHelperInternal::qMultiplySamples (float factor, const QAudioFormat &format, const void *src, void *dest, int len) noexcept QT_MM_NONBLOCKING
void QAudioHelperInternal::applyVolume (float volume, const QAudioFormat &format, QSpan< const std::byte > source, QSpan< std::byte > destination) noexcept QT_MM_NONBLOCKING
void QAudioHelperInternal::convertSampleFormat (QSpan< const std::byte > source, NativeSampleFormat sourceFormat, QSpan< std::byte > destination, NativeSampleFormat destinationFormat) noexcept QT_MM_NONBLOCKING
NativeSampleFormat QAudioHelperInternal::bestNativeSampleFormat (const QAudioFormat &fmt, QSpan< const NativeSampleFormat > supportedNativeFormats)
NativeSampleFormat QAudioHelperInternal::toNativeSampleFormat (QAudioFormat::SampleFormat fmt)
QAudioFormat::SampleFormat QAudioHelperInternal::bestSampleFormat (const NativeSampleFormat fmt)
std::optional< float > QAudioHelperInternal::sanitizeVolume (float volume, float lastValue)
 QT_MM_MAKE_STRING_RESOLVER (QAudioHelperInternal::NativeSampleFormat, QtMultimediaPrivate::EnumName,(QAudioHelperInternal::NativeSampleFormat::uint8_t, "uint8_t")(QAudioHelperInternal::NativeSampleFormat::int16_t, "int16_t")(QAudioHelperInternal::NativeSampleFormat::int32_t, "int32_t")(QAudioHelperInternal::NativeSampleFormat::int24_t_3b, "int24_t_3b")(QAudioHelperInternal::NativeSampleFormat::int24_t_4b_low, "int24_t_4b_low")(QAudioHelperInternal::NativeSampleFormat::float32_t, "float32_t"))
 QT_MM_DEFINE_QDEBUG_ENUM (QAudioHelperInternal::NativeSampleFormat)

Macro Definition Documentation

◆ QT_MM_RESTRICT

#define QT_MM_RESTRICT   /*__restrict__*/

Definition at line 22 of file qaudiohelpers.cpp.

Function Documentation

◆ QT_MM_DEFINE_QDEBUG_ENUM()

QT_MM_DEFINE_QDEBUG_ENUM ( QAudioHelperInternal::NativeSampleFormat )

◆ QT_MM_MAKE_STRING_RESOLVER()