diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Input/in_mp3/MP3Info.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Input/in_mp3/MP3Info.h')
-rw-r--r-- | Src/Plugins/Input/in_mp3/MP3Info.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_mp3/MP3Info.h b/Src/Plugins/Input/in_mp3/MP3Info.h new file mode 100644 index 00000000..b161feeb --- /dev/null +++ b/Src/Plugins/Input/in_mp3/MP3Info.h @@ -0,0 +1,47 @@ +#ifndef NULLSOFT_IN_MP3_MP3_INFO_H +#define NULLSOFT_IN_MP3_MP3_INFO_H + +#include "Metadata.h" +#include <windows.h> + +class MP3Info +{ +public: + MP3Info(const wchar_t *fn); + + char mpeg_description[1024]; + + bool isOld(); + + void get_file_info(); + int write_id3v1(); + int remove_id3v1(); + void display_id3v1(HWND hwndDlg); + void get_id3v1_values(HWND hwndDlg); + void display_id3v2(HWND hwndDlg); + void get_id3v2_values(HWND hwndDlg); + void write_id3v2(HWND hwndDlg); + void do_enable_id3v1(HWND hwndDlg, int en); + void do_enable_id3v2(HWND hwndDlg, int en); + + BOOL CALLBACK id3Proc(HWND hwndDlg, UINT uMsg, WPARAM wParam,LPARAM lParam); + + int setExtendedFileInfoW(const char *data, wchar_t *val); + int writeExtendedFileInfo(); + + bool IsMe(const wchar_t *fn) + { + return !lstrcmpW(file, fn); + } +protected: + // Keep track of file timestamp for file system change notification handling + FILETIME last_write_time; + +private: + void SetField(const wchar_t *value, wchar_t *&v2, char *v1, size_t v1size); + Metadata metadata; + wchar_t file[MAX_PATH]; +}; + + +#endif
\ No newline at end of file |