Skip to content
Snippets Groups Projects
Commit f323ec58 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

opensl: fix build on older android-platforms

Change-Id: Ie75b4d92ad1e6e616b8ab06a2325cf3f8f8a47fa
Refs: #46972
parent ec9c4689
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,13 @@ ...@@ -44,6 +44,13 @@
#include <cassert> #include <cassert>
#include <unistd.h> #include <unistd.h>
#include "SLES/OpenSLES_AndroidConfiguration.h"
/* available only from api 14 */
#ifndef SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION
#define SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION ((SLuint32) 0x00000004)
#endif
const int OpenSLLayer::NB_BUFFER_PLAYBACK_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH; const int OpenSLLayer::NB_BUFFER_PLAYBACK_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH;
const int OpenSLLayer::NB_BUFFER_CAPTURE_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH; const int OpenSLLayer::NB_BUFFER_CAPTURE_QUEUE = ANDROID_BUFFER_QUEUE_LENGTH;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment