mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Suppress lint warning about wrong IntDef assignment.
The return values of AudioManager.getPlaybackOffloadSupport are the same as the values defined in C.AudioManagerOffloadMode. PiperOrigin-RevId: 406817413
This commit is contained in:
parent
99ace2dbb1
commit
665910ab76
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ package androidx.media3.exoplayer.audio;
|
|||
import static java.lang.Math.max;
|
||||
import static java.lang.Math.min;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.media.AudioFormat;
|
||||
import android.media.AudioManager;
|
||||
import android.media.AudioTrack;
|
||||
|
|
@ -1643,6 +1644,8 @@ public final class DefaultAudioSink implements AudioSink {
|
|||
}
|
||||
|
||||
@RequiresApi(29)
|
||||
// Return values of AudioManager.getPlaybackOffloadSupport are equal to C.AudioManagerOffloadMode.
|
||||
@SuppressLint("WrongConstant")
|
||||
@C.AudioManagerOffloadMode
|
||||
private int getOffloadedPlaybackSupport(
|
||||
AudioFormat audioFormat, android.media.AudioAttributes audioAttributes) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue