TrueAudio support.

This is last of the three formats implemented for libtunepimp, now used also by various players.

BUG:114982


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@735116 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2007-11-10 22:55:14 +00:00
parent 2462905fe0
commit 049f77f0d9
15 changed files with 758 additions and 5 deletions

View File

@ -9,6 +9,7 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../../taglib
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/mpeg/id3v2
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/wavpack
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/speex
${CMAKE_CURRENT_SOURCE_DIR}/../../taglib/trueaudio
)

View File

@ -10,6 +10,7 @@ INCLUDES = \
-I$(top_srcdir)/taglib/mpeg/id3v2 \
-I$(top_srcdir)/taglib/wavpack \
-I$(top_srcdir)/taglib/speex \
-I$(top_srcdir)/taglib/trueaudio \
$(all_includes)
lib_LTLIBRARIES = libtag_c.la

View File

@ -31,6 +31,7 @@
#include <mpcfile.h>
#include <wavpackfile.h>
#include <speexfile.h>
#include <trueaudiofile.h>
#include <tag.h>
#include <string.h>
#include <id3v2framefactory.h>
@ -77,6 +78,8 @@ TagLib_File *taglib_file_new_type(const char *filename, TagLib_File_Type type)
return reinterpret_cast<TagLib_File *>(new WavPack::File(filename));
case TagLib_File_Speex:
return reinterpret_cast<TagLib_File *>(new Speex::File(filename));
case TagLib_File_TrueAudio:
return reinterpret_cast<TagLib_File *>(new TrueAudio::File(filename));
}
return 0;

View File

@ -88,7 +88,8 @@ typedef enum {
TagLib_File_MPC,
TagLib_File_OggFlac,
TagLib_File_WavPack,
TagLib_File_Speex
TagLib_File_Speex,
TagLib_File_TrueAudio
} TagLib_File_Type;
/*!