Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QPulseAudioInternal Namespace Reference

Classes

struct  PaHandleTraits
struct  PaMainLoopDeleter
struct  PAProplistDeleter
class  QPulseAudioSink
struct  QPulseAudioSinkStream
class  QPulseAudioSource
struct  QPulseAudioSourceStream

Typedefs

using PAOperationHandleTraits = PaHandleTraits<pa_operation, pa_operation_ref, pa_operation_unref>
using PAContextHandleTraits = PaHandleTraits<pa_context, pa_context_ref, pa_context_unref>
using PAStreamHandleTraits = PaHandleTraits<pa_stream, pa_stream_ref, pa_stream_unref>
using PAOperationHandle = QtPrivate::QSharedHandle<PAOperationHandleTraits>
using PAContextHandle = QtPrivate::QSharedHandle<PAContextHandleTraits>
using PAStreamHandle = QtPrivate::QSharedHandle<PAStreamHandleTraits>
using PAProplistHandle = std::unique_ptr<pa_proplist, PAProplistDeleter>

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)
PAOperationHandle streamCork (const PAStreamHandle &stream, bool corkStream)

Typedef Documentation

◆ PAContextHandle

◆ PAContextHandleTraits

using QPulseAudioInternal::PAContextHandleTraits = PaHandleTraits<pa_context, pa_context_ref, pa_context_unref>

Definition at line 55 of file qpulsehelpers_p.h.

◆ PAOperationHandle

◆ PAOperationHandleTraits

using QPulseAudioInternal::PAOperationHandleTraits = PaHandleTraits<pa_operation, pa_operation_ref, pa_operation_unref>

Definition at line 54 of file qpulsehelpers_p.h.

◆ PAProplistHandle

using QPulseAudioInternal::PAProplistHandle = std::unique_ptr<pa_proplist, PAProplistDeleter>

Definition at line 67 of file qpulsehelpers_p.h.

◆ PAStreamHandle

◆ PAStreamHandleTraits

using QPulseAudioInternal::PAStreamHandleTraits = PaHandleTraits<pa_stream, pa_stream_ref, pa_stream_unref>

Definition at line 56 of file qpulsehelpers_p.h.

Function Documentation

◆ audioFormatToSampleSpec()

pa_sample_spec QPulseAudioInternal::audioFormatToSampleSpec ( const QAudioFormat & format)

Definition at line 14 of file qpulsehelpers.cpp.

References QAudioFormat::channelCount(), QAudioFormat::Float, QAudioFormat::Int16, QAudioFormat::Int32, QAudioFormat::sampleFormat(), QAudioFormat::sampleRate(), and QAudioFormat::UInt8.

Here is the call graph for this function:

◆ channelConfigFromMap()

◆ channelMapForAudioFormat()

◆ currentError() [1/2]

QUtf8StringView QPulseAudioInternal::currentError ( const pa_context * context)

Definition at line 202 of file qpulsehelpers.cpp.

◆ currentError() [2/2]

QUtf8StringView QPulseAudioInternal::currentError ( const pa_stream * stream)

Definition at line 207 of file qpulsehelpers.cpp.

◆ sampleSpecToAudioFormat()

QAudioFormat QPulseAudioInternal::sampleSpecToAudioFormat ( const pa_sample_spec & spec)

Definition at line 171 of file qpulsehelpers.cpp.

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

Here is the call graph for this function:

◆ streamCork()

PAOperationHandle QPulseAudioInternal::streamCork ( const PAStreamHandle & stream,
bool corkStream )
nodiscard

Definition at line 212 of file qpulsehelpers.cpp.