mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-11-21 09:34:48 +00:00
remove isUsingDSP
This commit is contained in:
@@ -154,9 +154,6 @@ public class AudioReactor implements AudioManager.OnAudioFocusChangeListener, An
|
|||||||
notifyAudioSessionUpdate(true, audioSessionId);
|
notifyAudioSessionUpdate(true, audioSessionId);
|
||||||
}
|
}
|
||||||
private void notifyAudioSessionUpdate(final boolean active, final int audioSessionId) {
|
private void notifyAudioSessionUpdate(final boolean active, final int audioSessionId) {
|
||||||
if (!PlayerHelper.isUsingDSP()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
final Intent intent = new Intent(active
|
final Intent intent = new Intent(active
|
||||||
? AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION
|
? AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION
|
||||||
: AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);
|
: AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);
|
||||||
|
|||||||
@@ -296,10 +296,6 @@ public final class PlayerHelper {
|
|||||||
AdaptiveTrackSelection.DEFAULT_BANDWIDTH_FRACTION);
|
AdaptiveTrackSelection.DEFAULT_BANDWIDTH_FRACTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isUsingDSP() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public static CaptionStyleCompat getCaptionStyle(@NonNull final Context context) {
|
public static CaptionStyleCompat getCaptionStyle(@NonNull final Context context) {
|
||||||
final CaptioningManager captioningManager = ContextCompat.getSystemService(context,
|
final CaptioningManager captioningManager = ContextCompat.getSystemService(context,
|
||||||
|
|||||||
Reference in New Issue
Block a user