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
QWindowsAudioUtils Namespace Reference

Functions

bool formatToWaveFormatExtensible (const QAudioFormat &format, WAVEFORMATEXTENSIBLE &wfx)
 
QAudioFormat waveFormatExToFormat (const WAVEFORMATEX &in)
 
Q_MULTIMEDIA_EXPORT QAudioFormat mediaTypeToFormat (IMFMediaType *mediaType)
 
ComPtr< IMFMediaType > formatToMediaType (QWindowsMediaFoundation &, const QAudioFormat &format)
 
QAudioFormat::ChannelConfig maskToChannelConfig (UINT32 mask, int count)
 
std::optional< quint32audioClientFramesInUse (IAudioClient *client)
 
std::optional< quint32audioClientFramesAllocated (IAudioClient *client)
 

Function Documentation

◆ audioClientFramesAllocated()

std::optional< quint32 > QWindowsAudioUtils::audioClientFramesAllocated ( IAudioClient * client)

Definition at line 199 of file qwindowsaudioutils.cpp.

References Q_ASSERT.

Referenced by audioClientFramesAvailable().

+ Here is the caller graph for this function:

◆ audioClientFramesInUse()

std::optional< quint32 > QWindowsAudioUtils::audioClientFramesInUse ( IAudioClient * client)

Definition at line 190 of file qwindowsaudioutils.cpp.

References Q_ASSERT.

Referenced by audioClientFramesAvailable(), and QWindowsAudioSource::bytesReady().

+ Here is the caller graph for this function:

◆ formatToMediaType()

ComPtr< IMFMediaType > QWindowsAudioUtils::formatToMediaType ( QWindowsMediaFoundation & wmf,
const QAudioFormat & format )

Definition at line 160 of file qwindowsaudioutils.cpp.

References channelConfigToMask(), QAudioFormat::ChannelConfigUnknown, and QAudioFormat::Float.

Referenced by QWindowsResampler::setup().

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

◆ formatToWaveFormatExtensible()

bool QWindowsAudioUtils::formatToWaveFormatExtensible ( const QAudioFormat & format,
WAVEFORMATEXTENSIBLE & wfx )

Definition at line 63 of file qwindowsaudioutils.cpp.

References QAudioFormat::ChannelConfigUnknown, and QAudioFormat::Float.

Referenced by QWindowsAudioDeviceInfo::testSettings().

+ Here is the caller graph for this function:

◆ maskToChannelConfig()

QAudioFormat::ChannelConfig QWindowsAudioUtils::maskToChannelConfig ( UINT32 mask,
int count )

Definition at line 35 of file qwindowsaudioutils.cpp.

References QAudioFormat::channelConfig(), channelFormatMap, and set.

Referenced by QWindowsAudioDeviceInfo::QWindowsAudioDeviceInfo(), mediaTypeToFormat(), and waveFormatExToFormat().

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

◆ mediaTypeToFormat()

QAudioFormat QWindowsAudioUtils::mediaTypeToFormat ( IMFMediaType * mediaType)

Definition at line 120 of file qwindowsaudioutils.cpp.

References QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, maskToChannelConfig(), qPopulationCount(), qWarning, QAudioFormat::setChannelCount(), and QAudioFormat::UInt8.

+ Here is the call graph for this function:

◆ waveFormatExToFormat()

QAudioFormat QWindowsAudioUtils::waveFormatExToFormat ( const WAVEFORMATEX & in)

Definition at line 93 of file qwindowsaudioutils.cpp.

References QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, maskToChannelConfig(), out, qPopulationCount(), and QAudioFormat::UInt8.

Referenced by QWindowsAudioDeviceInfo::QWindowsAudioDeviceInfo().

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