mirror of https://github.com/mpv-player/mpv
ao_audiotrack: remove unused writeV23
The piece of code where it would make sense to use this never runs with API 21 or newer, so calling it there would be useless.
This commit is contained in:
parent
983e8f0100
commit
efebd50a6c
|
@ -92,7 +92,6 @@ struct JNIAudioTrack {
|
||||||
jmethodID pause;
|
jmethodID pause;
|
||||||
jmethodID write;
|
jmethodID write;
|
||||||
jmethodID writeFloat;
|
jmethodID writeFloat;
|
||||||
jmethodID writeV23;
|
|
||||||
jmethodID writeShortV23;
|
jmethodID writeShortV23;
|
||||||
jmethodID writeBufferV21;
|
jmethodID writeBufferV21;
|
||||||
jmethodID getBufferSizeInFramesV23;
|
jmethodID getBufferSizeInFramesV23;
|
||||||
|
@ -126,7 +125,6 @@ struct JNIAudioTrack {
|
||||||
{"android/media/AudioTrack", "pause", "()V", MP_JNI_METHOD, OFFSET(pause), 1},
|
{"android/media/AudioTrack", "pause", "()V", MP_JNI_METHOD, OFFSET(pause), 1},
|
||||||
{"android/media/AudioTrack", "write", "([BII)I", MP_JNI_METHOD, OFFSET(write), 1},
|
{"android/media/AudioTrack", "write", "([BII)I", MP_JNI_METHOD, OFFSET(write), 1},
|
||||||
{"android/media/AudioTrack", "write", "([FIII)I", MP_JNI_METHOD, OFFSET(writeFloat), 1},
|
{"android/media/AudioTrack", "write", "([FIII)I", MP_JNI_METHOD, OFFSET(writeFloat), 1},
|
||||||
{"android/media/AudioTrack", "write", "([BIII)I", MP_JNI_METHOD, OFFSET(writeV23), 0},
|
|
||||||
{"android/media/AudioTrack", "write", "([SIII)I", MP_JNI_METHOD, OFFSET(writeShortV23), 0},
|
{"android/media/AudioTrack", "write", "([SIII)I", MP_JNI_METHOD, OFFSET(writeShortV23), 0},
|
||||||
{"android/media/AudioTrack", "write", "(Ljava/nio/ByteBuffer;II)I", MP_JNI_METHOD, OFFSET(writeBufferV21), 1},
|
{"android/media/AudioTrack", "write", "(Ljava/nio/ByteBuffer;II)I", MP_JNI_METHOD, OFFSET(writeBufferV21), 1},
|
||||||
{"android/media/AudioTrack", "getBufferSizeInFrames", "()I", MP_JNI_METHOD, OFFSET(getBufferSizeInFramesV23), 0},
|
{"android/media/AudioTrack", "getBufferSizeInFrames", "()I", MP_JNI_METHOD, OFFSET(getBufferSizeInFramesV23), 0},
|
||||||
|
|
Loading…
Reference in New Issue