mirror of
https://github.com/taglib/taglib.git
synced 2025-07-17 20:44:20 -04:00
Add MPC to the C bindings.
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@331317 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -5,6 +5,7 @@ INCLUDES = \
|
||||
-I$(top_srcdir)/taglib/ogg \
|
||||
-I$(top_srcdir)/taglib/ogg/vorbis \
|
||||
-I$(top_srcdir)/taglib/flac \
|
||||
-I$(top_srcdir)/taglib/mpc \
|
||||
$(all_includes)
|
||||
|
||||
lib_LTLIBRARIES = libtag_c.la
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <vorbisfile.h>
|
||||
#include <mpegfile.h>
|
||||
#include <flacfile.h>
|
||||
#include <mpcfile.h>
|
||||
#include <tag.h>
|
||||
|
||||
namespace TagLib
|
||||
@ -65,6 +66,8 @@ TagLib_File *taglib_file_new_type(const char *filename, TagLib_File_Type type)
|
||||
return reinterpret_cast<TagLib_File *>(new Vorbis::File(filename));
|
||||
case TagLib_File_FLAC:
|
||||
return reinterpret_cast<TagLib_File *>(new FLAC::File(filename));
|
||||
case TagLib_File_MPC:
|
||||
return reinterpret_cast<TagLib_File *>(new MPC::File(filename));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -74,7 +74,8 @@ void taglib_set_string_management_enabled(BOOL management);
|
||||
typedef enum {
|
||||
TagLib_File_MPEG,
|
||||
TagLib_File_OggVorbis,
|
||||
TagLib_File_FLAC
|
||||
TagLib_File_FLAC,
|
||||
TagLib_File_MPC
|
||||
} TagLib_File_Type;
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user