Qt 6.x
The Qt SDK
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

◆ availableDevices()

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

Definition at line 87 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 207 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 247 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 152 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 281 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 116 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 129 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 140 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 253 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: