playback: use ffmpeg first
Always decode with ffmpeg before decoding with MediaCodec. MediaCodec is unreliable on some devices in such a way as to cause a full loading failure on them. Prevent this by using ffmpeg.
This commit is contained in:
parent
bf1cbad1da
commit
cd42c77304
2 changed files with 6 additions and 2 deletions
|
@ -10,6 +10,10 @@
|
||||||
- Albums linked to an artist only as a collaborator are no longer included
|
- Albums linked to an artist only as a collaborator are no longer included
|
||||||
in an artist's album count
|
in an artist's album count
|
||||||
|
|
||||||
|
#### What's Fixed
|
||||||
|
- Fixed certain FLAC files failing to play on some devices
|
||||||
|
|
||||||
|
|
||||||
## 3.2.1
|
## 3.2.1
|
||||||
|
|
||||||
#### What's Improved
|
#### What's Improved
|
||||||
|
|
|
@ -121,14 +121,14 @@ class PlaybackService :
|
||||||
// battery/apk size/cache size
|
// battery/apk size/cache size
|
||||||
val audioRenderer = RenderersFactory { handler, _, audioListener, _, _ ->
|
val audioRenderer = RenderersFactory { handler, _, audioListener, _, _ ->
|
||||||
arrayOf(
|
arrayOf(
|
||||||
|
FfmpegAudioRenderer(handler, audioListener, replayGainProcessor),
|
||||||
MediaCodecAudioRenderer(
|
MediaCodecAudioRenderer(
|
||||||
this,
|
this,
|
||||||
MediaCodecSelector.DEFAULT,
|
MediaCodecSelector.DEFAULT,
|
||||||
handler,
|
handler,
|
||||||
audioListener,
|
audioListener,
|
||||||
AudioCapabilities.DEFAULT_AUDIO_CAPABILITIES,
|
AudioCapabilities.DEFAULT_AUDIO_CAPABILITIES,
|
||||||
replayGainProcessor),
|
replayGainProcessor))
|
||||||
FfmpegAudioRenderer(handler, audioListener, replayGainProcessor))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
player =
|
player =
|
||||||
|
|
Loading…
Reference in a new issue