opensles: Fix build with Android API level < 14

Headers were broken on older Android versions, apparently.

https://bugzilla.gnome.org/show_bug.cgi?id=744459
This commit is contained in:
Arun Raghavan 2015-06-12 18:08:44 +05:30
parent e3ed00e4eb
commit c7eb883e22
2 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,11 @@
#include "openslescommon.h"
#ifndef SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION
/* This was added in Android API level 14 */
#define SL_ANDROID_RECORDING_PRESET_VOICE_COMMUNICATION ((SLuint32) 0x00000004)
#endif
GType
gst_opensles_recording_preset_get_type (void)
{

View file

@ -25,6 +25,8 @@
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
/* This is needed explicitly for API level < 14 */
#include <SLES/OpenSLES_AndroidConfiguration.h>
G_BEGIN_DECLS