Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWindowsResampler Class Reference

#include <qwindowsresampler_p.h>

+ Collaboration diagram for QWindowsResampler:

Public Member Functions

 QWindowsResampler ()
 
 ~QWindowsResampler ()
 
bool setup (const QAudioFormat &in, const QAudioFormat &out)
 
QByteArray resample (const QByteArrayView &in)
 
QByteArray resample (IMFSample *sample)
 
QAudioFormat inputFormat () const
 
QAudioFormat outputFormat () const
 
quint64 outputBufferSize (quint64 inputBufferSize) const
 
quint64 inputBufferSize (quint64 outputBufferSize) const
 
quint64 totalInputBytes () const
 
quint64 totalOutputBytes () const
 

Detailed Description

Definition at line 35 of file qwindowsresampler_p.h.

Constructor & Destructor Documentation

◆ QWindowsResampler()

QWindowsResampler::QWindowsResampler ( )

◆ ~QWindowsResampler()

QWindowsResampler::~QWindowsResampler ( )
default

Member Function Documentation

◆ inputBufferSize()

quint64 QWindowsResampler::inputBufferSize ( quint64 outputBufferSize) const

Definition at line 38 of file qwindowsresampler.cpp.

References QAudioFormat::bytesForDuration(), QAudioFormat::durationForBytes(), QAudioFormat::isValid(), and outputBufferSize().

Referenced by QWindowsAudioSink::bytesFree(), and outputBufferSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inputFormat()

QAudioFormat QWindowsResampler::inputFormat ( ) const
inline

Definition at line 46 of file qwindowsresampler_p.h.

Referenced by QWindowsAudioSource::bytesReady().

+ Here is the caller graph for this function:

◆ outputBufferSize()

quint64 QWindowsResampler::outputBufferSize ( quint64 inputBufferSize) const

Definition at line 30 of file qwindowsresampler.cpp.

References QAudioFormat::bytesForDuration(), QAudioFormat::durationForBytes(), inputBufferSize(), and QAudioFormat::isValid().

Referenced by inputBufferSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ outputFormat()

QAudioFormat QWindowsResampler::outputFormat ( ) const
inline

Definition at line 47 of file qwindowsresampler_p.h.

Referenced by QWindowsAudioSink::bytesFree(), QWindowsAudioSource::bytesReady(), and QWindowsAudioSource::processedUSecs().

+ Here is the caller graph for this function:

◆ resample() [1/2]

QByteArray QWindowsResampler::resample ( const QByteArrayView & in)

Definition at line 130 of file qwindowsresampler.cpp.

References out, Q_ASSERT, and qCWarning.

◆ resample() [2/2]

QByteArray QWindowsResampler::resample ( IMFSample * sample)

Definition at line 154 of file qwindowsresampler.cpp.

References out, Q_ASSERT, QByteArray(), and qCWarning.

+ Here is the call graph for this function:

◆ setup()

bool QWindowsResampler::setup ( const QAudioFormat & in,
const QAudioFormat & out )

Definition at line 193 of file qwindowsresampler.cpp.

References QWindowsAudioUtils::formatToMediaType(), qCDebug, and qCWarning.

+ Here is the call graph for this function:

◆ totalInputBytes()

quint64 QWindowsResampler::totalInputBytes ( ) const
inline

Definition at line 52 of file qwindowsresampler_p.h.

Referenced by QWindowsAudioSink::processedUSecs().

+ Here is the caller graph for this function:

◆ totalOutputBytes()

quint64 QWindowsResampler::totalOutputBytes ( ) const
inline

Definition at line 53 of file qwindowsresampler_p.h.

Referenced by QWindowsAudioSource::processedUSecs().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: