4#ifndef QOPENSLESAUDIOINPUT_H
5#define QOPENSLESAUDIOINPUT_H
18#include <private/qaudiosystem_p.h>
19#include <QElapsedTimer>
20#include <SLES/OpenSLES.h>
23#include <SLES/OpenSLES_Android.h>
25#define QT_ANDROID_PRESET_MIC "mic"
26#define QT_ANDROID_PRESET_CAMCORDER "camcorder"
27#define QT_ANDROID_PRESET_VOICE_RECOGNITION "voicerecognition"
28#define QT_ANDROID_PRESET_VOICE_COMMUNICATION "voicecommunication"
68 bool startRecording();
70 void writeDataToDevice(
const char *
data,
int size);
75 SLObjectItf m_recorderObject;
76 SLRecordItf m_recorder;
78 SLuint32 m_recorderPreset;
79 SLAndroidSimpleBufferQueueItf m_bufferQueue;
81 SLBufferQueueItf m_bufferQueue;
IOBluetoothDevice * device
void setBufferSize(qsizetype value)
void setFormat(const QAudioFormat &format)
QAudioFormat format() const
QAudio::Error error() const
qsizetype bufferSize() const
void setVolume(qreal volume)
qsizetype bytesReady() const
qint64 processedUSecs() const
QAudio::State state() const
\inmodule QtCore \reentrant
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
State
\value ActiveState Audio data is being processed, this state is set after start() is called and while...
Error
\value NoError No errors have occurred \value OpenError An error occurred opening the audio device \v...
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format