@@ -982,28 +982,11 @@ class MainActivity : ComponentActivity() {
982982 var canUseSpeed = isPlaybackParamsSupported
983983 var canUsePitch = isPlaybackParamsSupported
984984
985- if (isOffload) {
986- canUsePitch = false // Pitch is always disabled in offload according to rules
987-
988- if (isMMap) {
989- canUseSpeed = when (fileSampleRate) {
990- 44100 -> true // Allowed as per testing
991- 48000 , 96000 -> true
992- else -> false // Default to false for safety
993- }
994- } else {
995- // Classic PCM Offload
996- canUseSpeed = when (fileSampleRate) {
997- 44100 , 48000 , 96000 -> true
998- else -> true // Default to true for Classic
999- }
1000- }
1001- }
985+ // For testing: allow everything except API 37 gate
986+ // The previous offload restrictions have been removed to test allowing everything.
1002987
1003988 Spacer (modifier = Modifier .height(16 .dp))
1004- val speedSupportText = if (! isPlaybackParamsSupported) " (Requires API 37)"
1005- else if (isOffload && ! canUseSpeed) " (Not supported for ${fileSampleRate/ 1000 } kHz in MMAP Offload)"
1006- else " "
989+ val speedSupportText = if (! isPlaybackParamsSupported) " (Requires API 37)" else " "
1007990 Text (
1008991 text = " Playback Speed: ${" %.2f" .format(playbackSpeed)} x$speedSupportText " ,
1009992 style = MaterialTheme .typography.bodyMedium,
@@ -1025,9 +1008,7 @@ class MainActivity : ComponentActivity() {
10251008 )
10261009
10271010 Spacer (modifier = Modifier .height(8 .dp))
1028- val pitchSupportText = if (! isPlaybackParamsSupported) " (Requires API 37)"
1029- else if (isOffload) " (Not supported in Offload mode)"
1030- else " "
1011+ val pitchSupportText = if (! isPlaybackParamsSupported) " (Requires API 37)" else " "
10311012 Text (
10321013 text = " Playback Pitch: ${" %.2f" .format(playbackPitch)} x$pitchSupportText " ,
10331014 style = MaterialTheme .typography.bodyMedium,
0 commit comments