2018-11-14 Fred Gleason <fredg@paravelsystems.com>

* Added a '--metadata-cart=' switch to the 'audio_convert_test'
	test harness.
	* Added an 'audio_metadata_test' test harness.
	* Modified ID3 tag reading/writing to use TagLib.
This commit is contained in:
Fred Gleason
2018-11-14 14:40:44 -05:00
parent 8af01a466d
commit e8c619988f
21 changed files with 968 additions and 108 deletions

View File

@@ -22,6 +22,8 @@
#define RDAUDIOCONVERT_H
#include <sndfile.h>
#include <taglib/taglib.h>
#include <taglib/tpropertymap.h>
#ifdef HAVE_TWOLAME
#include <twolame.h>
#endif // HAVE_TWOLAME
@@ -98,6 +100,8 @@ class RDAudioConvert : public QObject
RDAudioConvert::ErrorCode Stage3Pcm24(SNDFILE *src_sf,SF_INFO *src_sf_info,
const QString &dstfile);
void ApplyId3Tag(const QString &filename,RDWaveData *wavedata);
void AddId3Property(TagLib::PropertyMap *map,
const QString &key,const QString &value) const;
void UpdatePeak(const float data[],ssize_t len);
void UpdatePeak(const double data[],ssize_t len);
bool LoadMad();