feat(files): launch MP3 player from file explorer, 28p header cache

- SupportedFiles: isSupportedAudioFile (.mp3/.wav/.ogg/.flac)
- View::viewFile: audio files start one.tactility.mp3player with
  file=<path> argv (CurrentAppCompat parses key=value pairs)
- es3c28p: add CONFIG_LV_IMAGE_HEADER_CACHE_DEF_CNT=16 for parity
  with es3c35p
This commit is contained in:
Adolfo Reyna
2026-09-12 00:01:13 -04:00
parent 4b7f82c38f
commit 87c82f5314
4 changed files with 20 additions and 0 deletions
@@ -26,4 +26,12 @@ bool isSupportedTextFile(const std::string& filename) {
filename_lower.ends_with(".properties");
}
bool isSupportedAudioFile(const std::string& filename) {
std::string filename_lower = string::lowercase(filename);
return filename_lower.ends_with(".mp3") ||
filename_lower.ends_with(".wav") ||
filename_lower.ends_with(".ogg") ||
filename_lower.ends_with(".flac");
}
} // namespace tt::app::filebrowser