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_p.h File Reference

(03bfd3c37cb94642aa5e64b3b54c610271964e45)

#include <QtMultimedia/private/qtmultimediaglobal_p.h>
#include <QtMultimedia/qaudioformat.h>
#include <QtCore/qspan.h>
#include <QtCore/qmath.h>
#include <vector>
Include dependency graph for qaudiohelpers_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QAudioHelperInternal::CatmullRomInterpolator
struct  QAudioHelperInternal::CatmullRomInterpolator::ResampleResult

Namespaces

namespace  QAudioHelperInternal

Enumerations

enum class  QAudioHelperInternal::NativeSampleFormat : uint8_t {
  QAudioHelperInternal::uint8_t , QAudioHelperInternal::int16_t , QAudioHelperInternal::int32_t , QAudioHelperInternal::int24_t_3b ,
  QAudioHelperInternal::int24_t_4b_low , QAudioHelperInternal::float32_t
}
enum class  QAudioHelperInternal::UpmixScaling { QAudioHelperInternal::Duplicate , QAudioHelperInternal::EqualPower }
enum class  QAudioHelperInternal::DownmixScaling { QAudioHelperInternal::Average , QAudioHelperInternal::KeepPower }

Functions

void QAudioHelperInternal::qMultiplySamples (float factor, const QAudioFormat &format, const void *src, void *dest, int len) noexcept Q_DECL_NONBLOCKING_FUNCTION
void QAudioHelperInternal::applyVolume (float volume, const QAudioFormat &format, QSpan< const std::byte > source, QSpan< std::byte > destination) noexcept Q_DECL_NONBLOCKING_FUNCTION
void QAudioHelperInternal::convertSampleFormat (QSpan< const std::byte > source, NativeSampleFormat sourceFormat, QSpan< std::byte > destination, NativeSampleFormat destinationFormat) noexcept Q_DECL_NONBLOCKING_FUNCTION
NativeSampleFormat QAudioHelperInternal::bestNativeSampleFormat (const QAudioFormat &fmt, QSpan< const NativeSampleFormat > supportedNativeFormats)
QAudioFormat::SampleFormat QAudioHelperInternal::bestSampleFormat (const NativeSampleFormat fmt)
NativeSampleFormat QAudioHelperInternal::toNativeSampleFormat (QAudioFormat::SampleFormat fmt)
constexpr size_t QAudioHelperInternal::bytesPerSample (NativeSampleFormat fmt) noexcept Q_DECL_NONBLOCKING_FUNCTION
std::optional< float > QAudioHelperInternal::sanitizeVolume (float volume, float lastValue)
void QAudioHelperInternal::fillSilence (QSpan< std::byte > buffer, NativeSampleFormat sampleFormat) noexcept
void QAudioHelperInternal::fillSilence (QSpan< std::byte > buffer, QAudioFormat fmt) noexcept
QByteArray QAudioHelperInternal::resampleAudioCatmullRom (QSpan< const float > input, int nChannels, int inputRate, int outputRate)
QByteArray QAudioHelperInternal::upmixMonoToStereo (QSpan< const float > input, UpmixScaling scaling)
void QAudioHelperInternal::upmixMonoToStereo (QSpan< float > out, QSpan< const float > in, UpmixScaling scaling) noexcept Q_DECL_NONBLOCKING_FUNCTION
QByteArray QAudioHelperInternal::downmixStereoToMono (QSpan< const float > input, DownmixScaling scaling)
void QAudioHelperInternal::downmixStereoToMono (QSpan< float > out, QSpan< const float > in, DownmixScaling scaling) noexcept Q_DECL_NONBLOCKING_FUNCTION
Q_MULTIMEDIA_EXPORT QDebug operator<< (QDebug dbg, QAudioHelperInternal::NativeSampleFormat)

Function Documentation

◆ operator<<()

Q_MULTIMEDIA_EXPORT QDebug operator<< ( QDebug dbg,
QAudioHelperInternal::NativeSampleFormat  )