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:
Mis012
2024-04-12 18:32:30 +02:00
parent fefd2f108b
commit 2802aaa28d
42 changed files with 2171 additions and 77 deletions

View File

@@ -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;
}

View File

@@ -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);