Qt 6.x
The Qt SDK
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)
 
static QString stateToQString (pa_stream_state_t state)
 
static QString sampleFormatToQString (pa_sample_format format)
 
static QString stateToQString (pa_context_state_t state)
 

Function Documentation

◆ audioFormatToSampleSpec()

pa_sample_spec QPulseAudioInternal::audioFormatToSampleSpec ( const QAudioFormat format)

Definition at line 12 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 101 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()

◆ sampleFormatToQString()

static QString QPulseAudioInternal::sampleFormatToQString ( pa_sample_format  format)
inlinestatic

Definition at line 56 of file qpulsehelpers_p.h.

◆ sampleSpecToAudioFormat()

QAudioFormat QPulseAudioInternal::sampleSpecToAudioFormat ( const pa_sample_spec &  spec)

Definition at line 169 of file qpulsehelpers.cpp.

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

Referenced by sampleSpecToAudioFormat(), and updateDevicesMap().

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

◆ stateToQString() [1/2]

static QString QPulseAudioInternal::stateToQString ( pa_context_state_t  state)
inlinestatic

Definition at line 81 of file qpulsehelpers_p.h.

References state.

◆ stateToQString() [2/2]

static QString QPulseAudioInternal::stateToQString ( pa_stream_state_t  state)
inlinestatic

Definition at line 41 of file qpulsehelpers_p.h.

References state.

Referenced by contextStateCallback(), contextStateCallbackInit(), and inputStreamStateCallback().

+ Here is the caller graph for this function: