15 const T *pSrc = (
const T *)
src;
18 pDst[
i] = pSrc[
i] * factor;
32 const T *pSrc = (
const T *)
src;
41 const int samplesCount =
len /
qMax(1,
format.bytesPerSample());
43 switch (
format.sampleFormat()) {
48 QAudioHelperInternal::adjustUnsignedSamples<quint8>(factor,
src,dest,samplesCount);
51 QAudioHelperInternal::adjustSamples<qint16>(factor,
src,dest,samplesCount);
54 QAudioHelperInternal::adjustSamples<qint32>(factor,
src,dest,samplesCount);
57 QAudioHelperInternal::adjustSamples<float>(factor,
src,dest,samplesCount);
void adjustUnsignedSamples(qreal factor, const void *src, void *dst, int samples)
void qMultiplySamples(qreal factor, const QAudioFormat &format, const void *src, void *dest, int len)
void adjustSamples(qreal factor, const void *src, void *dst, int samples)
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format
QT_BEGIN_NAMESPACE typedef signed char qint8