You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Add more AudioTrack APIs needed for exoplayer.
Also fix compiler warnings
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#undef android_media_AudioTrack_PLAYSTATE_STOPPED
|
||||
#define android_media_AudioTrack_PLAYSTATE_STOPPED 1L
|
||||
#undef android_media_AudioTrack_PLAYSTATE_PAUSED
|
||||
#define android_media_AudioTrack_PLAYSTATE_PAUSED 2L
|
||||
#undef android_media_AudioTrack_PLAYSTATE_PLAYING
|
||||
#define android_media_AudioTrack_PLAYSTATE_PLAYING 3L
|
||||
/*
|
||||
* Class: android_media_AudioTrack
|
||||
* Method: native_constructor
|
||||
@@ -25,18 +31,18 @@ JNIEXPORT jint JNICALL Java_android_media_AudioTrack_getMinBufferSize
|
||||
|
||||
/*
|
||||
* Class: android_media_AudioTrack
|
||||
* Method: play
|
||||
* Method: native_play
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_media_AudioTrack_play
|
||||
JNIEXPORT void JNICALL Java_android_media_AudioTrack_native_1play
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_media_AudioTrack
|
||||
* Method: write
|
||||
* Method: native_write
|
||||
* Signature: ([BII)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_media_AudioTrack_write
|
||||
JNIEXPORT jint JNICALL Java_android_media_AudioTrack_native_1write
|
||||
(JNIEnv *, jobject, jbyteArray, jint, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user