@@ -154,11 +154,6 @@ Java_com_mobileer_oboetester_NativeEngine_getCpuCount(JNIEnv *env, jclass type)
154154 return sysconf (_SC_NPROCESSORS_CONF);
155155}
156156
157- JNIEXPORT jboolean JNICALL
158- Java_com_mobileer_oboetester_NativeEngine_isHighPerformanceAudioSupported (JNIEnv *env, jclass type) {
159- return oboe::AdpfWrapper::isHighPerformanceAudioSupported ();
160- }
161-
162157JNIEXPORT void JNICALL
163158Java_com_mobileer_oboetester_NativeEngine_setCpuAffinityMask (JNIEnv *env,
164159 jclass type,
@@ -328,13 +323,6 @@ Java_com_mobileer_oboetester_TestAudioActivity_setUseAlternativeAdpf(JNIEnv *env
328323 oboe::AdpfWrapper::setUseAlternative (enabled);
329324}
330325
331- JNIEXPORT void JNICALL
332- Java_com_mobileer_oboetester_NativeEngine_setReportActualDurationDisabled (JNIEnv *env,
333- jclass type,
334- jboolean disabled) {
335- engine.getCurrentActivity ()->setReportActualDurationDisabled (disabled);
336- }
337-
338326JNIEXPORT jint JNICALL
339327Java_com_mobileer_oboetester_OboeAudioStream_setBufferSizeInFrames (
340328 JNIEnv *env, jobject, jint streamIndex, jint threshold) {
@@ -367,17 +355,6 @@ Java_com_mobileer_oboetester_OboeAudioStream_setPerformanceHintEnabled(
367355 }
368356}
369357
370- JNIEXPORT void JNICALL
371- Java_com_mobileer_oboetester_OboeAudioStream_setPerformanceHintConfig (
372- JNIEnv *env, jobject, jint streamIndex, jboolean highPerformance) {
373- std::shared_ptr<oboe::AudioStream> oboeStream = engine.getCurrentActivity ()->getStream (streamIndex);
374- if (oboeStream != nullptr ) {
375- oboe::PerformanceHintConfig cfg;
376- cfg.highPerformanceAudio = highPerformance;
377- oboeStream->setPerformanceHintConfig (cfg);
378- }
379- }
380-
381358JNIEXPORT jint JNICALL
382359Java_com_mobileer_oboetester_OboeAudioStream_getBufferCapacityInFrames (
383360 JNIEnv *env, jobject, jint streamIndex) {
@@ -1298,12 +1275,10 @@ JNIEXPORT jint JNICALL
12981275Java_com_mobileer_oboetester_AudioWorkloadTestActivity_start (JNIEnv *env, jobject thiz,
12991276 jint targetDurationMs, jint numBursts, jint numVoices, jint numAlternateVoices,
13001277 jint alternatingPeriodMs, jboolean adpfEnabled, jboolean adpfWorkloadIncreaseEnabled,
1301- jboolean hearWorkload, jboolean highPerformanceAudio,
1302- jboolean reportActualDurationDisabled) {
1278+ jboolean hearWorkload) {
13031279 return sAudioWorkload .start (targetDurationMs, numBursts, numVoices,
13041280 numAlternateVoices, alternatingPeriodMs, adpfEnabled,
1305- adpfWorkloadIncreaseEnabled, hearWorkload, highPerformanceAudio,
1306- reportActualDurationDisabled);
1281+ adpfWorkloadIncreaseEnabled, hearWorkload);
13071282}
13081283
13091284JNIEXPORT jint JNICALL
@@ -1553,14 +1528,10 @@ Java_com_mobileer_oboetester_AudioWorkloadTestRunnerActivity_start(JNIEnv *env,
15531528 jint alternatingPeriodMillis,
15541529 jboolean adpfEnabled,
15551530 jboolean adpfWorkloadIncreaseEnabled,
1556- jboolean hearWorkload,
1557- jboolean highPerformanceAudio,
1558- jboolean reportActualDurationDisabled) {
1559- int32_t result = sAudioWorkloadRunner .start (targetDurationMs, numBursts, numVoices,
1531+ jboolean hearWorkload) {
1532+ return sAudioWorkloadRunner .start (targetDurationMs, numBursts, numVoices,
15601533 alternateNumVoices, alternatingPeriodMillis, adpfEnabled,
1561- adpfWorkloadIncreaseEnabled, hearWorkload, highPerformanceAudio,
1562- reportActualDurationDisabled);
1563- return result;
1534+ adpfWorkloadIncreaseEnabled, hearWorkload);
15641535}
15651536
15661537JNIEXPORT jboolean JNICALL
0 commit comments