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:
Eugen Sawin 2018-02-20 15:37:06 +02:00
parent 915a55d779
commit 3f082b89d9
2 changed files with 4 additions and 4 deletions

View File

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

View File

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