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
implement AudioTrack.pause()
This commit is contained in:
@@ -126,6 +126,7 @@ public class AudioTrack {
|
||||
public void pause() {
|
||||
System.out.println("calling AudioTrack.pause()\n");
|
||||
playbackState = PLAYSTATE_PAUSED;
|
||||
native_pause();
|
||||
}
|
||||
|
||||
public int getPlaybackHeadPosition() {
|
||||
@@ -133,5 +134,6 @@ public class AudioTrack {
|
||||
}
|
||||
|
||||
public native void native_play();
|
||||
public native void native_pause();
|
||||
private native int native_write(byte[] audioData, int offsetInBytes, int sizeInBytes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user