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
qpulseaudiosource.cpp File Reference

(794ad8d72339ffdd3d22c28ccdb8abc02877ff5b)

#include <QtCore/qcoreapplication.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmath.h>
#include <private/qaudiohelpers_p.h>
#include "qpulseaudiosource_p.h"
#include "qaudioengine_pulse_p.h"
#include "qpulseaudiodevice_p.h"
#include "qpulsehelpers_p.h"
#include <sys/types.h>
#include <unistd.h>
#include <mutex>
#include "moc_qpulseaudiosource_p.cpp"
+ Include dependency graph for qpulseaudiosource.cpp:

Go to the source code of this file.

Functions

static void inputStreamReadCallback (pa_stream *stream, size_t length, void *userdata)
 
static void inputStreamStateCallback (pa_stream *stream, void *userdata)
 
static void inputStreamUnderflowCallback (pa_stream *stream, void *userdata)
 
static void inputStreamOverflowCallback (pa_stream *stream, void *userdata)
 
static void inputStreamSuccessCallback (pa_stream *stream, int success, void *userdata)
 

Variables

QT_BEGIN_NAMESPACE const int SourcePeriodTimeMs = 50
 

Function Documentation

◆ inputStreamOverflowCallback()

static void inputStreamOverflowCallback ( pa_stream * stream,
void * userdata )
static

Definition at line 74 of file qpulseaudiosource.cpp.

References Q_UNUSED, and qWarning.

◆ inputStreamReadCallback()

static void inputStreamReadCallback ( pa_stream * stream,
size_t length,
void * userdata )
static

Definition at line 21 of file qpulseaudiosource.cpp.

References QPulseAudioEngine::instance(), QPulseAudioEngine::mainloop(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ inputStreamStateCallback()

static void inputStreamStateCallback ( pa_stream * stream,
void * userdata )
static

Definition at line 30 of file qpulseaudiosource.cpp.

References QPulseAudioInternal::audioFormatToSampleSpec(), QPulseAudioSource::format(), QPulseAudioEngine::instance(), QPulseAudioEngine::mainloop(), Q_UNLIKELY, Q_UNUSED, qCDebug, QtDebugMsg, qWarning, and state.

+ Here is the call graph for this function:

◆ inputStreamSuccessCallback()

static void inputStreamSuccessCallback ( pa_stream * stream,
int success,
void * userdata )
static

Definition at line 81 of file qpulseaudiosource.cpp.

References QPulseAudioEngine::instance(), QPulseAudioEngine::mainloop(), and Q_UNUSED.

Referenced by QPulseAudioSource::resume(), and QPulseAudioSource::suspend().

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

◆ inputStreamUnderflowCallback()

static void inputStreamUnderflowCallback ( pa_stream * stream,
void * userdata )
static

Definition at line 67 of file qpulseaudiosource.cpp.

References Q_UNUSED, and qWarning.

Variable Documentation

◆ SourcePeriodTimeMs

QT_BEGIN_NAMESPACE const int SourcePeriodTimeMs = 50

Definition at line 19 of file qpulseaudiosource.cpp.