8 #ifndef META_OCEAN_MEDIA_ANDROID_A_MICROPHONE_H
9 #define META_OCEAN_MEDIA_ANDROID_A_MICROPHONE_H
16 #include <SLES/OpenSLES_Android.h>
42 static constexpr SLuint32 numberBuffers_ = 4u;
97 static constexpr
size_t monoChunkElements();
106 AMicrophone(
const SLEngineItf& slEngineInterface,
const std::string& url);
153 SLObjectItf slRecorder_ =
nullptr;
156 SLRecordItf slRecordInterface_ =
nullptr;
159 SLAndroidSimpleBufferQueueItf slBufferQueueInterface_ =
nullptr;
165 SLAndroidEffectItf slAcousticEchoCancelEffect_ =
nullptr;
168 SLInterfaceID slAcousticEchoCancelerEffectImplementationId_ =
nullptr;
173 constexpr
size_t samplesPerSecondMono = 48000;
175 return samplesPerSecondMono / 50;
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15