mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1410456 - Allow OMT access to Android system audio properties. r=esawin
MozReview-Commit-ID: 4YkiuzNkNu5 --HG-- extra : rebase_source : 878486dabb87c8913fbb4c3b4002483158c467d4
This commit is contained in:
parent
915a55d779
commit
3f082b89d9
@ -1836,7 +1836,7 @@ public class GeckoAppShell
|
||||
return sScreenSize;
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
@WrapForJNI(calledFrom = "any")
|
||||
public static int getAudioOutputFramesPerBuffer() {
|
||||
if (SysInfo.getVersion() < 17) {
|
||||
return 0;
|
||||
@ -1853,7 +1853,7 @@ public class GeckoAppShell
|
||||
return Integer.parseInt(prop);
|
||||
}
|
||||
|
||||
@WrapForJNI(calledFrom = "gecko")
|
||||
@WrapForJNI(calledFrom = "any")
|
||||
public static int getAudioOutputSampleRate() {
|
||||
if (SysInfo.getVersion() < 17) {
|
||||
return 0;
|
||||
|
@ -814,7 +814,7 @@ public:
|
||||
static const mozilla::jni::ExceptionMode exceptionMode =
|
||||
mozilla::jni::ExceptionMode::ABORT;
|
||||
static const mozilla::jni::CallingThread callingThread =
|
||||
mozilla::jni::CallingThread::GECKO;
|
||||
mozilla::jni::CallingThread::ANY;
|
||||
static const mozilla::jni::DispatchTarget dispatchTarget =
|
||||
mozilla::jni::DispatchTarget::CURRENT;
|
||||
};
|
||||
@ -833,7 +833,7 @@ public:
|
||||
static const mozilla::jni::ExceptionMode exceptionMode =
|
||||
mozilla::jni::ExceptionMode::ABORT;
|
||||
static const mozilla::jni::CallingThread callingThread =
|
||||
mozilla::jni::CallingThread::GECKO;
|
||||
mozilla::jni::CallingThread::ANY;
|
||||
static const mozilla::jni::DispatchTarget dispatchTarget =
|
||||
mozilla::jni::DispatchTarget::CURRENT;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user