read/parse file tags
import audiofiles
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user