summaryrefslogtreecommitdiffstats
path: root/src/plugins/opensles/qopenslesengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/opensles/qopenslesengine.h')
-rw-r--r--src/plugins/opensles/qopenslesengine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/opensles/qopenslesengine.h b/src/plugins/opensles/qopenslesengine.h
index 0c2042f50..cbc3ca115 100644
--- a/src/plugins/opensles/qopenslesengine.h
+++ b/src/plugins/opensles/qopenslesengine.h
@@ -45,6 +45,8 @@ QT_BEGIN_NAMESPACE
class QOpenSLESEngine
{
public:
+ enum OutputValue { FramesPerBuffer, SampleRate };
+
QOpenSLESEngine();
~QOpenSLESEngine();
@@ -58,6 +60,12 @@ public:
QList<int> supportedChannelCounts(QAudio::Mode mode) const;
QList<int> supportedSampleRates(QAudio::Mode mode) const;
+ 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();
+
private:
void checkSupportedInputFormats();
bool inputFormatIsSupported(SLDataFormat_PCM format);