Starting to switch Metadata portion to c++. Switching from TagLibSharp to Taglib (c++)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "metadata_retriever.h"
|
||||
|
||||
Song fetch_metadata(const char *song_path)
|
||||
{
|
||||
Song sng;
|
||||
std::string title = "ddd";
|
||||
sng.Title = (char*)title.c_str();
|
||||
sng.SongPath = (char*)song_path;
|
||||
|
||||
return sng;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
Song retrieve_metadata(const char*);
|
||||
|
||||
Song retrieve_metadata(const char* song_path)
|
||||
{
|
||||
return fetch_metadata(song_path);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user