Refactor metadata and internal data structures

Replace Metadata.h with Containers.h, introducing a HashTable
implementation with SIMD acceleration and specialized track tracking.
Cleanup PlayerEngine logic by merging it into the playback flow and
refactoring several internal API signatures.
This commit is contained in:
2026-06-20 22:04:26 +02:00
parent 80bffc0fdd
commit 20c0f9744f
14 changed files with 345 additions and 162 deletions
+7 -7
View File
@@ -1,22 +1,22 @@
#pragma once
#include "Containers.h"
#include <filesystem>
#include <vector>
#include <string>
#define MUSIC_FOLDER = {"data/"};
namespace fs = std::filesystem;
class File {
public:
void importFile( std::string fileName );
void importFolder( std::string folderPath );
std::vector<std::string> filenames_;
void importFolder( const std::string& folderPath, std::vector<Track>& tracks );
void readFileTag( const char* fileName );
std::string parseFiletype( const std::string& path );
private:
std::string path_;
fs::path musicFolder_ MUSIC_FOLDER;
fs::path musicFolder_ = "data/";
std::string fileName_;
fs::path fp_ = musicFolder_ / fileName_;
};
std::string_view parseFiletype( std::string_view path );