Fixed downmixing if service is not bound
This commit is contained in:
parent
570b5d47ae
commit
b081e320e3
@ -502,16 +502,6 @@ public class PlaybackController {
|
|||||||
PlaybackServiceMediaPlayer.PSMPInfo info = playbackService.getPSMPInfo();
|
PlaybackServiceMediaPlayer.PSMPInfo info = playbackService.getPSMPInfo();
|
||||||
status = info.playerStatus;
|
status = info.playerStatus;
|
||||||
media = info.playable;
|
media = info.playable;
|
||||||
/*
|
|
||||||
if (media == null) {
|
|
||||||
Log.w(TAG,
|
|
||||||
"PlaybackService has no media object. Trying to restore last played media.");
|
|
||||||
Intent serviceIntent = getPlayLastPlayedMediaIntent();
|
|
||||||
if (serviceIntent != null) {
|
|
||||||
ContextCompat.startForegroundService(activity, serviceIntent);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
onServiceQueried();
|
onServiceQueried();
|
||||||
|
|
||||||
setupGUI();
|
setupGUI();
|
||||||
@ -719,7 +709,8 @@ public class PlaybackController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canDownmix() {
|
public boolean canDownmix() {
|
||||||
return playbackService != null && playbackService.canDownmix();
|
return (playbackService != null && playbackService.canDownmix())
|
||||||
|
|| UserPreferences.useSonic();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDownmix(boolean enable) {
|
public void setDownmix(boolean enable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user