Mango FLAC decoder fails because of cannot retrieve channel/rate information from the file.
Seem like this file has broken FLAC header.
If we go to
http://xiph.org/flac/format.html we'll see that first METADATA_BLOCK must be with type STREAMINFO
STREAM | |
<32> | "fLaC", the FLAC stream marker in ASCII, meaning byte 0 of the stream is 0x66, followed by 0x4C 0x61 0x43 |
METADATA_BLOCK | This is the mandatory STREAMINFO metadata block that has the basic properties of the stream |
METADATA_BLOCK* | Zero or more metadata blocks |
metaflac --list ~/Downloads/09\ -\ Elderly\ Pair\ Beaten\ With\ Hammer.flac output
METADATA block #0
type: 6 (PICTURE)
is last: false
length: 250029
type: 3 (Cover (front))
MIME type: image/jpeg
description:
width: 900
height: 900
depth: 24
colors: 0 (unindexed)
data length: 249987
data:
00000000: FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 60 ......JFIF.....`
00000010: 00 60 00 00 FF E1 1D FC 45 78 69 66 00 00 49 49 .`......Exif..II
00000020: 2A 00 08 00 00 00 07 00 12 01 03 00 01 00 00 00 *...............
00000030: 00 00 00 00 1A 01 05 00 01 00 00
...
METADATA block #1
type: 0 (STREAMINFO)
is last: false
length: 34
minimum blocksize: 4096 samples
maximum blocksize: 4096 samples
minimum framesize: 5435 bytes
maximum framesize: 13097 bytes
sample_rate: 44100 Hz
channels: 2
bits-per-sample: 16
total samples: 5429376
MD5 signature: 3853e5aa985ac970c474526bb2267e44
STREAMINFO is the second one. The first one is PICTURE. It does not match the specification.
Anyway, I recode(decode/encode) this file using official tools:
flac -d ~/Downloads/09\ -\ Elderly\ Pair\ Beaten\ With\ Hammer.flac
flac -e -f ~/Downloads/09\ -\ Elderly\ Pair\ Beaten\ With\ Hammer.wav
and have the new file which works fine in Mango player because of the first metadata block is STREAMINFO:
metaflac --list ~/Downloads/09\ -\ Elderly\ Pair\ Beaten\ With\ Hammer.flac
METADATA block #0
type: 0 (STREAMINFO)
...
Conclusion, I'm sure most of PC players have workarounds for this situation(a header does not the specification a little bit) but seems like iBasso guys are not obliged to add this workaround to the Mango player.
Right now you can recode the album using some good tool which respects the specification.