androidmedia: Add extern gint declarations

This commit is contained in:
Youness Alaoui 2013-01-07 18:19:28 -05:00 committed by Nicolas Dufresne
parent 81c07b54cd
commit 86f2535c41
3 changed files with 31 additions and 1 deletions

View file

@ -65,6 +65,16 @@ static struct
jint INFO_OUTPUT_BUFFERS_CHANGED;
} android_media_mediacodec;
gint MediaCodec_BUFFER_FLAG_SYNC_FRAME;
gint MediaCodec_BUFFER_FLAG_CODEC_CONFIG;
gint MediaCodec_BUFFER_FLAG_END_OF_STREAM;
gint MediaCodec_CONFIGURE_FLAG_ENCODE;
gint MediaCodec_INFO_TRY_AGAIN_LATER;
gint MediaCodec_INFO_OUTPUT_FORMAT_CHANGED;
gint MediaCodec_INFO_OUTPUT_BUFFERS_CHANGED;
static gboolean
_init_classes (void)
{

View file

@ -56,7 +56,7 @@ extern gint MediaCodec_BUFFER_FLAG_SYNC_FRAME;
extern gint MediaCodec_BUFFER_FLAG_CODEC_CONFIG;
extern gint MediaCodec_BUFFER_FLAG_END_OF_STREAM;
extern gint MediaCodec_CONFIGURE_FLAG_ENCODE;
extern gint MediaCodec_CONFIGURE_FLAG_ENCODE;
extern gint MediaCodec_INFO_TRY_AGAIN_LATER;
extern gint MediaCodec_INFO_OUTPUT_FORMAT_CHANGED;

View file

@ -74,6 +74,26 @@ static struct
jint CHANNEL_OUT_TOP_BACK_RIGHT;
} android_media_audioformat;
gint AudioFormat_CHANNEL_OUT_FRONT_LEFT;
gint AudioFormat_CHANNEL_OUT_FRONT_RIGHT;
gint AudioFormat_CHANNEL_OUT_FRONT_CENTER;
gint AudioFormat_CHANNEL_OUT_LOW_FREQUENCY;
gint AudioFormat_CHANNEL_OUT_BACK_LEFT;
gint AudioFormat_CHANNEL_OUT_BACK_RIGHT;
gint AudioFormat_CHANNEL_OUT_FRONT_LEFT_OF_CENTER;
gint AudioFormat_CHANNEL_OUT_FRONT_RIGHT_OF_CENTER;
gint AudioFormat_CHANNEL_OUT_BACK_CENTER;
gint AudioFormat_CHANNEL_OUT_SIDE_LEFT;
gint AudioFormat_CHANNEL_OUT_SIDE_RIGHT;
gint AudioFormat_CHANNEL_OUT_TOP_CENTER;
gint AudioFormat_CHANNEL_OUT_TOP_FRONT_LEFT;
gint AudioFormat_CHANNEL_OUT_TOP_FRONT_CENTER;
gint AudioFormat_CHANNEL_OUT_TOP_FRONT_RIGHT;
gint AudioFormat_CHANNEL_OUT_TOP_BACK_LEFT;
gint AudioFormat_CHANNEL_OUT_TOP_BACK_CENTER;
gint AudioFormat_CHANNEL_OUT_TOP_BACK_RIGHT;
static gboolean
_init_classes (void)
{