![]() |
[SOLVED] No album-covers in DSF-files - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] No album-covers in DSF-files (/showthread.php?tid=5173) Pages:
1
2
|
RE: No album-covers in DSF-files - TheOldPresbyope - 11-04-2022 Be sure to account for the possibility that the value of the pointer can be zero (when there is no ID3v2 tag present). Regards, Kent RE: No album-covers in DSF-files - Nutul - 11-04-2022 (11-04-2022, 11:25 PM)TheOldPresbyope Wrote: Be sure to account for the possibility that the value of the pointer can be zero (when there is no ID3v2 tag present). In that case, the beginning of the tag will be assumed to be at offset 0, where there is no "ID3" string ("DSD " is there, instead), and the Zend library will fail as it does now, and produce no picture. Actually, now it fails exactly because it always looks for "ID3" at offset 0, where it is (seems to be so) supposed to be for the .mp3s Cheers, Al. RE: No album-covers in DSF-files - Tim Curtis - 11-05-2022 (11-04-2022, 10:58 PM)Nutul Wrote: @Gerardus , @Tim Curtis , @TheOldPresbyope Are you referring to the reader in Zend? RE: No album-covers in DSF-files - Nutul - 11-05-2022 (11-05-2022, 12:12 AM)Tim Curtis Wrote:(11-04-2022, 10:58 PM)Nutul Wrote: @Gerardus , @Tim Curtis , @TheOldPresbyope Exactly. and this is the dsd special case fix: Code: if ($this->_reader->read(4) != 'DSD ') { I'll prepare a PR tomorrow, sometime. RE: No album-covers in DSF-files - TheOldPresbyope - 11-05-2022 Nice. Regards, Kent RE: No album-covers in DSF-files - Tim Curtis - 11-05-2022 Whats the scope of the fix? Does it just address the way cover art is embedded in this particular DSD file? I don't want to modify Zend for edge cases. RE: No album-covers in DSF-files - TheOldPresbyope - 11-05-2022 As long as it finds the ID3v2 tag, if any is present, then it should be good. The DSF spec allows only for metadata in an ID3v2 tag in a DSD chunk. Regards, Kent RE: No album-covers in DSF-files - Nutul - 11-05-2022 (11-05-2022, 02:04 AM)Tim Curtis Wrote: Whats the scope of the fix? The fix is exclusively for the ID3v" tag handling. The fix DOES NOT assume the ID3 tag starts ALWAYS at ZERO_OFFSET (as Zend now does...) instead: If the FILE_TYPE is DSD, it searches for the location of the tag (which is specified in the file's header) AND starts searching for it THERE. If the FILE_TYPE is NOT DSD, then proceeds as it has always done, that is, starting to search for the tag at OFFSETY ZERO. This may allow for further handling of different file types, as long as we know their formats, and therefore might be able to locate the ID3 tag accordingly. Cheers, Al. RE: No album-covers in DSF-files - Tim Curtis - 11-05-2022 Ok, that makes sense. |