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 Class Reference

#include <qopenslesengine_p.h>

+ Collaboration diagram for QOpenSLESEngine:

Public Types

enum  OutputValue { FramesPerBuffer , SampleRate }
 

Public Member Functions

 QOpenSLESEngine ()
 
 ~QOpenSLESEngine ()
 
SLEngineItf slEngine () const
 
QList< int > supportedChannelCounts (QAudioDevice::Mode mode) const
 
QList< int > supportedSampleRates (QAudioDevice::Mode mode) const
 

Static Public Member Functions

static QOpenSLESEngineinstance ()
 
static SLAndroidDataFormat_PCM_EX audioFormatToSLFormatPCM (const QAudioFormat &format)
 
static QList< QAudioDeviceavailableDevices (QAudioDevice::Mode mode)
 
static bool setAudioOutput (const QByteArray &deviceId)
 
static int getOutputValue (OutputValue type, int defaultValue=0)
 
static int getDefaultBufferSize (const QAudioFormat &format)
 
static int getLowLatencyBufferSize (const QAudioFormat &format)
 
static bool supportsLowLatency ()
 
static bool printDebugInfo ()
 

Detailed Description

Definition at line 27 of file qopenslesengine_p.h.

Member Enumeration Documentation

◆ OutputValue

Enumerator
FramesPerBuffer 
SampleRate 

Definition at line 30 of file qopenslesengine_p.h.

Constructor & Destructor Documentation

◆ QOpenSLESEngine()

QOpenSLESEngine::QOpenSLESEngine ( )

Definition at line 24 of file qopenslesengine.cpp.

References CheckError.

◆ ~QOpenSLESEngine()

QOpenSLESEngine::~QOpenSLESEngine ( )

Definition at line 41 of file qopenslesengine.cpp.

Member Function Documentation

◆ audioFormatToSLFormatPCM()

SLAndroidDataFormat_PCM_EX QOpenSLESEngine::audioFormatToSLFormatPCM ( const QAudioFormat & format)
static

Definition at line 68 of file qopenslesengine.cpp.

References QSysInfo::ByteOrder, QAudioFormat::Float, getChannelMask(), QAudioFormat::Int16, QAudioFormat::Int32, QSysInfo::LittleEndian, QAudioFormat::NSampleFormats, SL_ANDROID_PCM_REPRESENTATION_INVALID, QAudioFormat::UInt8, and QAudioFormat::Unknown.

+ Here is the call graph for this function:

◆ availableDevices()

QList< QAudioDevice > QOpenSLESEngine::availableDevices ( QAudioDevice::Mode mode)
static

Definition at line 101 of file qopenslesengine.cpp.

References create(), i, QAudioDevice::Input, QAudioDevice::Output, pos, and QStringLiteral.

Referenced by QAndroidMediaDevices::audioInputs(), and QAndroidMediaDevices::audioOutputs().

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

◆ getDefaultBufferSize()

int QOpenSLESEngine::getDefaultBufferSize ( const QAudioFormat & format)
static

Definition at line 221 of file qopenslesengine.cpp.

References channelConfig, DEFAULT_PERIOD_TIME_MS, QAudioFormat::Float, QAudioFormat::Int16, and QAudioFormat::UInt8.

Referenced by openSlDebugInfo().

+ Here is the caller graph for this function:

◆ getLowLatencyBufferSize()

int QOpenSLESEngine::getLowLatencyBufferSize ( const QAudioFormat & format)
static

Definition at line 261 of file qopenslesengine.cpp.

References FramesPerBuffer, getOutputValue(), and MINIMUM_PERIOD_TIME_MS.

Referenced by openSlDebugInfo().

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

◆ getOutputValue()

int QOpenSLESEngine::getOutputValue ( QOpenSLESEngine::OutputValue type,
int defaultValue = 0 )
static

Definition at line 166 of file qopenslesengine.cpp.

References FramesPerBuffer, and SampleRate.

Referenced by getLowLatencyBufferSize(), and openSlDebugInfo().

+ Here is the caller graph for this function:

◆ instance()

QOpenSLESEngine * QOpenSLESEngine::instance ( )
static

Definition at line 47 of file qopenslesengine.cpp.

◆ printDebugInfo()

bool QOpenSLESEngine::printDebugInfo ( )
static

Definition at line 295 of file qopenslesengine.cpp.

References qEnvironmentVariableIsSet().

+ Here is the call graph for this function:

◆ setAudioOutput()

bool QOpenSLESEngine::setAudioOutput ( const QByteArray & deviceId)
static

Definition at line 130 of file qopenslesengine.cpp.

References QByteArray::toInt().

+ Here is the call graph for this function:

◆ slEngine()

SLEngineItf QOpenSLESEngine::slEngine ( ) const
inline

Definition at line 37 of file qopenslesengine_p.h.

◆ supportedChannelCounts()

QList< int > QOpenSLESEngine::supportedChannelCounts ( QAudioDevice::Mode mode) const

Definition at line 143 of file qopenslesengine.cpp.

References QAudioDevice::Input.

Referenced by QOpenSLESDeviceInfo::QOpenSLESDeviceInfo().

+ Here is the caller graph for this function:

◆ supportedSampleRates()

QList< int > QOpenSLESEngine::supportedSampleRates ( QAudioDevice::Mode mode) const

Definition at line 154 of file qopenslesengine.cpp.

References QAudioDevice::Input.

Referenced by QOpenSLESDeviceInfo::QOpenSLESDeviceInfo().

+ Here is the caller graph for this function:

◆ supportsLowLatency()

bool QOpenSLESEngine::supportsLowLatency ( )
static

Definition at line 267 of file qopenslesengine.cpp.

Referenced by openSlDebugInfo().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: