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
api-impl: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
@@ -8,6 +8,10 @@ public class AudioAttributes {
|
||||
|
||||
public class Builder {
|
||||
|
||||
public Builder setContentType(int content_type) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setUsage(int usage) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,20 @@ public class SoundPool {
|
||||
return nativePlay(nativePool, soundID);
|
||||
}
|
||||
|
||||
public class Builder {
|
||||
public Builder setAudioAttributes(AudioAttributes attributes) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setMaxStreams(int maxStreams) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public SoundPool build() {
|
||||
return new SoundPool(0, 0, 0); // FIXME
|
||||
}
|
||||
}
|
||||
|
||||
private static native long native_constructor();
|
||||
private static native int nativeLoad(long nativePool, String path);
|
||||
public static native int nativePlay(long nativePool, int soundID);
|
||||
|
||||
Reference in New Issue
Block a user