read/parse file tags

import audiofiles
This commit is contained in:
2026-06-16 09:03:57 +02:00
parent 293756cf1f
commit 31d7453a50
11 changed files with 25 additions and 6 deletions
+4 -2
View File
@@ -1,5 +1,6 @@
#include "include/Tag.h"
#include "include/File.h"
//#include "include/Metadata.h"
//#include <filesystem>
#include <iostream>
@@ -9,10 +10,10 @@
//namespace fs = std::filesystem;
int main() {
File file;
Tag tag;
File file;
//fs::path folderPath{ "data" };
file.importFolder( "/home/fegger/Projects/soundServe/data/" );
file.importFolder( "/home/fegger/Code/projects/soundServe/data/" );
for ( auto& fp : file.filenames_) {
std::cout << fp << "\n";
}
@@ -29,6 +30,7 @@ int main() {
<< "\nGenre: " << meta.genre
<< "\nSamplerate: " << meta.sampleRate
<< "\nBitrate: " << meta.bitRate
<< "\nFormat: " << meta.format
<< "\nLength: " << meta.length;
std::cout << "\n----------------------------------------------------------------------\n";
}