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
qpulsehelpers_p.h File Reference

(d2c373ef91299825095400b6f871cb91345fc596)

#include "qaudiodevice.h"
#include <qaudioformat.h>
#include <pulse/pulseaudio.h>
#include <QtMultimedia/private/qsharedhandle_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/qloggingcategory.h>
Include dependency graph for qpulsehelpers_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QPulseAudioInternal::PaHandleTraits< TypeArg, RefFn, UnrefFn >
struct  QPulseAudioInternal::PAProplistDeleter
struct  QPulseAudioInternal::PaMainLoopDeleter

Namespaces

namespace  QPulseAudioInternal

Typedefs

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

Functions

pa_sample_spec QPulseAudioInternal::audioFormatToSampleSpec (const QAudioFormat &format)
QAudioFormat QPulseAudioInternal::sampleSpecToAudioFormat (const pa_sample_spec &spec)
pa_channel_map QPulseAudioInternal::channelMapForAudioFormat (const QAudioFormat &format)
QAudioFormat::ChannelConfig QPulseAudioInternal::channelConfigFromMap (const pa_channel_map &map)
QUtf8StringView QPulseAudioInternal::currentError (const pa_context *context)
QUtf8StringView QPulseAudioInternal::currentError (const pa_stream *stream)
PAOperationHandle QPulseAudioInternal::streamCork (const PAStreamHandle &stream, bool corkStream)
QDebug operator<< (QDebug, pa_stream_state_t)
QDebug operator<< (QDebug, pa_sample_format)
QDebug operator<< (QDebug, pa_context_state_t)

Function Documentation

◆ operator<<() [1/3]

QDebug operator<< ( QDebug dbg,
pa_context_state_t state )

Definition at line 287 of file qpulsehelpers.cpp.

◆ operator<<() [2/3]

QDebug operator<< ( QDebug dbg,
pa_sample_format format )

Definition at line 282 of file qpulsehelpers.cpp.

◆ operator<<() [3/3]

QDebug operator<< ( QDebug dbg,
pa_stream_state_t state )

Definition at line 277 of file qpulsehelpers.cpp.