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

Functions

pa_sample_spec audioFormatToSampleSpec (const QAudioFormat &format)
 
pa_channel_map channelMapForAudioFormat (const QAudioFormat &format)
 
QAudioFormat::ChannelConfig channelConfigFromMap (const pa_channel_map &map)
 
QAudioFormat sampleSpecToAudioFormat (const pa_sample_spec &spec)
 
QUtf8StringView currentError (const pa_context *context)
 
QUtf8StringView currentError (const pa_stream *stream)
 

Function Documentation

◆ audioFormatToSampleSpec()

pa_sample_spec QPulseAudioInternal::audioFormatToSampleSpec ( const QAudioFormat & format)

Definition at line 14 of file qpulsehelpers.cpp.

References audioFormatToSampleSpec(), QSysInfo::BigEndian, QSysInfo::ByteOrder, QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, and QAudioFormat::UInt8.

Referenced by audioFormatToSampleSpec(), and inputStreamStateCallback().

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

◆ channelConfigFromMap()

QAudioFormat::ChannelConfig QPulseAudioInternal::channelConfigFromMap ( const pa_channel_map & map)

Definition at line 103 of file qpulsehelpers.cpp.

References QAudioFormat::BackCenter, QAudioFormat::BackLeft, QAudioFormat::BackRight, QAudioFormat::channelConfig(), channelConfigFromMap(), QAudioFormat::FrontCenter, QAudioFormat::FrontLeft, QAudioFormat::FrontLeftOfCenter, QAudioFormat::FrontRight, QAudioFormat::FrontRightOfCenter, i, QAudioFormat::LFE, map, QAudioFormat::SideLeft, QAudioFormat::SideRight, QAudioFormat::TopBackCenter, QAudioFormat::TopBackLeft, QAudioFormat::TopBackRight, QAudioFormat::TopCenter, QAudioFormat::TopFrontCenter, QAudioFormat::TopFrontLeft, and QAudioFormat::TopFrontRight.

Referenced by channelConfigFromMap(), and updateDevicesMap().

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

◆ channelMapForAudioFormat()

◆ currentError() [1/2]

QUtf8StringView QPulseAudioInternal::currentError ( const pa_context * context)

Definition at line 202 of file qpulsehelpers.cpp.

References context, and currentError().

Referenced by currentError(), and currentError().

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

◆ currentError() [2/2]

QUtf8StringView QPulseAudioInternal::currentError ( const pa_stream * stream)

Definition at line 207 of file qpulsehelpers.cpp.

References currentError().

+ Here is the call graph for this function:

◆ sampleSpecToAudioFormat()

QAudioFormat QPulseAudioInternal::sampleSpecToAudioFormat ( const pa_sample_spec & spec)

Definition at line 171 of file qpulsehelpers.cpp.

References QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, sampleSpecToAudioFormat(), QAudioFormat::setSampleRate(), and QAudioFormat::UInt8.

Referenced by sampleSpecToAudioFormat(), and updateDevicesMap().

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