feat: refactor album art handling, implement progress bar display, and update application version to dev63
Some checks failed
Build (3DS) / build (push) Failing after 2m6s
Some checks failed
Build (3DS) / build (push) Failing after 2m6s
This commit is contained in:
@@ -109,10 +109,18 @@ void guiDisplayVersion(const char* version);
|
||||
void guiDrawText(gfxScreen_t screen, float x, float y, const char* text, u32 color, float scale);
|
||||
|
||||
/**
|
||||
* Display album art on top screen
|
||||
* Display progress bar on top screen
|
||||
*
|
||||
* \param metadata Pointer to metadata structure with album art
|
||||
* \param position Current position in seconds
|
||||
* \param duration Total duration in seconds
|
||||
*/
|
||||
void guiDisplayAlbumArt(struct metadata_t* metadata);
|
||||
void guiDisplayProgressBar(float position, float duration);
|
||||
|
||||
/**
|
||||
* Display current directory path on bottom screen
|
||||
*
|
||||
* \param path Current directory path
|
||||
*/
|
||||
void guiDisplayCurrentPath(const char* path);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* mice - 3DS Music Player
|
||||
* Copyright (C) 2016 Mahyar Koshkouei
|
||||
* Copyright (C) 2016 sillyangel
|
||||
*
|
||||
* This program comes with ABSOLUTELY NO WARRANTY and is free software. You are
|
||||
* welcome to redistribute it under certain conditions; for details see the
|
||||
@@ -13,7 +13,7 @@
|
||||
#define mice_main_h
|
||||
|
||||
/* Application version */
|
||||
#define MICE_VERSION "dev50"
|
||||
#define MICE_VERSION "dev63"
|
||||
|
||||
/* Default folder */
|
||||
#define DEFAULT_DIR "sdmc:/"
|
||||
|
||||
@@ -14,12 +14,7 @@ struct metadata_t
|
||||
char artist[METADATA_ARTIST_MAX];
|
||||
char album[METADATA_ALBUM_MAX];
|
||||
|
||||
/* Album art */
|
||||
uint8_t* albumArt;
|
||||
size_t albumArtSize;
|
||||
int albumArtWidth;
|
||||
int albumArtHeight;
|
||||
bool hasAlbumArt;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -46,11 +41,4 @@ void clearMetadata(struct metadata_t* metadata);
|
||||
*/
|
||||
void displayMetadata(struct metadata_t* metadata, const char* filename);
|
||||
|
||||
/**
|
||||
* Display album art on top screen if available
|
||||
*
|
||||
* \param metadata Pointer to metadata structure containing album art
|
||||
*/
|
||||
void displayAlbumArt(struct metadata_t* metadata);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user