Fixed build with TagLib 1.x
This commit is contained in:
@@ -162,8 +162,10 @@ namespace lms::audio::taglib
|
|||||||
if ((properties.version() == TagLib::MPEG::Header::Version::Version1 || properties.version() == TagLib::MPEG::Header::Version::Version2 || properties.version() == TagLib::MPEG::Header::Version::Version2_5)
|
if ((properties.version() == TagLib::MPEG::Header::Version::Version1 || properties.version() == TagLib::MPEG::Header::Version::Version2 || properties.version() == TagLib::MPEG::Header::Version::Version2_5)
|
||||||
&& mpegFile->audioProperties()->layer() == 3)
|
&& mpegFile->audioProperties()->layer() == 3)
|
||||||
audioProperties.codec = CodecType::MP3; // could be MPEG-1 layer 3 or MPEG-2(.5) layer 3
|
audioProperties.codec = CodecType::MP3; // could be MPEG-1 layer 3 or MPEG-2(.5) layer 3
|
||||||
|
#if LMS_TAGLIB_HAS_ADTS
|
||||||
else if (mpegFile->audioProperties()->isADTS()) // likely AAC
|
else if (mpegFile->audioProperties()->isADTS()) // likely AAC
|
||||||
audioProperties.codec = CodecType::AAC;
|
audioProperties.codec = CodecType::AAC;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if (dynamic_cast<const ::TagLib::Ogg::Opus::File*>(&file))
|
else if (dynamic_cast<const ::TagLib::Ogg::Opus::File*>(&file))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#if (TAGLIB_MAJOR_VERSION >= 2)
|
#if (TAGLIB_MAJOR_VERSION >= 2)
|
||||||
#define LMS_TAGLIB_HAS_DSF 1
|
#define LMS_TAGLIB_HAS_DSF 1
|
||||||
|
#define LMS_TAGLIB_HAS_ADTS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// LMS_TAGLIB_HAS_MP4_ITEM_TYPE if version >= 2.0.1
|
// LMS_TAGLIB_HAS_MP4_ITEM_TYPE if version >= 2.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user