#ifndef TAGAUDIO_H
#define TAGAUDIO_H
#include <QString>
#include "fileref.h"
#include "tag.h"
#include "tbytevector.h"
#include "taglib_export.h"
class TagAudio
{
private:
protected:
public:
TagAudio();
void Iniciar(const char *file );
};
#endif // TAGAUDIO_H
#include <iostream>
#include <stdio.h>
#include <QDebug>
#include <QString>
#include <QMessageBox>
#include <QByteArray>
#include <QFile>
#include "fileref.h"
#include "tag.h"
#include "tbytevector.h"
#include "TagAudio.h"
#include "taglib_export.h"
using namespace std;
TagAudio::TagAudio()
{
}
void TagAudio::Iniciar(const char *file){
TagLib::FileRef tagFile(file);
if(!tagFile.isNull()){
TagNombre=TStringToQString(tagFile.tag()->album()); // causes CRASH application ?
qDebug() << "salida" << TStringToQString(tagFile.tag()->album()); //perfect start
}
}
#ifndef TAGAUDIO_H
#define TAGAUDIO_H
#include <QString>
#include "fileref.h"
#include "tag.h"
#include "tbytevector.h"
#include "taglib_export.h"
class TagAudio
{
private:
protected:
public:
TagAudio();
void Iniciar(const char *file );
QString TagNombre;
};
#endif // TAGAUDIO_H
#include <iostream>
#include <stdio.h>
#include <QDebug>
#include <QString>
#include <QMessageBox>
#include <QByteArray>
#include <QFile>
#include "fileref.h"
#include "tag.h"
#include "tbytevector.h"
#include "TagAudio.h"
#include "taglib_export.h"
using namespace std;
TagAudio::TagAudio()
{
}
void TagAudio::Iniciar(const char *file){
TagLib::FileRef tagFile(file);
if(!tagFile.isNull()){
TagNombre=TStringToQString(tagFile.tag()->album()); // causes CRASH application ?
qDebug() << "salida" << TStringToQString(tagFile.tag()->album()); //perfect start
}
}
To copy to clipboard, switch view to plain text mode
TagNombre=TStringToQString(tagFile.tag()->album()); // causes CRASH application ?
Bookmarks