Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qopenslesengine.cpp File Reference
#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 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.

◆ 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.

Function Documentation

◆ hasRecordPermission()

static bool hasRecordPermission ( )
static

Definition at line 124 of file qopenslesengine.cpp.

References Qt::Granted, and qApp.

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QOpenSLESEngine  ,
openslesEngine   
)