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

(10864c9b1f230c36d9ba6c497b2e8a38a279ceb4)

#include "qopenslesengine_p.h"
#include "qandroidaudiosource_p.h"
#include "qandroidaudiodevice_p.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qjniobject.h>
#include <QtCore/qpermissions.h>
#include <QtCore/private/qandroidextras_p.h>
#include <qdebug.h>
+ Include dependency graph for qopenslesengine.cpp:

Go to the source code of this file.

Macros

#define MINIMUM_PERIOD_TIME_MS   5
 
#define DEFAULT_PERIOD_TIME_MS   50
 
#define CheckError(message)   if (result != SL_RESULT_SUCCESS) { qWarning(message); return; }
 
#define SL_ANDROID_PCM_REPRESENTATION_INVALID   0
 

Functions

 Q_GLOBAL_STATIC (QOpenSLESEngine, openslesEngine)
 
static SLuint32 getChannelMask (unsigned channelCount)
 
static bool hasRecordPermission ()
 

Macro Definition Documentation

◆ CheckError

#define CheckError ( message)    if (result != SL_RESULT_SUCCESS) { qWarning(message); return; }

Definition at line 18 of file qopenslesengine.cpp.

Referenced by QOpenSLESEngine::QOpenSLESEngine().

◆ DEFAULT_PERIOD_TIME_MS

#define DEFAULT_PERIOD_TIME_MS   50

Definition at line 16 of file qopenslesengine.cpp.

◆ MINIMUM_PERIOD_TIME_MS

#define MINIMUM_PERIOD_TIME_MS   5

Definition at line 15 of file qopenslesengine.cpp.

◆ SL_ANDROID_PCM_REPRESENTATION_INVALID

#define SL_ANDROID_PCM_REPRESENTATION_INVALID   0

Definition at line 20 of file qopenslesengine.cpp.

Referenced by QOpenSLESEngine::audioFormatToSLFormatPCM().

Function Documentation

◆ getChannelMask()

static SLuint32 getChannelMask ( unsigned channelCount)
static

Definition at line 52 of file qopenslesengine.cpp.

Referenced by QOpenSLESEngine::audioFormatToSLFormatPCM().

+ Here is the caller graph for this function:

◆ hasRecordPermission()

static bool hasRecordPermission ( )
static

Definition at line 138 of file qopenslesengine.cpp.

References Qt::Granted, and qApp.

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QOpenSLESEngine ,
openslesEngine  )