taglib-ruby 1.1.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +15 -11
- data/docs/taglib/mpeg.rb +1 -9
- data/ext/extconf_common.rb +21 -12
- data/ext/taglib_aiff/taglib_aiff.i +4 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +222 -59
- data/ext/taglib_base/includes.i +14 -14
- data/ext/taglib_base/taglib_base.i +21 -0
- data/ext/taglib_base/taglib_base_wrap.cxx +289 -350
- data/ext/taglib_flac/taglib_flac.i +7 -3
- data/ext/taglib_flac/taglib_flac_wrap.cxx +233 -336
- data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +125 -71
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +92 -51
- data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +524 -414
- data/ext/taglib_mp4/taglib_mp4.i +21 -18
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2062 -1467
- data/ext/taglib_mpeg/taglib_mpeg.i +5 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +414 -300
- data/ext/taglib_ogg/taglib_ogg.i +0 -2
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +44 -42
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +27 -48
- data/ext/taglib_wav/taglib_wav.i +5 -2
- data/ext/taglib_wav/taglib_wav_wrap.cxx +179 -89
- data/lib/taglib/version.rb +3 -3
- data/tasks/ext.rake +23 -39
- data/tasks/swig.rake +14 -4
- data/test/id3v2_write_test.rb +1 -1
- data/test/wav_examples_test.rb +1 -1
- data/test/wav_file_test.rb +1 -1
- data/test/wav_file_write_test.rb +6 -6
- metadata +3 -3
@@ -1861,17 +1861,19 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1861
1861
|
#define SWIGTYPE_p_TagLib__MP4__CoverArtList swig_types[5]
|
1862
1862
|
#define SWIGTYPE_p_TagLib__MP4__File swig_types[6]
|
1863
1863
|
#define SWIGTYPE_p_TagLib__MP4__Item swig_types[7]
|
1864
|
-
#define
|
1865
|
-
#define
|
1866
|
-
#define
|
1867
|
-
#define
|
1868
|
-
#define
|
1869
|
-
#define
|
1870
|
-
#define
|
1871
|
-
#define
|
1872
|
-
#define
|
1873
|
-
|
1874
|
-
|
1864
|
+
#define SWIGTYPE_p_TagLib__MP4__ItemFactory swig_types[8]
|
1865
|
+
#define SWIGTYPE_p_TagLib__MP4__Properties swig_types[9]
|
1866
|
+
#define SWIGTYPE_p_TagLib__MP4__Tag swig_types[10]
|
1867
|
+
#define SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t swig_types[11]
|
1868
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[12]
|
1869
|
+
#define SWIGTYPE_p_char swig_types[13]
|
1870
|
+
#define SWIGTYPE_p_long_long swig_types[14]
|
1871
|
+
#define SWIGTYPE_p_unsigned_char swig_types[15]
|
1872
|
+
#define SWIGTYPE_p_unsigned_int swig_types[16]
|
1873
|
+
#define SWIGTYPE_p_unsigned_long swig_types[17]
|
1874
|
+
#define SWIGTYPE_p_wchar_t swig_types[18]
|
1875
|
+
static swig_type_info *swig_types[20];
|
1876
|
+
static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
|
1875
1877
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1876
1878
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1877
1879
|
|
@@ -1946,8 +1948,6 @@ template <typename T> T SwigValueInit() {
|
|
1946
1948
|
#include <taglib/mp4properties.h>
|
1947
1949
|
#include <taglib/mp4tag.h>
|
1948
1950
|
#include <taglib/mp4atom.h>
|
1949
|
-
// To resolve some symbols, like AtomDataType in Item.
|
1950
|
-
using namespace TagLib::MP4;
|
1951
1951
|
|
1952
1952
|
|
1953
1953
|
#include <taglib/tstring.h>
|
@@ -1968,34 +1968,26 @@ using namespace TagLib::MP4;
|
|
1968
1968
|
#endif
|
1969
1969
|
|
1970
1970
|
VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
1971
|
-
|
1972
|
-
return Qnil;
|
1973
|
-
} else {
|
1974
|
-
return rb_str_new(byteVector.data(), byteVector.size());
|
1975
|
-
}
|
1971
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1976
1972
|
}
|
1977
1973
|
|
1978
1974
|
TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
1979
1975
|
if (NIL_P(s)) {
|
1980
|
-
return TagLib::ByteVector
|
1976
|
+
return TagLib::ByteVector();
|
1981
1977
|
} else {
|
1982
1978
|
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1983
1979
|
}
|
1984
1980
|
}
|
1985
1981
|
|
1986
1982
|
VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
VALUE result = rb_str_new2(string.toCString(true));
|
1991
|
-
ASSOCIATE_UTF8_ENCODING(result);
|
1992
|
-
return result;
|
1993
|
-
}
|
1983
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1984
|
+
ASSOCIATE_UTF8_ENCODING(result);
|
1985
|
+
return result;
|
1994
1986
|
}
|
1995
1987
|
|
1996
1988
|
TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
1997
1989
|
if (NIL_P(s)) {
|
1998
|
-
return TagLib::String
|
1990
|
+
return TagLib::String();
|
1999
1991
|
} else {
|
2000
1992
|
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
2001
1993
|
}
|
@@ -2084,6 +2076,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
|
|
2084
2076
|
#endif
|
2085
2077
|
}
|
2086
2078
|
|
2079
|
+
VALUE taglib_offset_t_to_ruby_int(TagLib::offset_t off) {
|
2080
|
+
#ifdef _WIN32
|
2081
|
+
return LL2NUM(off);
|
2082
|
+
#else
|
2083
|
+
return OFFT2NUM(off);
|
2084
|
+
#endif
|
2085
|
+
}
|
2087
2086
|
|
2088
2087
|
|
2089
2088
|
static void unlink_taglib_mp4_item_map_iterator(const TagLib::MP4::ItemMap::ConstIterator &it) {
|
@@ -2154,7 +2153,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2154
2153
|
}
|
2155
2154
|
|
2156
2155
|
|
2157
|
-
/*@SWIG:/
|
2156
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2158
2157
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2159
2158
|
{
|
2160
2159
|
VALUE *args = (VALUE *)arg;
|
@@ -2207,20 +2206,6 @@ SWIG_From_bool (bool value)
|
|
2207
2206
|
}
|
2208
2207
|
|
2209
2208
|
|
2210
|
-
SWIGINTERNINLINE VALUE
|
2211
|
-
SWIG_From_unsigned_SS_long (unsigned long value)
|
2212
|
-
{
|
2213
|
-
return ULONG2NUM(value);
|
2214
|
-
}
|
2215
|
-
|
2216
|
-
|
2217
|
-
SWIGINTERNINLINE VALUE
|
2218
|
-
SWIG_From_unsigned_SS_int (unsigned int value)
|
2219
|
-
{
|
2220
|
-
return SWIG_From_unsigned_SS_long (value);
|
2221
|
-
}
|
2222
|
-
|
2223
|
-
|
2224
2209
|
SWIGINTERN swig_type_info*
|
2225
2210
|
SWIG_pchar_descriptor(void)
|
2226
2211
|
{
|
@@ -2271,7 +2256,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2271
2256
|
|
2272
2257
|
|
2273
2258
|
|
2274
|
-
/*@SWIG:/
|
2259
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2275
2260
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2276
2261
|
{
|
2277
2262
|
VALUE *args = (VALUE *)arg;
|
@@ -2302,47 +2287,31 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
2302
2287
|
|
2303
2288
|
|
2304
2289
|
SWIGINTERN int
|
2305
|
-
|
2290
|
+
SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
2306
2291
|
{
|
2307
2292
|
unsigned long v;
|
2308
2293
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
2309
2294
|
if (SWIG_IsOK(res)) {
|
2310
|
-
if ((v >
|
2295
|
+
if ((v > UCHAR_MAX)) {
|
2311
2296
|
return SWIG_OverflowError;
|
2312
2297
|
} else {
|
2313
|
-
if (val) *val = static_cast< unsigned
|
2298
|
+
if (val) *val = static_cast< unsigned char >(v);
|
2314
2299
|
}
|
2315
2300
|
}
|
2316
2301
|
return res;
|
2317
2302
|
}
|
2318
2303
|
|
2319
|
-
SWIGINTERN VALUE TagLib_MP4_Tag___setitem__(TagLib::MP4::Tag *self,TagLib::String const &string,TagLib::MP4::Item const &item){
|
2320
|
-
TagLib::MP4::ItemMap::ConstIterator it = self->itemMap().find(string);
|
2321
|
-
if (it != self->itemMap().end()) {
|
2322
|
-
unlink_taglib_mp4_item_map_iterator(it);
|
2323
|
-
}
|
2324
|
-
self->setItem(string, item);
|
2325
|
-
return Qnil;
|
2326
|
-
}
|
2327
|
-
SWIGINTERN VALUE TagLib_MP4_Tag_remove_item(TagLib::MP4::Tag *self,TagLib::String const &string){
|
2328
|
-
TagLib::MP4::ItemMap::ConstIterator it = self->itemMap().find(string);
|
2329
|
-
if (it != self->itemMap().end()) {
|
2330
|
-
unlink_taglib_mp4_item_map_iterator(it);
|
2331
|
-
self->removeItem(string);
|
2332
|
-
}
|
2333
|
-
return Qnil;
|
2334
|
-
}
|
2335
2304
|
|
2336
2305
|
SWIGINTERN int
|
2337
|
-
|
2306
|
+
SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
2338
2307
|
{
|
2339
2308
|
unsigned long v;
|
2340
2309
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
2341
2310
|
if (SWIG_IsOK(res)) {
|
2342
|
-
if ((v >
|
2311
|
+
if ((v > UINT_MAX)) {
|
2343
2312
|
return SWIG_OverflowError;
|
2344
2313
|
} else {
|
2345
|
-
if (val) *val = static_cast< unsigned
|
2314
|
+
if (val) *val = static_cast< unsigned int >(v);
|
2346
2315
|
}
|
2347
2316
|
}
|
2348
2317
|
return res;
|
@@ -2355,7 +2324,7 @@ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
|
2355
2324
|
|
2356
2325
|
|
2357
2326
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2358
|
-
/*@SWIG:/
|
2327
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2359
2328
|
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2360
2329
|
{
|
2361
2330
|
VALUE *args = (VALUE *)arg;
|
@@ -2406,6 +2375,13 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
2406
2375
|
}
|
2407
2376
|
|
2408
2377
|
|
2378
|
+
SWIGINTERNINLINE VALUE
|
2379
|
+
SWIG_From_unsigned_SS_long (unsigned long value)
|
2380
|
+
{
|
2381
|
+
return ULONG2NUM(value);
|
2382
|
+
}
|
2383
|
+
|
2384
|
+
|
2409
2385
|
SWIGINTERNINLINE VALUE
|
2410
2386
|
SWIG_From_unsigned_SS_char (unsigned char value)
|
2411
2387
|
{
|
@@ -2413,6 +2389,13 @@ SWIG_From_unsigned_SS_char (unsigned char value)
|
|
2413
2389
|
}
|
2414
2390
|
|
2415
2391
|
|
2392
|
+
SWIGINTERNINLINE VALUE
|
2393
|
+
SWIG_From_unsigned_SS_int (unsigned int value)
|
2394
|
+
{
|
2395
|
+
return SWIG_From_unsigned_SS_long (value);
|
2396
|
+
}
|
2397
|
+
|
2398
|
+
|
2416
2399
|
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2417
2400
|
SWIGINTERNINLINE VALUE
|
2418
2401
|
SWIG_From_long_SS_long (long long value)
|
@@ -2445,9 +2428,6 @@ SWIGINTERN TagLib::MP4::Item *TagLib_MP4_Item_from_cover_art_list(TagLib::MP4::C
|
|
2445
2428
|
SWIGINTERN TagLib::MP4::Item *TagLib_MP4_Item_from_byte_vector_list(TagLib::ByteVectorList const &byte_vector_list){
|
2446
2429
|
return new TagLib::MP4::Item(byte_vector_list);
|
2447
2430
|
}
|
2448
|
-
SWIGINTERN void TagLib_MP4_File_close(TagLib::MP4::File *self){
|
2449
|
-
free_taglib_mp4_file(self);
|
2450
|
-
}
|
2451
2431
|
SWIGINTERN VALUE TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg__to_a(TagLib::Map< TagLib::String,TagLib::MP4::Item > *self){
|
2452
2432
|
VALUE ary = rb_ary_new2(self->size());
|
2453
2433
|
for (TagLib::MP4::ItemMap::Iterator it = self->begin(); it != self->end(); it++) {
|
@@ -2501,6 +2481,25 @@ SWIGINTERN VALUE TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg___insert(TagL
|
|
2501
2481
|
self->insert(string, item);
|
2502
2482
|
return Qnil;
|
2503
2483
|
}
|
2484
|
+
SWIGINTERN VALUE TagLib_MP4_Tag___setitem__(TagLib::MP4::Tag *self,TagLib::String const &string,TagLib::MP4::Item const &item){
|
2485
|
+
TagLib::MP4::ItemMap::ConstIterator it = self->itemMap().find(string);
|
2486
|
+
if (it != self->itemMap().end()) {
|
2487
|
+
unlink_taglib_mp4_item_map_iterator(it);
|
2488
|
+
}
|
2489
|
+
self->setItem(string, item);
|
2490
|
+
return Qnil;
|
2491
|
+
}
|
2492
|
+
SWIGINTERN VALUE TagLib_MP4_Tag_remove_item(TagLib::MP4::Tag *self,TagLib::String const &string){
|
2493
|
+
TagLib::MP4::ItemMap::ConstIterator it = self->itemMap().find(string);
|
2494
|
+
if (it != self->itemMap().end()) {
|
2495
|
+
unlink_taglib_mp4_item_map_iterator(it);
|
2496
|
+
self->removeItem(string);
|
2497
|
+
}
|
2498
|
+
return Qnil;
|
2499
|
+
}
|
2500
|
+
SWIGINTERN void TagLib_MP4_File_close(TagLib::MP4::File *self){
|
2501
|
+
free_taglib_mp4_file(self);
|
2502
|
+
}
|
2504
2503
|
|
2505
2504
|
static void free_taglib_mp4_file(void *ptr) {
|
2506
2505
|
TagLib::MP4::File *file = (TagLib::MP4::File *) ptr;
|
@@ -2558,7 +2557,7 @@ _wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2558
2557
|
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
2559
2558
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__MP4__Atoms, 0 | 0 );
|
2560
2559
|
if (!SWIG_IsOK(res2)) {
|
2561
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms *","Properties", 2, argv[1] ));
|
2560
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms const *","Properties", 2, argv[1] ));
|
2562
2561
|
}
|
2563
2562
|
arg2 = reinterpret_cast< TagLib::MP4::Atoms * >(argp2);
|
2564
2563
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
@@ -2566,7 +2565,7 @@ _wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2566
2565
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 3, argv[2] ));
|
2567
2566
|
}
|
2568
2567
|
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
2569
|
-
result = (TagLib::MP4::Properties *)new TagLib::MP4::Properties(arg1,arg2,arg3);
|
2568
|
+
result = (TagLib::MP4::Properties *)new TagLib::MP4::Properties(arg1,(TagLib::MP4::Atoms const *)arg2,arg3);
|
2570
2569
|
DATA_PTR(self) = result;
|
2571
2570
|
SWIG_RubyAddTracking(result, self);
|
2572
2571
|
return self;
|
@@ -2610,10 +2609,10 @@ _wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2610
2609
|
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
2611
2610
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__MP4__Atoms, 0 | 0 );
|
2612
2611
|
if (!SWIG_IsOK(res2)) {
|
2613
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms *","Properties", 2, argv[1] ));
|
2612
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms const *","Properties", 2, argv[1] ));
|
2614
2613
|
}
|
2615
2614
|
arg2 = reinterpret_cast< TagLib::MP4::Atoms * >(argp2);
|
2616
|
-
result = (TagLib::MP4::Properties *)new TagLib::MP4::Properties(arg1,arg2);
|
2615
|
+
result = (TagLib::MP4::Properties *)new TagLib::MP4::Properties(arg1,(TagLib::MP4::Atoms const *)arg2);
|
2617
2616
|
DATA_PTR(self) = result;
|
2618
2617
|
SWIG_RubyAddTracking(result, self);
|
2619
2618
|
return self;
|
@@ -2669,8 +2668,8 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2669
2668
|
|
2670
2669
|
fail:
|
2671
2670
|
Ruby_Format_OverloadedError( argc, 3, "Properties.new",
|
2672
|
-
" Properties.new(TagLib::MP4::File *file, TagLib::MP4::Atoms *atoms, TagLib::AudioProperties::ReadStyle style)\n"
|
2673
|
-
" Properties.new(TagLib::MP4::File *file, TagLib::MP4::Atoms *atoms)\n");
|
2671
|
+
" Properties.new(TagLib::MP4::File *file, TagLib::MP4::Atoms const *atoms, TagLib::AudioProperties::ReadStyle style)\n"
|
2672
|
+
" Properties.new(TagLib::MP4::File *file, TagLib::MP4::Atoms const *atoms)\n");
|
2674
2673
|
|
2675
2674
|
return Qnil;
|
2676
2675
|
}
|
@@ -2683,30 +2682,6 @@ free_TagLib_MP4_Properties(void *self) {
|
|
2683
2682
|
delete arg1;
|
2684
2683
|
}
|
2685
2684
|
|
2686
|
-
SWIGINTERN VALUE
|
2687
|
-
_wrap_Properties_length_in_seconds(int argc, VALUE *argv, VALUE self) {
|
2688
|
-
TagLib::MP4::Properties *arg1 = (TagLib::MP4::Properties *) 0 ;
|
2689
|
-
void *argp1 = 0 ;
|
2690
|
-
int res1 = 0 ;
|
2691
|
-
int result;
|
2692
|
-
VALUE vresult = Qnil;
|
2693
|
-
|
2694
|
-
if ((argc < 0) || (argc > 0)) {
|
2695
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2696
|
-
}
|
2697
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Properties, 0 | 0 );
|
2698
|
-
if (!SWIG_IsOK(res1)) {
|
2699
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Properties const *","lengthInSeconds", 1, self ));
|
2700
|
-
}
|
2701
|
-
arg1 = reinterpret_cast< TagLib::MP4::Properties * >(argp1);
|
2702
|
-
result = (int)((TagLib::MP4::Properties const *)arg1)->lengthInSeconds();
|
2703
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2704
|
-
return vresult;
|
2705
|
-
fail:
|
2706
|
-
return Qnil;
|
2707
|
-
}
|
2708
|
-
|
2709
|
-
|
2710
2685
|
SWIGINTERN VALUE
|
2711
2686
|
_wrap_Properties_length_in_milliseconds(int argc, VALUE *argv, VALUE self) {
|
2712
2687
|
TagLib::MP4::Properties *arg1 = (TagLib::MP4::Properties *) 0 ;
|
@@ -2875,16 +2850,30 @@ fail:
|
|
2875
2850
|
}
|
2876
2851
|
|
2877
2852
|
|
2878
|
-
static swig_class
|
2853
|
+
static swig_class SwigClassCoverArt;
|
2879
2854
|
|
2880
2855
|
SWIGINTERN VALUE
|
2881
|
-
|
2882
|
-
TagLib::MP4::
|
2856
|
+
_wrap_new_CoverArt__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2857
|
+
TagLib::MP4::CoverArt::Format arg1 ;
|
2858
|
+
TagLib::ByteVector *arg2 = 0 ;
|
2859
|
+
int val1 ;
|
2860
|
+
int ecode1 = 0 ;
|
2861
|
+
TagLib::ByteVector tmp2 ;
|
2862
|
+
TagLib::MP4::CoverArt *result = 0 ;
|
2883
2863
|
|
2884
|
-
if ((argc <
|
2885
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2864
|
+
if ((argc < 2) || (argc > 2)) {
|
2865
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2886
2866
|
}
|
2887
|
-
|
2867
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2868
|
+
if (!SWIG_IsOK(ecode1)) {
|
2869
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt::Format","CoverArt", 1, argv[0] ));
|
2870
|
+
}
|
2871
|
+
arg1 = static_cast< TagLib::MP4::CoverArt::Format >(val1);
|
2872
|
+
{
|
2873
|
+
tmp2 = ruby_string_to_taglib_bytevector(argv[1]);
|
2874
|
+
arg2 = &tmp2;
|
2875
|
+
}
|
2876
|
+
result = (TagLib::MP4::CoverArt *)new TagLib::MP4::CoverArt(arg1,(TagLib::ByteVector const &)*arg2);
|
2888
2877
|
DATA_PTR(self) = result;
|
2889
2878
|
SWIG_RubyAddTracking(result, self);
|
2890
2879
|
return self;
|
@@ -2893,14 +2882,21 @@ fail:
|
|
2893
2882
|
}
|
2894
2883
|
|
2895
2884
|
|
2885
|
+
SWIGINTERN void
|
2886
|
+
free_TagLib_MP4_CoverArt(void *self) {
|
2887
|
+
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *)self;
|
2888
|
+
SWIG_RubyRemoveTracking(arg1);
|
2889
|
+
delete arg1;
|
2890
|
+
}
|
2891
|
+
|
2896
2892
|
SWIGINTERN VALUE
|
2897
2893
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2898
|
-
|
2894
|
+
_wrap_CoverArt_allocate(VALUE self)
|
2899
2895
|
#else
|
2900
|
-
|
2896
|
+
_wrap_CoverArt_allocate(int argc, VALUE *argv, VALUE self)
|
2901
2897
|
#endif
|
2902
2898
|
{
|
2903
|
-
VALUE vresult = SWIG_NewClassInstance(self,
|
2899
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__CoverArt);
|
2904
2900
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2905
2901
|
rb_obj_call_init(vresult, argc, argv);
|
2906
2902
|
#endif
|
@@ -2909,29 +2905,24 @@ _wrap_Tag_allocate(int argc, VALUE *argv, VALUE self)
|
|
2909
2905
|
|
2910
2906
|
|
2911
2907
|
SWIGINTERN VALUE
|
2912
|
-
|
2913
|
-
TagLib::
|
2914
|
-
TagLib::MP4::Atoms *arg2 = (TagLib::MP4::Atoms *) 0 ;
|
2908
|
+
_wrap_new_CoverArt__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2909
|
+
TagLib::MP4::CoverArt *arg1 = 0 ;
|
2915
2910
|
void *argp1 = 0 ;
|
2916
2911
|
int res1 = 0 ;
|
2917
|
-
|
2918
|
-
int res2 = 0 ;
|
2919
|
-
TagLib::MP4::Tag *result = 0 ;
|
2912
|
+
TagLib::MP4::CoverArt *result = 0 ;
|
2920
2913
|
|
2921
|
-
if ((argc <
|
2922
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2914
|
+
if ((argc < 1) || (argc > 1)) {
|
2915
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2923
2916
|
}
|
2924
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
2917
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__MP4__CoverArt, 0 );
|
2925
2918
|
if (!SWIG_IsOK(res1)) {
|
2926
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
2919
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt const &","CoverArt", 1, argv[0] ));
|
2927
2920
|
}
|
2928
|
-
|
2929
|
-
|
2930
|
-
if (!SWIG_IsOK(res2)) {
|
2931
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms *","Tag", 2, argv[1] ));
|
2921
|
+
if (!argp1) {
|
2922
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::CoverArt const &","CoverArt", 1, argv[0]));
|
2932
2923
|
}
|
2933
|
-
|
2934
|
-
result = (TagLib::MP4::
|
2924
|
+
arg1 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp1);
|
2925
|
+
result = (TagLib::MP4::CoverArt *)new TagLib::MP4::CoverArt((TagLib::MP4::CoverArt const &)*arg1);
|
2935
2926
|
DATA_PTR(self) = result;
|
2936
2927
|
SWIG_RubyAddTracking(result, self);
|
2937
2928
|
return self;
|
@@ -2940,7 +2931,7 @@ fail:
|
|
2940
2931
|
}
|
2941
2932
|
|
2942
2933
|
|
2943
|
-
SWIGINTERN VALUE
|
2934
|
+
SWIGINTERN VALUE _wrap_new_CoverArt(int nargs, VALUE *args, VALUE self) {
|
2944
2935
|
int argc;
|
2945
2936
|
VALUE argv[2];
|
2946
2937
|
int ii;
|
@@ -2950,58 +2941,57 @@ SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
|
|
2950
2941
|
for (ii = 0; (ii < argc); ++ii) {
|
2951
2942
|
argv[ii] = args[ii];
|
2952
2943
|
}
|
2953
|
-
if (argc ==
|
2954
|
-
return _wrap_new_Tag__SWIG_0(nargs, args, self);
|
2955
|
-
}
|
2956
|
-
if (argc == 2) {
|
2944
|
+
if (argc == 1) {
|
2957
2945
|
int _v = 0;
|
2958
2946
|
void *vptr = 0;
|
2959
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr,
|
2947
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArt, SWIG_POINTER_NO_NULL);
|
2960
2948
|
_v = SWIG_CheckState(res);
|
2961
2949
|
if (_v) {
|
2962
|
-
|
2963
|
-
|
2950
|
+
return _wrap_new_CoverArt__SWIG_1(nargs, args, self);
|
2951
|
+
}
|
2952
|
+
}
|
2953
|
+
if (argc == 2) {
|
2954
|
+
int _v = 0;
|
2955
|
+
{
|
2956
|
+
int res = SWIG_AsVal_int(argv[0], NULL);
|
2957
|
+
_v = SWIG_CheckState(res);
|
2958
|
+
}
|
2959
|
+
if (_v) {
|
2960
|
+
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
2964
2961
|
_v = SWIG_CheckState(res);
|
2965
2962
|
if (_v) {
|
2966
|
-
return
|
2963
|
+
return _wrap_new_CoverArt__SWIG_0(nargs, args, self);
|
2967
2964
|
}
|
2968
2965
|
}
|
2969
2966
|
}
|
2970
2967
|
|
2971
2968
|
fail:
|
2972
|
-
Ruby_Format_OverloadedError( argc, 2, "
|
2973
|
-
"
|
2974
|
-
"
|
2969
|
+
Ruby_Format_OverloadedError( argc, 2, "CoverArt.new",
|
2970
|
+
" CoverArt.new(TagLib::MP4::CoverArt::Format format, TagLib::ByteVector const &data)\n"
|
2971
|
+
" CoverArt.new(TagLib::MP4::CoverArt const &item)\n");
|
2975
2972
|
|
2976
2973
|
return Qnil;
|
2977
2974
|
}
|
2978
2975
|
|
2979
2976
|
|
2980
|
-
SWIGINTERN void
|
2981
|
-
free_TagLib_MP4_Tag(void *self) {
|
2982
|
-
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *)self;
|
2983
|
-
SWIG_RubyRemoveTracking(arg1);
|
2984
|
-
delete arg1;
|
2985
|
-
}
|
2986
|
-
|
2987
2977
|
SWIGINTERN VALUE
|
2988
|
-
|
2989
|
-
TagLib::MP4::
|
2978
|
+
_wrap_CoverArt_format(int argc, VALUE *argv, VALUE self) {
|
2979
|
+
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *) 0 ;
|
2990
2980
|
void *argp1 = 0 ;
|
2991
2981
|
int res1 = 0 ;
|
2992
|
-
|
2982
|
+
TagLib::MP4::CoverArt::Format result;
|
2993
2983
|
VALUE vresult = Qnil;
|
2994
2984
|
|
2995
2985
|
if ((argc < 0) || (argc > 0)) {
|
2996
2986
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2997
2987
|
}
|
2998
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2988
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__CoverArt, 0 | 0 );
|
2999
2989
|
if (!SWIG_IsOK(res1)) {
|
3000
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
2990
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt const *","format", 1, self ));
|
3001
2991
|
}
|
3002
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
3003
|
-
result = (
|
3004
|
-
vresult =
|
2992
|
+
arg1 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp1);
|
2993
|
+
result = (TagLib::MP4::CoverArt::Format)((TagLib::MP4::CoverArt const *)arg1)->format();
|
2994
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
3005
2995
|
return vresult;
|
3006
2996
|
fail:
|
3007
2997
|
return Qnil;
|
@@ -3009,24 +2999,24 @@ fail:
|
|
3009
2999
|
|
3010
3000
|
|
3011
3001
|
SWIGINTERN VALUE
|
3012
|
-
|
3013
|
-
TagLib::MP4::
|
3002
|
+
_wrap_CoverArt_data(int argc, VALUE *argv, VALUE self) {
|
3003
|
+
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *) 0 ;
|
3014
3004
|
void *argp1 = 0 ;
|
3015
3005
|
int res1 = 0 ;
|
3016
|
-
TagLib::
|
3006
|
+
TagLib::ByteVector result;
|
3017
3007
|
VALUE vresult = Qnil;
|
3018
3008
|
|
3019
3009
|
if ((argc < 0) || (argc > 0)) {
|
3020
3010
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3021
3011
|
}
|
3022
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
3012
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__CoverArt, 0 | 0 );
|
3023
3013
|
if (!SWIG_IsOK(res1)) {
|
3024
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3014
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt const *","data", 1, self ));
|
3025
3015
|
}
|
3026
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
3027
|
-
result = ((TagLib::MP4::
|
3016
|
+
arg1 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp1);
|
3017
|
+
result = ((TagLib::MP4::CoverArt const *)arg1)->data();
|
3028
3018
|
{
|
3029
|
-
vresult =
|
3019
|
+
vresult = taglib_bytevector_to_ruby_string(result);
|
3030
3020
|
}
|
3031
3021
|
return vresult;
|
3032
3022
|
fail:
|
@@ -3034,680 +3024,660 @@ fail:
|
|
3034
3024
|
}
|
3035
3025
|
|
3036
3026
|
|
3027
|
+
/*
|
3028
|
+
Document-method: TagLib::MP4::CoverArt.==
|
3029
|
+
|
3030
|
+
call-seq:
|
3031
|
+
==(other) -> bool
|
3032
|
+
|
3033
|
+
Equality comparison operator.
|
3034
|
+
*/
|
3037
3035
|
SWIGINTERN VALUE
|
3038
|
-
|
3039
|
-
TagLib::MP4::
|
3036
|
+
_wrap_CoverArt___eq__(int argc, VALUE *argv, VALUE self) {
|
3037
|
+
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *) 0 ;
|
3038
|
+
TagLib::MP4::CoverArt *arg2 = 0 ;
|
3040
3039
|
void *argp1 = 0 ;
|
3041
3040
|
int res1 = 0 ;
|
3042
|
-
|
3041
|
+
void *argp2 = 0 ;
|
3042
|
+
int res2 = 0 ;
|
3043
|
+
bool result;
|
3043
3044
|
VALUE vresult = Qnil;
|
3044
3045
|
|
3045
|
-
if ((argc <
|
3046
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3046
|
+
if ((argc < 1) || (argc > 1)) {
|
3047
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3047
3048
|
}
|
3048
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
3049
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__CoverArt, 0 | 0 );
|
3049
3050
|
if (!SWIG_IsOK(res1)) {
|
3050
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3051
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt const *","operator ==", 1, self ));
|
3051
3052
|
}
|
3052
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
3053
|
-
|
3054
|
-
{
|
3055
|
-
|
3053
|
+
arg1 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp1);
|
3054
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__MP4__CoverArt, 0 );
|
3055
|
+
if (!SWIG_IsOK(res2)) {
|
3056
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::CoverArt const &","operator ==", 2, argv[0] ));
|
3057
|
+
}
|
3058
|
+
if (!argp2) {
|
3059
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::CoverArt const &","operator ==", 2, argv[0]));
|
3056
3060
|
}
|
3061
|
+
arg2 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp2);
|
3062
|
+
result = (bool)((TagLib::MP4::CoverArt const *)arg1)->operator ==((TagLib::MP4::CoverArt const &)*arg2);
|
3063
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3057
3064
|
return vresult;
|
3058
3065
|
fail:
|
3059
3066
|
return Qnil;
|
3060
3067
|
}
|
3061
3068
|
|
3062
3069
|
|
3070
|
+
static swig_class SwigClassItem;
|
3071
|
+
|
3063
3072
|
SWIGINTERN VALUE
|
3064
|
-
|
3065
|
-
TagLib::MP4::
|
3066
|
-
void *argp1 = 0 ;
|
3067
|
-
int res1 = 0 ;
|
3068
|
-
TagLib::String result;
|
3069
|
-
VALUE vresult = Qnil;
|
3073
|
+
_wrap_new_Item__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3074
|
+
TagLib::MP4::Item *result = 0 ;
|
3070
3075
|
|
3071
3076
|
if ((argc < 0) || (argc > 0)) {
|
3072
3077
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3073
3078
|
}
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3079
|
-
result = ((TagLib::MP4::Tag const *)arg1)->album();
|
3080
|
-
{
|
3081
|
-
vresult = taglib_string_to_ruby_string(result);
|
3082
|
-
}
|
3083
|
-
return vresult;
|
3079
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item();
|
3080
|
+
DATA_PTR(self) = result;
|
3081
|
+
SWIG_RubyAddTracking(result, self);
|
3082
|
+
return self;
|
3084
3083
|
fail:
|
3085
3084
|
return Qnil;
|
3086
3085
|
}
|
3087
3086
|
|
3088
3087
|
|
3089
3088
|
SWIGINTERN VALUE
|
3090
|
-
|
3091
|
-
TagLib::MP4::
|
3089
|
+
_wrap_new_Item__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3090
|
+
TagLib::MP4::Item *arg1 = 0 ;
|
3092
3091
|
void *argp1 = 0 ;
|
3093
3092
|
int res1 = 0 ;
|
3094
|
-
TagLib::
|
3095
|
-
VALUE vresult = Qnil;
|
3093
|
+
TagLib::MP4::Item *result = 0 ;
|
3096
3094
|
|
3097
|
-
if ((argc <
|
3098
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3095
|
+
if ((argc < 1) || (argc > 1)) {
|
3096
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3099
3097
|
}
|
3100
|
-
res1 = SWIG_ConvertPtr(
|
3098
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
3101
3099
|
if (!SWIG_IsOK(res1)) {
|
3102
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3100
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","Item", 1, argv[0] ));
|
3103
3101
|
}
|
3104
|
-
|
3105
|
-
|
3106
|
-
{
|
3107
|
-
vresult = taglib_string_to_ruby_string(result);
|
3102
|
+
if (!argp1) {
|
3103
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","Item", 1, argv[0]));
|
3108
3104
|
}
|
3109
|
-
|
3105
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3106
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::MP4::Item const &)*arg1);
|
3107
|
+
DATA_PTR(self) = result;
|
3108
|
+
SWIG_RubyAddTracking(result, self);
|
3109
|
+
return self;
|
3110
3110
|
fail:
|
3111
3111
|
return Qnil;
|
3112
3112
|
}
|
3113
3113
|
|
3114
3114
|
|
3115
|
-
SWIGINTERN
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
TagLib::String result;
|
3121
|
-
VALUE vresult = Qnil;
|
3122
|
-
|
3123
|
-
if ((argc < 0) || (argc > 0)) {
|
3124
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3125
|
-
}
|
3126
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3127
|
-
if (!SWIG_IsOK(res1)) {
|
3128
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","genre", 1, self ));
|
3129
|
-
}
|
3130
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3131
|
-
result = ((TagLib::MP4::Tag const *)arg1)->genre();
|
3132
|
-
{
|
3133
|
-
vresult = taglib_string_to_ruby_string(result);
|
3134
|
-
}
|
3135
|
-
return vresult;
|
3136
|
-
fail:
|
3137
|
-
return Qnil;
|
3115
|
+
SWIGINTERN void
|
3116
|
+
free_TagLib_MP4_Item(void *self) {
|
3117
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *)self;
|
3118
|
+
SWIG_RubyRemoveTracking(arg1);
|
3119
|
+
delete arg1;
|
3138
3120
|
}
|
3139
3121
|
|
3140
|
-
|
3141
3122
|
SWIGINTERN VALUE
|
3142
|
-
|
3143
|
-
|
3144
|
-
|
3145
|
-
int
|
3146
|
-
|
3147
|
-
VALUE vresult = Qnil;
|
3123
|
+
_wrap_new_Item__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
3124
|
+
int arg1 ;
|
3125
|
+
int val1 ;
|
3126
|
+
int ecode1 = 0 ;
|
3127
|
+
TagLib::MP4::Item *result = 0 ;
|
3148
3128
|
|
3149
|
-
if ((argc <
|
3150
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3151
|
-
}
|
3152
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3153
|
-
if (!SWIG_IsOK(res1)) {
|
3154
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","year", 1, self ));
|
3129
|
+
if ((argc < 1) || (argc > 1)) {
|
3130
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3155
3131
|
}
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3132
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3133
|
+
if (!SWIG_IsOK(ecode1)) {
|
3134
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Item", 1, argv[0] ));
|
3135
|
+
}
|
3136
|
+
arg1 = static_cast< int >(val1);
|
3137
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1);
|
3138
|
+
DATA_PTR(self) = result;
|
3139
|
+
SWIG_RubyAddTracking(result, self);
|
3140
|
+
return self;
|
3160
3141
|
fail:
|
3161
3142
|
return Qnil;
|
3162
3143
|
}
|
3163
3144
|
|
3164
3145
|
|
3165
3146
|
SWIGINTERN VALUE
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
int
|
3170
|
-
|
3171
|
-
VALUE vresult = Qnil;
|
3147
|
+
_wrap_new_Item__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
3148
|
+
unsigned char arg1 ;
|
3149
|
+
unsigned char val1 ;
|
3150
|
+
int ecode1 = 0 ;
|
3151
|
+
TagLib::MP4::Item *result = 0 ;
|
3172
3152
|
|
3173
|
-
if ((argc <
|
3174
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3175
|
-
}
|
3176
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3177
|
-
if (!SWIG_IsOK(res1)) {
|
3178
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","track", 1, self ));
|
3153
|
+
if ((argc < 1) || (argc > 1)) {
|
3154
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3179
3155
|
}
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3156
|
+
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3157
|
+
if (!SWIG_IsOK(ecode1)) {
|
3158
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned char","Item", 1, argv[0] ));
|
3159
|
+
}
|
3160
|
+
arg1 = static_cast< unsigned char >(val1);
|
3161
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1);
|
3162
|
+
DATA_PTR(self) = result;
|
3163
|
+
SWIG_RubyAddTracking(result, self);
|
3164
|
+
return self;
|
3184
3165
|
fail:
|
3185
3166
|
return Qnil;
|
3186
3167
|
}
|
3187
3168
|
|
3188
3169
|
|
3189
3170
|
SWIGINTERN VALUE
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3193
|
-
|
3194
|
-
|
3195
|
-
TagLib::String tmp2 ;
|
3171
|
+
_wrap_new_Item__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
3172
|
+
unsigned int arg1 ;
|
3173
|
+
unsigned int val1 ;
|
3174
|
+
int ecode1 = 0 ;
|
3175
|
+
TagLib::MP4::Item *result = 0 ;
|
3196
3176
|
|
3197
3177
|
if ((argc < 1) || (argc > 1)) {
|
3198
3178
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3199
3179
|
}
|
3200
|
-
|
3201
|
-
if (!SWIG_IsOK(
|
3202
|
-
SWIG_exception_fail(SWIG_ArgError(
|
3203
|
-
}
|
3204
|
-
arg1 =
|
3205
|
-
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
(arg1)->setTitle((TagLib::String const &)*arg2);
|
3210
|
-
return Qnil;
|
3180
|
+
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
3181
|
+
if (!SWIG_IsOK(ecode1)) {
|
3182
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","Item", 1, argv[0] ));
|
3183
|
+
}
|
3184
|
+
arg1 = static_cast< unsigned int >(val1);
|
3185
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1);
|
3186
|
+
DATA_PTR(self) = result;
|
3187
|
+
SWIG_RubyAddTracking(result, self);
|
3188
|
+
return self;
|
3211
3189
|
fail:
|
3212
3190
|
return Qnil;
|
3213
3191
|
}
|
3214
3192
|
|
3215
3193
|
|
3216
3194
|
SWIGINTERN VALUE
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
TagLib::String tmp2 ;
|
3195
|
+
_wrap_new_Item__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
3196
|
+
long long arg1 ;
|
3197
|
+
long long val1 ;
|
3198
|
+
int ecode1 = 0 ;
|
3199
|
+
TagLib::MP4::Item *result = 0 ;
|
3223
3200
|
|
3224
3201
|
if ((argc < 1) || (argc > 1)) {
|
3225
3202
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3226
3203
|
}
|
3227
|
-
|
3228
|
-
if (!SWIG_IsOK(
|
3229
|
-
SWIG_exception_fail(SWIG_ArgError(
|
3230
|
-
}
|
3231
|
-
arg1 =
|
3232
|
-
|
3233
|
-
|
3234
|
-
|
3235
|
-
|
3236
|
-
(arg1)->setArtist((TagLib::String const &)*arg2);
|
3237
|
-
return Qnil;
|
3204
|
+
ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
|
3205
|
+
if (!SWIG_IsOK(ecode1)) {
|
3206
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "long long","Item", 1, argv[0] ));
|
3207
|
+
}
|
3208
|
+
arg1 = static_cast< long long >(val1);
|
3209
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1);
|
3210
|
+
DATA_PTR(self) = result;
|
3211
|
+
SWIG_RubyAddTracking(result, self);
|
3212
|
+
return self;
|
3238
3213
|
fail:
|
3239
3214
|
return Qnil;
|
3240
3215
|
}
|
3241
3216
|
|
3242
3217
|
|
3243
3218
|
SWIGINTERN VALUE
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
TagLib::String tmp2 ;
|
3219
|
+
_wrap_new_Item__SWIG_6(int argc, VALUE *argv, VALUE self) {
|
3220
|
+
bool arg1 ;
|
3221
|
+
bool val1 ;
|
3222
|
+
int ecode1 = 0 ;
|
3223
|
+
TagLib::MP4::Item *result = 0 ;
|
3250
3224
|
|
3251
3225
|
if ((argc < 1) || (argc > 1)) {
|
3252
3226
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3253
3227
|
}
|
3254
|
-
|
3255
|
-
if (!SWIG_IsOK(
|
3256
|
-
SWIG_exception_fail(SWIG_ArgError(
|
3257
|
-
}
|
3258
|
-
arg1 =
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3262
|
-
|
3263
|
-
(arg1)->setAlbum((TagLib::String const &)*arg2);
|
3264
|
-
return Qnil;
|
3228
|
+
ecode1 = SWIG_AsVal_bool(argv[0], &val1);
|
3229
|
+
if (!SWIG_IsOK(ecode1)) {
|
3230
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","Item", 1, argv[0] ));
|
3231
|
+
}
|
3232
|
+
arg1 = static_cast< bool >(val1);
|
3233
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1);
|
3234
|
+
DATA_PTR(self) = result;
|
3235
|
+
SWIG_RubyAddTracking(result, self);
|
3236
|
+
return self;
|
3265
3237
|
fail:
|
3266
3238
|
return Qnil;
|
3267
3239
|
}
|
3268
3240
|
|
3269
3241
|
|
3270
3242
|
SWIGINTERN VALUE
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
int
|
3276
|
-
|
3277
|
-
|
3278
|
-
if ((argc < 1) || (argc > 1)) {
|
3279
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3280
|
-
}
|
3281
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3282
|
-
if (!SWIG_IsOK(res1)) {
|
3283
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setComment", 1, self ));
|
3284
|
-
}
|
3285
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3286
|
-
{
|
3287
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
3288
|
-
arg2 = &tmp2;
|
3289
|
-
}
|
3290
|
-
(arg1)->setComment((TagLib::String const &)*arg2);
|
3291
|
-
return Qnil;
|
3292
|
-
fail:
|
3293
|
-
return Qnil;
|
3294
|
-
}
|
3295
|
-
|
3296
|
-
|
3297
|
-
SWIGINTERN VALUE
|
3298
|
-
_wrap_Tag_genree___(int argc, VALUE *argv, VALUE self) {
|
3299
|
-
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
3300
|
-
TagLib::String *arg2 = 0 ;
|
3301
|
-
void *argp1 = 0 ;
|
3302
|
-
int res1 = 0 ;
|
3303
|
-
TagLib::String tmp2 ;
|
3304
|
-
|
3305
|
-
if ((argc < 1) || (argc > 1)) {
|
3306
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3307
|
-
}
|
3308
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3309
|
-
if (!SWIG_IsOK(res1)) {
|
3310
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setGenre", 1, self ));
|
3311
|
-
}
|
3312
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3313
|
-
{
|
3314
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
3315
|
-
arg2 = &tmp2;
|
3316
|
-
}
|
3317
|
-
(arg1)->setGenre((TagLib::String const &)*arg2);
|
3318
|
-
return Qnil;
|
3319
|
-
fail:
|
3320
|
-
return Qnil;
|
3321
|
-
}
|
3322
|
-
|
3323
|
-
|
3324
|
-
SWIGINTERN VALUE
|
3325
|
-
_wrap_Tag_yeare___(int argc, VALUE *argv, VALUE self) {
|
3326
|
-
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
3327
|
-
unsigned int arg2 ;
|
3328
|
-
void *argp1 = 0 ;
|
3329
|
-
int res1 = 0 ;
|
3330
|
-
unsigned int val2 ;
|
3243
|
+
_wrap_new_Item__SWIG_7(int argc, VALUE *argv, VALUE self) {
|
3244
|
+
int arg1 ;
|
3245
|
+
int arg2 ;
|
3246
|
+
int val1 ;
|
3247
|
+
int ecode1 = 0 ;
|
3248
|
+
int val2 ;
|
3331
3249
|
int ecode2 = 0 ;
|
3250
|
+
TagLib::MP4::Item *result = 0 ;
|
3332
3251
|
|
3333
|
-
if ((argc <
|
3334
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3335
|
-
}
|
3336
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3337
|
-
if (!SWIG_IsOK(res1)) {
|
3338
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setYear", 1, self ));
|
3252
|
+
if ((argc < 2) || (argc > 2)) {
|
3253
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3339
3254
|
}
|
3340
|
-
|
3341
|
-
|
3255
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3256
|
+
if (!SWIG_IsOK(ecode1)) {
|
3257
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Item", 1, argv[0] ));
|
3258
|
+
}
|
3259
|
+
arg1 = static_cast< int >(val1);
|
3260
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3342
3261
|
if (!SWIG_IsOK(ecode2)) {
|
3343
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
3262
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Item", 2, argv[1] ));
|
3344
3263
|
}
|
3345
|
-
arg2 = static_cast<
|
3346
|
-
(
|
3347
|
-
|
3264
|
+
arg2 = static_cast< int >(val2);
|
3265
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1,arg2);
|
3266
|
+
DATA_PTR(self) = result;
|
3267
|
+
SWIG_RubyAddTracking(result, self);
|
3268
|
+
return self;
|
3348
3269
|
fail:
|
3349
3270
|
return Qnil;
|
3350
3271
|
}
|
3351
3272
|
|
3352
3273
|
|
3353
3274
|
SWIGINTERN VALUE
|
3354
|
-
|
3355
|
-
TagLib::
|
3356
|
-
|
3357
|
-
|
3358
|
-
int res1 = 0 ;
|
3359
|
-
unsigned int val2 ;
|
3360
|
-
int ecode2 = 0 ;
|
3275
|
+
_wrap_new_Item__SWIG_8(int argc, VALUE *argv, VALUE self) {
|
3276
|
+
TagLib::StringList *arg1 = 0 ;
|
3277
|
+
TagLib::StringList tmp1 ;
|
3278
|
+
TagLib::MP4::Item *result = 0 ;
|
3361
3279
|
|
3362
3280
|
if ((argc < 1) || (argc > 1)) {
|
3363
3281
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3364
3282
|
}
|
3365
|
-
|
3366
|
-
|
3367
|
-
|
3283
|
+
{
|
3284
|
+
tmp1 = ruby_array_to_taglib_string_list(argv[0]);
|
3285
|
+
arg1 = &tmp1;
|
3368
3286
|
}
|
3369
|
-
|
3370
|
-
|
3371
|
-
|
3372
|
-
|
3373
|
-
}
|
3374
|
-
arg2 = static_cast< unsigned int >(val2);
|
3375
|
-
(arg1)->setTrack(arg2);
|
3376
|
-
return Qnil;
|
3287
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::StringList const &)*arg1);
|
3288
|
+
DATA_PTR(self) = result;
|
3289
|
+
SWIG_RubyAddTracking(result, self);
|
3290
|
+
return self;
|
3377
3291
|
fail:
|
3378
3292
|
return Qnil;
|
3379
3293
|
}
|
3380
3294
|
|
3381
3295
|
|
3382
3296
|
SWIGINTERN VALUE
|
3383
|
-
|
3384
|
-
TagLib::
|
3385
|
-
|
3386
|
-
|
3387
|
-
bool result;
|
3388
|
-
VALUE vresult = Qnil;
|
3297
|
+
_wrap_new_Item__SWIG_9(int argc, VALUE *argv, VALUE self) {
|
3298
|
+
TagLib::ByteVectorList *arg1 = 0 ;
|
3299
|
+
TagLib::ByteVectorList tmp1 ;
|
3300
|
+
TagLib::MP4::Item *result = 0 ;
|
3389
3301
|
|
3390
|
-
if ((argc <
|
3391
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3302
|
+
if ((argc < 1) || (argc > 1)) {
|
3303
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3392
3304
|
}
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3305
|
+
{
|
3306
|
+
tmp1 = ruby_array_to_taglib_bytevectorlist(argv[0]);
|
3307
|
+
arg1 = &tmp1;
|
3396
3308
|
}
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
return
|
3309
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::ByteVectorList const &)*arg1);
|
3310
|
+
DATA_PTR(self) = result;
|
3311
|
+
SWIG_RubyAddTracking(result, self);
|
3312
|
+
return self;
|
3401
3313
|
fail:
|
3402
3314
|
return Qnil;
|
3403
3315
|
}
|
3404
3316
|
|
3405
3317
|
|
3406
3318
|
SWIGINTERN VALUE
|
3407
|
-
|
3408
|
-
|
3409
|
-
|
3410
|
-
|
3411
|
-
|
3412
|
-
|
3413
|
-
|
3414
|
-
|
3415
|
-
|
3416
|
-
|
3417
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3418
|
-
if (!SWIG_IsOK(res1)) {
|
3419
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","itemMap", 1, self ));
|
3420
|
-
}
|
3421
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3422
|
-
result = (TagLib::MP4::ItemMap *) &((TagLib::MP4::Tag const *)arg1)->itemMap();
|
3423
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
3319
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3320
|
+
_wrap_Item_allocate(VALUE self)
|
3321
|
+
#else
|
3322
|
+
_wrap_Item_allocate(int argc, VALUE *argv, VALUE self)
|
3323
|
+
#endif
|
3324
|
+
{
|
3325
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Item);
|
3326
|
+
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3327
|
+
rb_obj_call_init(vresult, argc, argv);
|
3328
|
+
#endif
|
3424
3329
|
return vresult;
|
3425
|
-
fail:
|
3426
|
-
return Qnil;
|
3427
3330
|
}
|
3428
3331
|
|
3429
3332
|
|
3430
3333
|
SWIGINTERN VALUE
|
3431
|
-
|
3432
|
-
TagLib::MP4::
|
3433
|
-
TagLib::
|
3434
|
-
|
3435
|
-
int res1 = 0 ;
|
3436
|
-
TagLib::String tmp2 ;
|
3437
|
-
TagLib::MP4::Item result;
|
3438
|
-
VALUE vresult = Qnil;
|
3334
|
+
_wrap_new_Item__SWIG_10(int argc, VALUE *argv, VALUE self) {
|
3335
|
+
TagLib::MP4::CoverArtList *arg1 = 0 ;
|
3336
|
+
TagLib::MP4::CoverArtList tmp1 ;
|
3337
|
+
TagLib::MP4::Item *result = 0 ;
|
3439
3338
|
|
3440
3339
|
if ((argc < 1) || (argc > 1)) {
|
3441
3340
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3442
3341
|
}
|
3443
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
3444
|
-
if (!SWIG_IsOK(res1)) {
|
3445
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","item", 1, self ));
|
3446
|
-
}
|
3447
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3448
3342
|
{
|
3449
|
-
|
3450
|
-
|
3343
|
+
tmp1 = ruby_array_to_taglib_cover_art_list(argv[0]);
|
3344
|
+
arg1 = &tmp1;
|
3451
3345
|
}
|
3452
|
-
result = (
|
3453
|
-
|
3454
|
-
|
3346
|
+
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::MP4::CoverArtList const &)*arg1);
|
3347
|
+
DATA_PTR(self) = result;
|
3348
|
+
SWIG_RubyAddTracking(result, self);
|
3349
|
+
return self;
|
3455
3350
|
fail:
|
3456
3351
|
return Qnil;
|
3457
3352
|
}
|
3458
3353
|
|
3459
3354
|
|
3460
|
-
SWIGINTERN VALUE
|
3461
|
-
|
3462
|
-
|
3463
|
-
|
3464
|
-
void *argp1 = 0 ;
|
3465
|
-
int res1 = 0 ;
|
3466
|
-
TagLib::String tmp2 ;
|
3467
|
-
bool result;
|
3468
|
-
VALUE vresult = Qnil;
|
3355
|
+
SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
3356
|
+
int argc;
|
3357
|
+
VALUE argv[2];
|
3358
|
+
int ii;
|
3469
3359
|
|
3470
|
-
|
3471
|
-
|
3360
|
+
argc = nargs;
|
3361
|
+
if (argc > 2) SWIG_fail;
|
3362
|
+
for (ii = 0; (ii < argc); ++ii) {
|
3363
|
+
argv[ii] = args[ii];
|
3472
3364
|
}
|
3473
|
-
|
3474
|
-
|
3475
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","contains", 1, self ));
|
3365
|
+
if (argc == 0) {
|
3366
|
+
return _wrap_new_Item__SWIG_0(nargs, args, self);
|
3476
3367
|
}
|
3477
|
-
|
3478
|
-
|
3479
|
-
|
3480
|
-
|
3368
|
+
if (argc == 1) {
|
3369
|
+
int _v = 0;
|
3370
|
+
void *vptr = 0;
|
3371
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_NO_NULL);
|
3372
|
+
_v = SWIG_CheckState(res);
|
3373
|
+
if (_v) {
|
3374
|
+
return _wrap_new_Item__SWIG_1(nargs, args, self);
|
3375
|
+
}
|
3481
3376
|
}
|
3482
|
-
|
3483
|
-
|
3484
|
-
|
3485
|
-
|
3486
|
-
|
3487
|
-
|
3488
|
-
|
3489
|
-
|
3490
|
-
/*
|
3491
|
-
Document-method: TagLib::MP4::Tag.[]=
|
3492
|
-
|
3493
|
-
call-seq:
|
3494
|
-
[]=(string, item) -> VALUE
|
3495
|
-
|
3496
|
-
Element setter/slicing.
|
3497
|
-
*/
|
3498
|
-
SWIGINTERN VALUE
|
3499
|
-
_wrap_Tag___setitem__(int argc, VALUE *argv, VALUE self) {
|
3500
|
-
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
3501
|
-
TagLib::String *arg2 = 0 ;
|
3502
|
-
TagLib::MP4::Item *arg3 = 0 ;
|
3503
|
-
void *argp1 = 0 ;
|
3504
|
-
int res1 = 0 ;
|
3505
|
-
TagLib::String tmp2 ;
|
3506
|
-
void *argp3 = 0 ;
|
3507
|
-
int res3 = 0 ;
|
3508
|
-
VALUE result;
|
3509
|
-
VALUE vresult = Qnil;
|
3510
|
-
|
3511
|
-
if ((argc < 2) || (argc > 2)) {
|
3512
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3377
|
+
if (argc == 1) {
|
3378
|
+
int _v = 0;
|
3379
|
+
void *vptr = 0;
|
3380
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVectorList, SWIG_POINTER_NO_NULL);
|
3381
|
+
_v = SWIG_CheckState(res);
|
3382
|
+
if (_v) {
|
3383
|
+
return _wrap_new_Item__SWIG_9(nargs, args, self);
|
3384
|
+
}
|
3513
3385
|
}
|
3514
|
-
|
3515
|
-
|
3516
|
-
|
3386
|
+
if (argc == 1) {
|
3387
|
+
int _v = 0;
|
3388
|
+
void *vptr = 0;
|
3389
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArtList, SWIG_POINTER_NO_NULL);
|
3390
|
+
_v = SWIG_CheckState(res);
|
3391
|
+
if (_v) {
|
3392
|
+
return _wrap_new_Item__SWIG_10(nargs, args, self);
|
3393
|
+
}
|
3517
3394
|
}
|
3518
|
-
|
3519
|
-
|
3520
|
-
|
3521
|
-
|
3395
|
+
if (argc == 1) {
|
3396
|
+
int _v = 0;
|
3397
|
+
{
|
3398
|
+
int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL);
|
3399
|
+
_v = SWIG_CheckState(res);
|
3400
|
+
}
|
3401
|
+
if (_v) {
|
3402
|
+
return _wrap_new_Item__SWIG_3(nargs, args, self);
|
3403
|
+
}
|
3522
3404
|
}
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3405
|
+
if (argc == 1) {
|
3406
|
+
int _v = 0;
|
3407
|
+
{
|
3408
|
+
int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL);
|
3409
|
+
_v = SWIG_CheckState(res);
|
3410
|
+
}
|
3411
|
+
if (_v) {
|
3412
|
+
return _wrap_new_Item__SWIG_4(nargs, args, self);
|
3413
|
+
}
|
3526
3414
|
}
|
3527
|
-
if (
|
3528
|
-
|
3415
|
+
if (argc == 1) {
|
3416
|
+
int _v = 0;
|
3417
|
+
{
|
3418
|
+
int res = SWIG_AsVal_int(argv[0], NULL);
|
3419
|
+
_v = SWIG_CheckState(res);
|
3420
|
+
}
|
3421
|
+
if (_v) {
|
3422
|
+
return _wrap_new_Item__SWIG_2(nargs, args, self);
|
3423
|
+
}
|
3529
3424
|
}
|
3530
|
-
|
3531
|
-
|
3532
|
-
|
3533
|
-
|
3425
|
+
if (argc == 1) {
|
3426
|
+
int _v = 0;
|
3427
|
+
{
|
3428
|
+
int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
|
3429
|
+
_v = SWIG_CheckState(res);
|
3430
|
+
}
|
3431
|
+
if (_v) {
|
3432
|
+
return _wrap_new_Item__SWIG_5(nargs, args, self);
|
3433
|
+
}
|
3434
|
+
}
|
3435
|
+
if (argc == 1) {
|
3436
|
+
int _v = 0;
|
3437
|
+
{
|
3438
|
+
_v = TYPE(argv[0]) == T_ARRAY ? 1 : 0;
|
3439
|
+
}
|
3440
|
+
if (_v) {
|
3441
|
+
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
3442
|
+
}
|
3443
|
+
}
|
3444
|
+
if (argc == 1) {
|
3445
|
+
int _v = 0;
|
3446
|
+
{
|
3447
|
+
int res = SWIG_AsVal_bool(argv[0], NULL);
|
3448
|
+
_v = SWIG_CheckState(res);
|
3449
|
+
}
|
3450
|
+
if (_v) {
|
3451
|
+
return _wrap_new_Item__SWIG_6(nargs, args, self);
|
3452
|
+
}
|
3453
|
+
}
|
3454
|
+
if (argc == 2) {
|
3455
|
+
int _v = 0;
|
3456
|
+
{
|
3457
|
+
int res = SWIG_AsVal_int(argv[0], NULL);
|
3458
|
+
_v = SWIG_CheckState(res);
|
3459
|
+
}
|
3460
|
+
if (_v) {
|
3461
|
+
{
|
3462
|
+
int res = SWIG_AsVal_int(argv[1], NULL);
|
3463
|
+
_v = SWIG_CheckState(res);
|
3464
|
+
}
|
3465
|
+
if (_v) {
|
3466
|
+
return _wrap_new_Item__SWIG_7(nargs, args, self);
|
3467
|
+
}
|
3468
|
+
}
|
3469
|
+
}
|
3470
|
+
|
3534
3471
|
fail:
|
3472
|
+
Ruby_Format_OverloadedError( argc, 2, "Item.new",
|
3473
|
+
" Item.new()\n"
|
3474
|
+
" Item.new(TagLib::MP4::Item const &item)\n"
|
3475
|
+
" Item.new(int value)\n"
|
3476
|
+
" Item.new(unsigned char value)\n"
|
3477
|
+
" Item.new(unsigned int value)\n"
|
3478
|
+
" Item.new(long long value)\n"
|
3479
|
+
" Item.new(bool value)\n"
|
3480
|
+
" Item.new(int value1, int value2)\n"
|
3481
|
+
" Item.new(TagLib::StringList const &value)\n"
|
3482
|
+
" Item.new(TagLib::ByteVectorList const &value)\n"
|
3483
|
+
" Item.new(TagLib::MP4::CoverArtList const &value)\n");
|
3484
|
+
|
3535
3485
|
return Qnil;
|
3536
3486
|
}
|
3537
3487
|
|
3538
3488
|
|
3539
3489
|
SWIGINTERN VALUE
|
3540
|
-
|
3541
|
-
TagLib::MP4::
|
3542
|
-
TagLib::String *arg2 = 0 ;
|
3490
|
+
_wrap_Item_to_int(int argc, VALUE *argv, VALUE self) {
|
3491
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3543
3492
|
void *argp1 = 0 ;
|
3544
3493
|
int res1 = 0 ;
|
3545
|
-
|
3546
|
-
VALUE result;
|
3494
|
+
int result;
|
3547
3495
|
VALUE vresult = Qnil;
|
3548
3496
|
|
3549
|
-
if ((argc <
|
3550
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3497
|
+
if ((argc < 0) || (argc > 0)) {
|
3498
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3551
3499
|
}
|
3552
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
3500
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3553
3501
|
if (!SWIG_IsOK(res1)) {
|
3554
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3555
|
-
}
|
3556
|
-
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
3557
|
-
{
|
3558
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
3559
|
-
arg2 = &tmp2;
|
3502
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toInt", 1, self ));
|
3560
3503
|
}
|
3561
|
-
|
3562
|
-
|
3504
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3505
|
+
result = (int)((TagLib::MP4::Item const *)arg1)->toInt();
|
3506
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
3563
3507
|
return vresult;
|
3564
3508
|
fail:
|
3565
3509
|
return Qnil;
|
3566
3510
|
}
|
3567
3511
|
|
3568
3512
|
|
3569
|
-
static swig_class SwigClassCoverArt;
|
3570
|
-
|
3571
3513
|
SWIGINTERN VALUE
|
3572
|
-
|
3573
|
-
TagLib::MP4::
|
3574
|
-
|
3575
|
-
int
|
3576
|
-
|
3577
|
-
|
3578
|
-
TagLib::MP4::CoverArt *result = 0 ;
|
3514
|
+
_wrap_Item_to_byte(int argc, VALUE *argv, VALUE self) {
|
3515
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3516
|
+
void *argp1 = 0 ;
|
3517
|
+
int res1 = 0 ;
|
3518
|
+
unsigned char result;
|
3519
|
+
VALUE vresult = Qnil;
|
3579
3520
|
|
3580
|
-
if ((argc <
|
3581
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3521
|
+
if ((argc < 0) || (argc > 0)) {
|
3522
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3582
3523
|
}
|
3583
|
-
|
3584
|
-
if (!SWIG_IsOK(
|
3585
|
-
SWIG_exception_fail(SWIG_ArgError(
|
3586
|
-
}
|
3587
|
-
arg1 = static_cast< TagLib::MP4::CoverArt::Format >(val1);
|
3588
|
-
{
|
3589
|
-
tmp2 = ruby_string_to_taglib_bytevector(argv[1]);
|
3590
|
-
arg2 = &tmp2;
|
3524
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3525
|
+
if (!SWIG_IsOK(res1)) {
|
3526
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toByte", 1, self ));
|
3591
3527
|
}
|
3592
|
-
|
3593
|
-
|
3594
|
-
|
3595
|
-
return
|
3528
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3529
|
+
result = (unsigned char)((TagLib::MP4::Item const *)arg1)->toByte();
|
3530
|
+
vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
3531
|
+
return vresult;
|
3596
3532
|
fail:
|
3597
3533
|
return Qnil;
|
3598
3534
|
}
|
3599
3535
|
|
3600
3536
|
|
3601
|
-
SWIGINTERN void
|
3602
|
-
free_TagLib_MP4_CoverArt(void *self) {
|
3603
|
-
TagLib::MP4::CoverArt *arg1 = (TagLib::MP4::CoverArt *)self;
|
3604
|
-
SWIG_RubyRemoveTracking(arg1);
|
3605
|
-
delete arg1;
|
3606
|
-
}
|
3607
|
-
|
3608
|
-
SWIGINTERN VALUE
|
3609
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3610
|
-
_wrap_CoverArt_allocate(VALUE self)
|
3611
|
-
#else
|
3612
|
-
_wrap_CoverArt_allocate(int argc, VALUE *argv, VALUE self)
|
3613
|
-
#endif
|
3614
|
-
{
|
3615
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__CoverArt);
|
3616
|
-
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3617
|
-
rb_obj_call_init(vresult, argc, argv);
|
3618
|
-
#endif
|
3619
|
-
return vresult;
|
3620
|
-
}
|
3621
|
-
|
3622
|
-
|
3623
3537
|
SWIGINTERN VALUE
|
3624
|
-
|
3625
|
-
TagLib::MP4::
|
3538
|
+
_wrap_Item_to_uint(int argc, VALUE *argv, VALUE self) {
|
3539
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3626
3540
|
void *argp1 = 0 ;
|
3627
3541
|
int res1 = 0 ;
|
3628
|
-
|
3542
|
+
unsigned int result;
|
3543
|
+
VALUE vresult = Qnil;
|
3629
3544
|
|
3630
|
-
if ((argc <
|
3631
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3545
|
+
if ((argc < 0) || (argc > 0)) {
|
3546
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3632
3547
|
}
|
3633
|
-
res1 = SWIG_ConvertPtr(
|
3548
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3634
3549
|
if (!SWIG_IsOK(res1)) {
|
3635
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3636
|
-
}
|
3637
|
-
if (!argp1) {
|
3638
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::CoverArt const &","CoverArt", 1, argv[0]));
|
3550
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toUInt", 1, self ));
|
3639
3551
|
}
|
3640
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
3641
|
-
result = (
|
3642
|
-
|
3643
|
-
|
3644
|
-
return self;
|
3552
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3553
|
+
result = (unsigned int)((TagLib::MP4::Item const *)arg1)->toUInt();
|
3554
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
3555
|
+
return vresult;
|
3645
3556
|
fail:
|
3646
3557
|
return Qnil;
|
3647
3558
|
}
|
3648
3559
|
|
3649
3560
|
|
3650
|
-
SWIGINTERN VALUE
|
3651
|
-
|
3652
|
-
|
3653
|
-
|
3561
|
+
SWIGINTERN VALUE
|
3562
|
+
_wrap_Item_to_long_long(int argc, VALUE *argv, VALUE self) {
|
3563
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3564
|
+
void *argp1 = 0 ;
|
3565
|
+
int res1 = 0 ;
|
3566
|
+
long long result;
|
3567
|
+
VALUE vresult = Qnil;
|
3654
3568
|
|
3655
|
-
argc
|
3656
|
-
|
3657
|
-
for (ii = 0; (ii < argc); ++ii) {
|
3658
|
-
argv[ii] = args[ii];
|
3569
|
+
if ((argc < 0) || (argc > 0)) {
|
3570
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3659
3571
|
}
|
3660
|
-
|
3661
|
-
|
3662
|
-
|
3663
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__CoverArt, SWIG_POINTER_NO_NULL);
|
3664
|
-
_v = SWIG_CheckState(res);
|
3665
|
-
if (_v) {
|
3666
|
-
return _wrap_new_CoverArt__SWIG_1(nargs, args, self);
|
3667
|
-
}
|
3572
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3573
|
+
if (!SWIG_IsOK(res1)) {
|
3574
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toLongLong", 1, self ));
|
3668
3575
|
}
|
3669
|
-
|
3670
|
-
|
3671
|
-
|
3672
|
-
|
3673
|
-
|
3674
|
-
|
3675
|
-
|
3676
|
-
|
3677
|
-
|
3678
|
-
|
3679
|
-
|
3680
|
-
|
3681
|
-
|
3576
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3577
|
+
result = (long long)((TagLib::MP4::Item const *)arg1)->toLongLong();
|
3578
|
+
vresult = SWIG_From_long_SS_long(static_cast< long long >(result));
|
3579
|
+
return vresult;
|
3580
|
+
fail:
|
3581
|
+
return Qnil;
|
3582
|
+
}
|
3583
|
+
|
3584
|
+
|
3585
|
+
SWIGINTERN VALUE
|
3586
|
+
_wrap_Item_to_bool(int argc, VALUE *argv, VALUE self) {
|
3587
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3588
|
+
void *argp1 = 0 ;
|
3589
|
+
int res1 = 0 ;
|
3590
|
+
bool result;
|
3591
|
+
VALUE vresult = Qnil;
|
3592
|
+
|
3593
|
+
if ((argc < 0) || (argc > 0)) {
|
3594
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3682
3595
|
}
|
3596
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3597
|
+
if (!SWIG_IsOK(res1)) {
|
3598
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toBool", 1, self ));
|
3599
|
+
}
|
3600
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3601
|
+
result = (bool)((TagLib::MP4::Item const *)arg1)->toBool();
|
3602
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3603
|
+
return vresult;
|
3604
|
+
fail:
|
3605
|
+
return Qnil;
|
3606
|
+
}
|
3607
|
+
|
3608
|
+
|
3609
|
+
SWIGINTERN VALUE
|
3610
|
+
_wrap_Item_to_int_pair(int argc, VALUE *argv, VALUE self) {
|
3611
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3612
|
+
void *argp1 = 0 ;
|
3613
|
+
int res1 = 0 ;
|
3614
|
+
TagLib::MP4::Item::IntPair result;
|
3615
|
+
VALUE vresult = Qnil;
|
3683
3616
|
|
3617
|
+
if ((argc < 0) || (argc > 0)) {
|
3618
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3619
|
+
}
|
3620
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3621
|
+
if (!SWIG_IsOK(res1)) {
|
3622
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toIntPair", 1, self ));
|
3623
|
+
}
|
3624
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3625
|
+
result = ((TagLib::MP4::Item const *)arg1)->toIntPair();
|
3626
|
+
{
|
3627
|
+
vresult = taglib_mp4_item_int_pair_to_ruby_array(result);
|
3628
|
+
}
|
3629
|
+
return vresult;
|
3684
3630
|
fail:
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3631
|
+
return Qnil;
|
3632
|
+
}
|
3633
|
+
|
3634
|
+
|
3635
|
+
SWIGINTERN VALUE
|
3636
|
+
_wrap_Item_to_string_list(int argc, VALUE *argv, VALUE self) {
|
3637
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3638
|
+
void *argp1 = 0 ;
|
3639
|
+
int res1 = 0 ;
|
3640
|
+
TagLib::StringList result;
|
3641
|
+
VALUE vresult = Qnil;
|
3688
3642
|
|
3643
|
+
if ((argc < 0) || (argc > 0)) {
|
3644
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3645
|
+
}
|
3646
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3647
|
+
if (!SWIG_IsOK(res1)) {
|
3648
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toStringList", 1, self ));
|
3649
|
+
}
|
3650
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3651
|
+
result = ((TagLib::MP4::Item const *)arg1)->toStringList();
|
3652
|
+
{
|
3653
|
+
vresult = taglib_string_list_to_ruby_array(result);
|
3654
|
+
}
|
3655
|
+
return vresult;
|
3656
|
+
fail:
|
3689
3657
|
return Qnil;
|
3690
3658
|
}
|
3691
3659
|
|
3692
3660
|
|
3693
3661
|
SWIGINTERN VALUE
|
3694
|
-
|
3695
|
-
TagLib::MP4::
|
3662
|
+
_wrap_Item_to_byte_vector_list(int argc, VALUE *argv, VALUE self) {
|
3663
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3696
3664
|
void *argp1 = 0 ;
|
3697
3665
|
int res1 = 0 ;
|
3698
|
-
TagLib::
|
3666
|
+
TagLib::ByteVectorList result;
|
3699
3667
|
VALUE vresult = Qnil;
|
3700
3668
|
|
3701
3669
|
if ((argc < 0) || (argc > 0)) {
|
3702
3670
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3703
3671
|
}
|
3704
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
3672
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3705
3673
|
if (!SWIG_IsOK(res1)) {
|
3706
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3674
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toByteVectorList", 1, self ));
|
3675
|
+
}
|
3676
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3677
|
+
result = ((TagLib::MP4::Item const *)arg1)->toByteVectorList();
|
3678
|
+
{
|
3679
|
+
vresult = taglib_bytevectorlist_to_ruby_array(result);
|
3707
3680
|
}
|
3708
|
-
arg1 = reinterpret_cast< TagLib::MP4::CoverArt * >(argp1);
|
3709
|
-
result = (TagLib::MP4::CoverArt::Format)((TagLib::MP4::CoverArt const *)arg1)->format();
|
3710
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
3711
3681
|
return vresult;
|
3712
3682
|
fail:
|
3713
3683
|
return Qnil;
|
@@ -3715,24 +3685,24 @@ fail:
|
|
3715
3685
|
|
3716
3686
|
|
3717
3687
|
SWIGINTERN VALUE
|
3718
|
-
|
3719
|
-
TagLib::MP4::
|
3688
|
+
_wrap_Item_to_cover_art_list(int argc, VALUE *argv, VALUE self) {
|
3689
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3720
3690
|
void *argp1 = 0 ;
|
3721
3691
|
int res1 = 0 ;
|
3722
|
-
TagLib::
|
3692
|
+
TagLib::MP4::CoverArtList result;
|
3723
3693
|
VALUE vresult = Qnil;
|
3724
3694
|
|
3725
3695
|
if ((argc < 0) || (argc > 0)) {
|
3726
3696
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3727
3697
|
}
|
3728
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
3698
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3729
3699
|
if (!SWIG_IsOK(res1)) {
|
3730
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
3700
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toCoverArtList", 1, self ));
|
3731
3701
|
}
|
3732
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
3733
|
-
result = ((TagLib::MP4::
|
3702
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3703
|
+
result = ((TagLib::MP4::Item const *)arg1)->toCoverArtList();
|
3734
3704
|
{
|
3735
|
-
vresult =
|
3705
|
+
vresult = taglib_cover_art_list_to_ruby_array(result);
|
3736
3706
|
}
|
3737
3707
|
return vresult;
|
3738
3708
|
fail:
|
@@ -3740,237 +3710,267 @@ fail:
|
|
3740
3710
|
}
|
3741
3711
|
|
3742
3712
|
|
3743
|
-
|
3713
|
+
SWIGINTERN VALUE
|
3714
|
+
_wrap_Item_validq___(int argc, VALUE *argv, VALUE self) {
|
3715
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3716
|
+
void *argp1 = 0 ;
|
3717
|
+
int res1 = 0 ;
|
3718
|
+
bool result;
|
3719
|
+
VALUE vresult = Qnil;
|
3720
|
+
|
3721
|
+
if ((argc < 0) || (argc > 0)) {
|
3722
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3723
|
+
}
|
3724
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3725
|
+
if (!SWIG_IsOK(res1)) {
|
3726
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","isValid", 1, self ));
|
3727
|
+
}
|
3728
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3729
|
+
result = (bool)((TagLib::MP4::Item const *)arg1)->isValid();
|
3730
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3731
|
+
return vresult;
|
3732
|
+
fail:
|
3733
|
+
return Qnil;
|
3734
|
+
}
|
3735
|
+
|
3744
3736
|
|
3745
3737
|
SWIGINTERN VALUE
|
3746
|
-
|
3747
|
-
TagLib::MP4::Item *
|
3738
|
+
_wrap_Item_type(int argc, VALUE *argv, VALUE self) {
|
3739
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3740
|
+
void *argp1 = 0 ;
|
3741
|
+
int res1 = 0 ;
|
3742
|
+
TagLib::MP4::Item::Type result;
|
3743
|
+
VALUE vresult = Qnil;
|
3748
3744
|
|
3749
3745
|
if ((argc < 0) || (argc > 0)) {
|
3750
3746
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3751
3747
|
}
|
3752
|
-
|
3753
|
-
|
3754
|
-
|
3755
|
-
|
3748
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3749
|
+
if (!SWIG_IsOK(res1)) {
|
3750
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","type", 1, self ));
|
3751
|
+
}
|
3752
|
+
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3753
|
+
result = (TagLib::MP4::Item::Type)((TagLib::MP4::Item const *)arg1)->type();
|
3754
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
3755
|
+
return vresult;
|
3756
3756
|
fail:
|
3757
3757
|
return Qnil;
|
3758
3758
|
}
|
3759
3759
|
|
3760
3760
|
|
3761
|
+
/*
|
3762
|
+
Document-method: TagLib::MP4::Item.==
|
3763
|
+
|
3764
|
+
call-seq:
|
3765
|
+
==(other) -> bool
|
3766
|
+
|
3767
|
+
Equality comparison operator.
|
3768
|
+
*/
|
3761
3769
|
SWIGINTERN VALUE
|
3762
|
-
|
3763
|
-
TagLib::MP4::Item *arg1 = 0 ;
|
3770
|
+
_wrap_Item___eq__(int argc, VALUE *argv, VALUE self) {
|
3771
|
+
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
3772
|
+
TagLib::MP4::Item *arg2 = 0 ;
|
3764
3773
|
void *argp1 = 0 ;
|
3765
3774
|
int res1 = 0 ;
|
3766
|
-
|
3775
|
+
void *argp2 = 0 ;
|
3776
|
+
int res2 = 0 ;
|
3777
|
+
bool result;
|
3778
|
+
VALUE vresult = Qnil;
|
3767
3779
|
|
3768
3780
|
if ((argc < 1) || (argc > 1)) {
|
3769
3781
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3770
3782
|
}
|
3771
|
-
res1 = SWIG_ConvertPtr(
|
3783
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3772
3784
|
if (!SWIG_IsOK(res1)) {
|
3773
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const
|
3774
|
-
}
|
3775
|
-
if (!argp1) {
|
3776
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","Item", 1, argv[0]));
|
3785
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","operator ==", 1, self ));
|
3777
3786
|
}
|
3778
3787
|
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
3779
|
-
|
3780
|
-
|
3781
|
-
|
3782
|
-
|
3788
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
3789
|
+
if (!SWIG_IsOK(res2)) {
|
3790
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","operator ==", 2, argv[0] ));
|
3791
|
+
}
|
3792
|
+
if (!argp2) {
|
3793
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","operator ==", 2, argv[0]));
|
3794
|
+
}
|
3795
|
+
arg2 = reinterpret_cast< TagLib::MP4::Item * >(argp2);
|
3796
|
+
result = (bool)((TagLib::MP4::Item const *)arg1)->operator ==((TagLib::MP4::Item const &)*arg2);
|
3797
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3798
|
+
return vresult;
|
3783
3799
|
fail:
|
3784
3800
|
return Qnil;
|
3785
3801
|
}
|
3786
3802
|
|
3787
3803
|
|
3788
|
-
SWIGINTERN void
|
3789
|
-
free_TagLib_MP4_Item(void *self) {
|
3790
|
-
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *)self;
|
3791
|
-
SWIG_RubyRemoveTracking(arg1);
|
3792
|
-
delete arg1;
|
3793
|
-
}
|
3794
|
-
|
3795
3804
|
SWIGINTERN VALUE
|
3796
|
-
|
3797
|
-
|
3798
|
-
|
3805
|
+
_wrap_Item_from_bool(int argc, VALUE *argv, VALUE self) {
|
3806
|
+
bool arg1 ;
|
3807
|
+
bool val1 ;
|
3799
3808
|
int ecode1 = 0 ;
|
3800
3809
|
TagLib::MP4::Item *result = 0 ;
|
3810
|
+
VALUE vresult = Qnil;
|
3801
3811
|
|
3802
3812
|
if ((argc < 1) || (argc > 1)) {
|
3803
3813
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3804
3814
|
}
|
3805
|
-
ecode1 =
|
3815
|
+
ecode1 = SWIG_AsVal_bool(argv[0], &val1);
|
3806
3816
|
if (!SWIG_IsOK(ecode1)) {
|
3807
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "
|
3817
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","TagLib_MP4_Item_from_bool", 1, argv[0] ));
|
3808
3818
|
}
|
3809
|
-
arg1 = static_cast<
|
3810
|
-
result = (TagLib::MP4::Item *)
|
3811
|
-
|
3812
|
-
|
3813
|
-
return self;
|
3819
|
+
arg1 = static_cast< bool >(val1);
|
3820
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_bool(arg1);
|
3821
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3822
|
+
return vresult;
|
3814
3823
|
fail:
|
3815
3824
|
return Qnil;
|
3816
3825
|
}
|
3817
3826
|
|
3818
3827
|
|
3819
3828
|
SWIGINTERN VALUE
|
3820
|
-
|
3829
|
+
_wrap_Item_from_byte(int argc, VALUE *argv, VALUE self) {
|
3821
3830
|
unsigned char arg1 ;
|
3822
3831
|
unsigned char val1 ;
|
3823
3832
|
int ecode1 = 0 ;
|
3824
3833
|
TagLib::MP4::Item *result = 0 ;
|
3834
|
+
VALUE vresult = Qnil;
|
3825
3835
|
|
3826
3836
|
if ((argc < 1) || (argc > 1)) {
|
3827
3837
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3828
3838
|
}
|
3829
3839
|
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3830
3840
|
if (!SWIG_IsOK(ecode1)) {
|
3831
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned char","
|
3841
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned char","TagLib_MP4_Item_from_byte", 1, argv[0] ));
|
3832
3842
|
}
|
3833
3843
|
arg1 = static_cast< unsigned char >(val1);
|
3834
|
-
result = (TagLib::MP4::Item *)
|
3835
|
-
|
3836
|
-
|
3837
|
-
return self;
|
3844
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_byte(arg1);
|
3845
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3846
|
+
return vresult;
|
3838
3847
|
fail:
|
3839
3848
|
return Qnil;
|
3840
3849
|
}
|
3841
3850
|
|
3842
3851
|
|
3843
3852
|
SWIGINTERN VALUE
|
3844
|
-
|
3853
|
+
_wrap_Item_from_uint(int argc, VALUE *argv, VALUE self) {
|
3845
3854
|
unsigned int arg1 ;
|
3846
3855
|
unsigned int val1 ;
|
3847
3856
|
int ecode1 = 0 ;
|
3848
3857
|
TagLib::MP4::Item *result = 0 ;
|
3858
|
+
VALUE vresult = Qnil;
|
3849
3859
|
|
3850
3860
|
if ((argc < 1) || (argc > 1)) {
|
3851
3861
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3852
3862
|
}
|
3853
3863
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
3854
3864
|
if (!SWIG_IsOK(ecode1)) {
|
3855
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","
|
3865
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","TagLib_MP4_Item_from_uint", 1, argv[0] ));
|
3856
3866
|
}
|
3857
3867
|
arg1 = static_cast< unsigned int >(val1);
|
3858
|
-
result = (TagLib::MP4::Item *)
|
3859
|
-
|
3860
|
-
|
3861
|
-
return self;
|
3868
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_uint(arg1);
|
3869
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3870
|
+
return vresult;
|
3862
3871
|
fail:
|
3863
3872
|
return Qnil;
|
3864
3873
|
}
|
3865
3874
|
|
3866
3875
|
|
3867
3876
|
SWIGINTERN VALUE
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3877
|
+
_wrap_Item_from_int(int argc, VALUE *argv, VALUE self) {
|
3878
|
+
int arg1 ;
|
3879
|
+
int val1 ;
|
3871
3880
|
int ecode1 = 0 ;
|
3872
3881
|
TagLib::MP4::Item *result = 0 ;
|
3882
|
+
VALUE vresult = Qnil;
|
3873
3883
|
|
3874
3884
|
if ((argc < 1) || (argc > 1)) {
|
3875
3885
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3876
3886
|
}
|
3877
|
-
ecode1 =
|
3887
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3878
3888
|
if (!SWIG_IsOK(ecode1)) {
|
3879
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "
|
3889
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","TagLib_MP4_Item_from_int", 1, argv[0] ));
|
3880
3890
|
}
|
3881
|
-
arg1 = static_cast<
|
3882
|
-
result = (TagLib::MP4::Item *)
|
3883
|
-
|
3884
|
-
|
3885
|
-
return self;
|
3891
|
+
arg1 = static_cast< int >(val1);
|
3892
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_int(arg1);
|
3893
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3894
|
+
return vresult;
|
3886
3895
|
fail:
|
3887
3896
|
return Qnil;
|
3888
3897
|
}
|
3889
3898
|
|
3890
3899
|
|
3891
3900
|
SWIGINTERN VALUE
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3901
|
+
_wrap_Item_from_long_long(int argc, VALUE *argv, VALUE self) {
|
3902
|
+
long long arg1 ;
|
3903
|
+
long long val1 ;
|
3895
3904
|
int ecode1 = 0 ;
|
3896
3905
|
TagLib::MP4::Item *result = 0 ;
|
3906
|
+
VALUE vresult = Qnil;
|
3897
3907
|
|
3898
3908
|
if ((argc < 1) || (argc > 1)) {
|
3899
3909
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3900
3910
|
}
|
3901
|
-
ecode1 =
|
3911
|
+
ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
|
3902
3912
|
if (!SWIG_IsOK(ecode1)) {
|
3903
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "
|
3913
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "long long","TagLib_MP4_Item_from_long_long", 1, argv[0] ));
|
3904
3914
|
}
|
3905
|
-
arg1 = static_cast<
|
3906
|
-
result = (TagLib::MP4::Item *)
|
3907
|
-
|
3908
|
-
|
3909
|
-
return self;
|
3915
|
+
arg1 = static_cast< long long >(val1);
|
3916
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_long_long(arg1);
|
3917
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3918
|
+
return vresult;
|
3910
3919
|
fail:
|
3911
3920
|
return Qnil;
|
3912
3921
|
}
|
3913
3922
|
|
3914
3923
|
|
3915
3924
|
SWIGINTERN VALUE
|
3916
|
-
|
3917
|
-
|
3918
|
-
|
3919
|
-
int val1 ;
|
3920
|
-
int ecode1 = 0 ;
|
3921
|
-
int val2 ;
|
3922
|
-
int ecode2 = 0 ;
|
3925
|
+
_wrap_Item_from_string_list(int argc, VALUE *argv, VALUE self) {
|
3926
|
+
TagLib::StringList *arg1 = 0 ;
|
3927
|
+
TagLib::StringList tmp1 ;
|
3923
3928
|
TagLib::MP4::Item *result = 0 ;
|
3929
|
+
VALUE vresult = Qnil;
|
3924
3930
|
|
3925
|
-
if ((argc <
|
3926
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3931
|
+
if ((argc < 1) || (argc > 1)) {
|
3932
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3927
3933
|
}
|
3928
|
-
|
3929
|
-
|
3930
|
-
|
3931
|
-
}
|
3932
|
-
|
3933
|
-
|
3934
|
-
|
3935
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Item", 2, argv[1] ));
|
3936
|
-
}
|
3937
|
-
arg2 = static_cast< int >(val2);
|
3938
|
-
result = (TagLib::MP4::Item *)new TagLib::MP4::Item(arg1,arg2);
|
3939
|
-
DATA_PTR(self) = result;
|
3940
|
-
SWIG_RubyAddTracking(result, self);
|
3941
|
-
return self;
|
3934
|
+
{
|
3935
|
+
tmp1 = ruby_array_to_taglib_string_list(argv[0]);
|
3936
|
+
arg1 = &tmp1;
|
3937
|
+
}
|
3938
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_string_list((TagLib::StringList const &)*arg1);
|
3939
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3940
|
+
return vresult;
|
3942
3941
|
fail:
|
3943
3942
|
return Qnil;
|
3944
3943
|
}
|
3945
3944
|
|
3946
3945
|
|
3947
3946
|
SWIGINTERN VALUE
|
3948
|
-
|
3949
|
-
TagLib::
|
3950
|
-
TagLib::
|
3947
|
+
_wrap_Item_from_cover_art_list(int argc, VALUE *argv, VALUE self) {
|
3948
|
+
TagLib::MP4::CoverArtList *arg1 = 0 ;
|
3949
|
+
TagLib::MP4::CoverArtList tmp1 ;
|
3951
3950
|
TagLib::MP4::Item *result = 0 ;
|
3951
|
+
VALUE vresult = Qnil;
|
3952
3952
|
|
3953
3953
|
if ((argc < 1) || (argc > 1)) {
|
3954
3954
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3955
3955
|
}
|
3956
3956
|
{
|
3957
|
-
tmp1 =
|
3957
|
+
tmp1 = ruby_array_to_taglib_cover_art_list(argv[0]);
|
3958
3958
|
arg1 = &tmp1;
|
3959
3959
|
}
|
3960
|
-
result = (TagLib::MP4::Item *)
|
3961
|
-
|
3962
|
-
|
3963
|
-
return self;
|
3960
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_cover_art_list((TagLib::MP4::CoverArtList const &)*arg1);
|
3961
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3962
|
+
return vresult;
|
3964
3963
|
fail:
|
3965
3964
|
return Qnil;
|
3966
3965
|
}
|
3967
3966
|
|
3968
3967
|
|
3969
3968
|
SWIGINTERN VALUE
|
3970
|
-
|
3969
|
+
_wrap_Item_from_byte_vector_list(int argc, VALUE *argv, VALUE self) {
|
3971
3970
|
TagLib::ByteVectorList *arg1 = 0 ;
|
3972
3971
|
TagLib::ByteVectorList tmp1 ;
|
3973
3972
|
TagLib::MP4::Item *result = 0 ;
|
3973
|
+
VALUE vresult = Qnil;
|
3974
3974
|
|
3975
3975
|
if ((argc < 1) || (argc > 1)) {
|
3976
3976
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
@@ -3979,7 +3979,51 @@ _wrap_new_Item__SWIG_9(int argc, VALUE *argv, VALUE self) {
|
|
3979
3979
|
tmp1 = ruby_array_to_taglib_bytevectorlist(argv[0]);
|
3980
3980
|
arg1 = &tmp1;
|
3981
3981
|
}
|
3982
|
-
result = (TagLib::MP4::Item *)
|
3982
|
+
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_byte_vector_list((TagLib::ByteVectorList const &)*arg1);
|
3983
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
3984
|
+
return vresult;
|
3985
|
+
fail:
|
3986
|
+
return Qnil;
|
3987
|
+
}
|
3988
|
+
|
3989
|
+
|
3990
|
+
static swig_class SwigClassItemMap;
|
3991
|
+
|
3992
|
+
SWIGINTERN VALUE
|
3993
|
+
_wrap_new_ItemMap__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3994
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *result = 0 ;
|
3995
|
+
|
3996
|
+
if ((argc < 0) || (argc > 0)) {
|
3997
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3998
|
+
}
|
3999
|
+
result = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)new TagLib::Map< TagLib::String,TagLib::MP4::Item >();
|
4000
|
+
DATA_PTR(self) = result;
|
4001
|
+
SWIG_RubyAddTracking(result, self);
|
4002
|
+
return self;
|
4003
|
+
fail:
|
4004
|
+
return Qnil;
|
4005
|
+
}
|
4006
|
+
|
4007
|
+
|
4008
|
+
SWIGINTERN VALUE
|
4009
|
+
_wrap_new_ItemMap__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4010
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = 0 ;
|
4011
|
+
void *argp1 = 0 ;
|
4012
|
+
int res1 = 0 ;
|
4013
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *result = 0 ;
|
4014
|
+
|
4015
|
+
if ((argc < 1) || (argc > 1)) {
|
4016
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4017
|
+
}
|
4018
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 );
|
4019
|
+
if (!SWIG_IsOK(res1)) {
|
4020
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const &","Map<(TagLib::String,TagLib::MP4::Item)>", 1, argv[0] ));
|
4021
|
+
}
|
4022
|
+
if (!argp1) {
|
4023
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const &","Map<(TagLib::String,TagLib::MP4::Item)>", 1, argv[0]));
|
4024
|
+
}
|
4025
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4026
|
+
result = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)new TagLib::Map< TagLib::String,TagLib::MP4::Item >((TagLib::Map< TagLib::String,TagLib::MP4::Item > const &)*arg1);
|
3983
4027
|
DATA_PTR(self) = result;
|
3984
4028
|
SWIG_RubyAddTracking(result, self);
|
3985
4029
|
return self;
|
@@ -3990,12 +4034,12 @@ fail:
|
|
3990
4034
|
|
3991
4035
|
SWIGINTERN VALUE
|
3992
4036
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3993
|
-
|
4037
|
+
_wrap_ItemMap_allocate(VALUE self)
|
3994
4038
|
#else
|
3995
|
-
|
4039
|
+
_wrap_ItemMap_allocate(int argc, VALUE *argv, VALUE self)
|
3996
4040
|
#endif
|
3997
4041
|
{
|
3998
|
-
VALUE vresult = SWIG_NewClassInstance(self,
|
4042
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t);
|
3999
4043
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4000
4044
|
rb_obj_call_init(vresult, argc, argv);
|
4001
4045
|
#endif
|
@@ -4004,19 +4048,15 @@ _wrap_Item_allocate(int argc, VALUE *argv, VALUE self)
|
|
4004
4048
|
|
4005
4049
|
|
4006
4050
|
SWIGINTERN VALUE
|
4007
|
-
|
4008
|
-
TagLib::MP4::
|
4009
|
-
TagLib::MP4::
|
4010
|
-
TagLib::MP4::Item *result = 0 ;
|
4051
|
+
_wrap_new_ItemMap__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
4052
|
+
SwigValueWrapper< std::initializer_list< std::pair< TagLib::String const,TagLib::MP4::Item > > > arg1 ;
|
4053
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *result = 0 ;
|
4011
4054
|
|
4012
4055
|
if ((argc < 1) || (argc > 1)) {
|
4013
4056
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4014
4057
|
}
|
4015
|
-
|
4016
|
-
|
4017
|
-
arg1 = &tmp1;
|
4018
|
-
}
|
4019
|
-
result = (TagLib::MP4::Item *)new TagLib::MP4::Item((TagLib::MP4::CoverArtList const &)*arg1);
|
4058
|
+
|
4059
|
+
result = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)new TagLib::Map< TagLib::String,TagLib::MP4::Item >(arg1);
|
4020
4060
|
DATA_PTR(self) = result;
|
4021
4061
|
SWIG_RubyAddTracking(result, self);
|
4022
4062
|
return self;
|
@@ -4025,158 +4065,363 @@ fail:
|
|
4025
4065
|
}
|
4026
4066
|
|
4027
4067
|
|
4028
|
-
SWIGINTERN VALUE
|
4068
|
+
SWIGINTERN VALUE _wrap_new_ItemMap(int nargs, VALUE *args, VALUE self) {
|
4029
4069
|
int argc;
|
4030
|
-
VALUE argv[
|
4070
|
+
VALUE argv[1];
|
4031
4071
|
int ii;
|
4032
4072
|
|
4033
4073
|
argc = nargs;
|
4034
|
-
if (argc >
|
4074
|
+
if (argc > 1) SWIG_fail;
|
4035
4075
|
for (ii = 0; (ii < argc); ++ii) {
|
4036
4076
|
argv[ii] = args[ii];
|
4037
4077
|
}
|
4038
4078
|
if (argc == 0) {
|
4039
|
-
return
|
4040
|
-
}
|
4041
|
-
if (argc == 1) {
|
4042
|
-
int _v = 0;
|
4043
|
-
void *vptr = 0;
|
4044
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_NO_NULL);
|
4045
|
-
_v = SWIG_CheckState(res);
|
4046
|
-
if (_v) {
|
4047
|
-
return _wrap_new_Item__SWIG_1(nargs, args, self);
|
4048
|
-
}
|
4049
|
-
}
|
4050
|
-
if (argc == 1) {
|
4051
|
-
int _v = 0;
|
4052
|
-
void *vptr = 0;
|
4053
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVectorList, SWIG_POINTER_NO_NULL);
|
4054
|
-
_v = SWIG_CheckState(res);
|
4055
|
-
if (_v) {
|
4056
|
-
return _wrap_new_Item__SWIG_9(nargs, args, self);
|
4057
|
-
}
|
4079
|
+
return _wrap_new_ItemMap__SWIG_0(nargs, args, self);
|
4058
4080
|
}
|
4059
4081
|
if (argc == 1) {
|
4060
4082
|
int _v = 0;
|
4061
4083
|
void *vptr = 0;
|
4062
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr,
|
4084
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, SWIG_POINTER_NO_NULL);
|
4063
4085
|
_v = SWIG_CheckState(res);
|
4064
4086
|
if (_v) {
|
4065
|
-
return
|
4087
|
+
return _wrap_new_ItemMap__SWIG_1(nargs, args, self);
|
4066
4088
|
}
|
4067
4089
|
}
|
4068
4090
|
if (argc == 1) {
|
4069
4091
|
int _v = 0;
|
4070
|
-
|
4071
|
-
int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL);
|
4072
|
-
_v = SWIG_CheckState(res);
|
4073
|
-
}
|
4092
|
+
|
4074
4093
|
if (_v) {
|
4075
|
-
return
|
4094
|
+
return _wrap_new_ItemMap__SWIG_2(nargs, args, self);
|
4076
4095
|
}
|
4077
4096
|
}
|
4078
|
-
|
4079
|
-
|
4080
|
-
|
4081
|
-
|
4082
|
-
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4097
|
+
|
4098
|
+
fail:
|
4099
|
+
Ruby_Format_OverloadedError( argc, 1, "ItemMap.new",
|
4100
|
+
" ItemMap.new()\n"
|
4101
|
+
" ItemMap.new(TagLib::Map< TagLib::String,TagLib::MP4::Item > const &m)\n"
|
4102
|
+
" ItemMap.new(std::initializer_list< std::pair< TagLib::String const,TagLib::MP4::Item > > init)\n");
|
4103
|
+
|
4104
|
+
return Qnil;
|
4105
|
+
}
|
4106
|
+
|
4107
|
+
|
4108
|
+
SWIGINTERN void
|
4109
|
+
free_TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg_(void *self) {
|
4110
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)self;
|
4111
|
+
SWIG_RubyRemoveTracking(arg1);
|
4112
|
+
delete arg1;
|
4113
|
+
}
|
4114
|
+
|
4115
|
+
/*
|
4116
|
+
Document-method: TagLib::MP4::ItemMap.size
|
4117
|
+
|
4118
|
+
call-seq:
|
4119
|
+
size -> unsigned int
|
4120
|
+
|
4121
|
+
Size or Length of the ItemMap.
|
4122
|
+
*/
|
4123
|
+
SWIGINTERN VALUE
|
4124
|
+
_wrap_ItemMap_size(int argc, VALUE *argv, VALUE self) {
|
4125
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4126
|
+
void *argp1 = 0 ;
|
4127
|
+
int res1 = 0 ;
|
4128
|
+
unsigned int result;
|
4129
|
+
VALUE vresult = Qnil;
|
4130
|
+
|
4131
|
+
if ((argc < 0) || (argc > 0)) {
|
4132
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4087
4133
|
}
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4091
|
-
int res = SWIG_AsVal_int(argv[0], NULL);
|
4092
|
-
_v = SWIG_CheckState(res);
|
4093
|
-
}
|
4094
|
-
if (_v) {
|
4095
|
-
return _wrap_new_Item__SWIG_2(nargs, args, self);
|
4096
|
-
}
|
4134
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4135
|
+
if (!SWIG_IsOK(res1)) {
|
4136
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","size", 1, self ));
|
4097
4137
|
}
|
4098
|
-
|
4099
|
-
|
4100
|
-
|
4101
|
-
|
4102
|
-
|
4103
|
-
|
4104
|
-
|
4105
|
-
|
4106
|
-
|
4138
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4139
|
+
result = (unsigned int)((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->size();
|
4140
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
4141
|
+
return vresult;
|
4142
|
+
fail:
|
4143
|
+
return Qnil;
|
4144
|
+
}
|
4145
|
+
|
4146
|
+
|
4147
|
+
SWIGINTERN VALUE
|
4148
|
+
_wrap_ItemMap_emptyq___(int argc, VALUE *argv, VALUE self) {
|
4149
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4150
|
+
void *argp1 = 0 ;
|
4151
|
+
int res1 = 0 ;
|
4152
|
+
bool result;
|
4153
|
+
VALUE vresult = Qnil;
|
4154
|
+
|
4155
|
+
if ((argc < 0) || (argc > 0)) {
|
4156
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4107
4157
|
}
|
4108
|
-
|
4109
|
-
|
4110
|
-
|
4111
|
-
_v = TYPE(argv[0]) == T_ARRAY ? 1 : 0;
|
4112
|
-
}
|
4113
|
-
if (_v) {
|
4114
|
-
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
4115
|
-
}
|
4158
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4159
|
+
if (!SWIG_IsOK(res1)) {
|
4160
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","isEmpty", 1, self ));
|
4116
4161
|
}
|
4117
|
-
|
4118
|
-
|
4119
|
-
|
4120
|
-
|
4121
|
-
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
|
4162
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4163
|
+
result = (bool)((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->isEmpty();
|
4164
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4165
|
+
return vresult;
|
4166
|
+
fail:
|
4167
|
+
return Qnil;
|
4168
|
+
}
|
4169
|
+
|
4170
|
+
|
4171
|
+
SWIGINTERN VALUE
|
4172
|
+
_wrap_ItemMap_contains(int argc, VALUE *argv, VALUE self) {
|
4173
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4174
|
+
TagLib::String *arg2 = 0 ;
|
4175
|
+
void *argp1 = 0 ;
|
4176
|
+
int res1 = 0 ;
|
4177
|
+
TagLib::String tmp2 ;
|
4178
|
+
bool result;
|
4179
|
+
VALUE vresult = Qnil;
|
4180
|
+
|
4181
|
+
if ((argc < 1) || (argc > 1)) {
|
4182
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4183
|
+
}
|
4184
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4185
|
+
if (!SWIG_IsOK(res1)) {
|
4186
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","contains", 1, self ));
|
4187
|
+
}
|
4188
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4189
|
+
{
|
4190
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4191
|
+
arg2 = &tmp2;
|
4192
|
+
}
|
4193
|
+
result = (bool)((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->contains((TagLib::String const &)*arg2);
|
4194
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4195
|
+
return vresult;
|
4196
|
+
fail:
|
4197
|
+
return Qnil;
|
4198
|
+
}
|
4199
|
+
|
4200
|
+
|
4201
|
+
SWIGINTERN VALUE
|
4202
|
+
_wrap_ItemMap_value__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4203
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4204
|
+
TagLib::String *arg2 = 0 ;
|
4205
|
+
TagLib::MP4::Item *arg3 = 0 ;
|
4206
|
+
void *argp1 = 0 ;
|
4207
|
+
int res1 = 0 ;
|
4208
|
+
TagLib::String tmp2 ;
|
4209
|
+
void *argp3 = 0 ;
|
4210
|
+
int res3 = 0 ;
|
4211
|
+
TagLib::MP4::Item result;
|
4212
|
+
VALUE vresult = Qnil;
|
4213
|
+
|
4214
|
+
if ((argc < 2) || (argc > 2)) {
|
4215
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4216
|
+
}
|
4217
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4218
|
+
if (!SWIG_IsOK(res1)) {
|
4219
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","value", 1, self ));
|
4220
|
+
}
|
4221
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4222
|
+
{
|
4223
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4224
|
+
arg2 = &tmp2;
|
4225
|
+
}
|
4226
|
+
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
4227
|
+
if (!SWIG_IsOK(res3)) {
|
4228
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","value", 3, argv[1] ));
|
4229
|
+
}
|
4230
|
+
if (!argp3) {
|
4231
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","value", 3, argv[1]));
|
4232
|
+
}
|
4233
|
+
arg3 = reinterpret_cast< TagLib::MP4::Item * >(argp3);
|
4234
|
+
result = ((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->value((TagLib::String const &)*arg2,(TagLib::MP4::Item const &)*arg3);
|
4235
|
+
vresult = SWIG_NewPointerObj((new TagLib::MP4::Item(result)), SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_OWN | 0 );
|
4236
|
+
return vresult;
|
4237
|
+
fail:
|
4238
|
+
return Qnil;
|
4239
|
+
}
|
4240
|
+
|
4241
|
+
|
4242
|
+
SWIGINTERN VALUE
|
4243
|
+
_wrap_ItemMap_value__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4244
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4245
|
+
TagLib::String *arg2 = 0 ;
|
4246
|
+
void *argp1 = 0 ;
|
4247
|
+
int res1 = 0 ;
|
4248
|
+
TagLib::String tmp2 ;
|
4249
|
+
TagLib::MP4::Item result;
|
4250
|
+
VALUE vresult = Qnil;
|
4251
|
+
|
4252
|
+
if ((argc < 1) || (argc > 1)) {
|
4253
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4254
|
+
}
|
4255
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4256
|
+
if (!SWIG_IsOK(res1)) {
|
4257
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","value", 1, self ));
|
4258
|
+
}
|
4259
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4260
|
+
{
|
4261
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4262
|
+
arg2 = &tmp2;
|
4263
|
+
}
|
4264
|
+
result = ((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->value((TagLib::String const &)*arg2);
|
4265
|
+
vresult = SWIG_NewPointerObj((new TagLib::MP4::Item(result)), SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_OWN | 0 );
|
4266
|
+
return vresult;
|
4267
|
+
fail:
|
4268
|
+
return Qnil;
|
4269
|
+
}
|
4270
|
+
|
4271
|
+
|
4272
|
+
SWIGINTERN VALUE _wrap_ItemMap_value(int nargs, VALUE *args, VALUE self) {
|
4273
|
+
int argc;
|
4274
|
+
VALUE argv[4];
|
4275
|
+
int ii;
|
4276
|
+
|
4277
|
+
argc = nargs + 1;
|
4278
|
+
argv[0] = self;
|
4279
|
+
if (argc > 4) SWIG_fail;
|
4280
|
+
for (ii = 1; (ii < argc); ++ii) {
|
4281
|
+
argv[ii] = args[ii-1];
|
4126
4282
|
}
|
4127
4283
|
if (argc == 2) {
|
4128
4284
|
int _v = 0;
|
4129
|
-
|
4130
|
-
|
4285
|
+
void *vptr = 0;
|
4286
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0);
|
4287
|
+
_v = SWIG_CheckState(res);
|
4288
|
+
if (_v) {
|
4289
|
+
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
4131
4290
|
_v = SWIG_CheckState(res);
|
4291
|
+
if (_v) {
|
4292
|
+
return _wrap_ItemMap_value__SWIG_1(nargs, args, self);
|
4293
|
+
}
|
4132
4294
|
}
|
4295
|
+
}
|
4296
|
+
if (argc == 3) {
|
4297
|
+
int _v = 0;
|
4298
|
+
void *vptr = 0;
|
4299
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0);
|
4300
|
+
_v = SWIG_CheckState(res);
|
4133
4301
|
if (_v) {
|
4134
|
-
|
4135
|
-
|
4136
|
-
_v = SWIG_CheckState(res);
|
4137
|
-
}
|
4302
|
+
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
4303
|
+
_v = SWIG_CheckState(res);
|
4138
4304
|
if (_v) {
|
4139
|
-
|
4305
|
+
void *vptr = 0;
|
4306
|
+
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_NO_NULL);
|
4307
|
+
_v = SWIG_CheckState(res);
|
4308
|
+
if (_v) {
|
4309
|
+
return _wrap_ItemMap_value__SWIG_0(nargs, args, self);
|
4310
|
+
}
|
4140
4311
|
}
|
4141
4312
|
}
|
4142
4313
|
}
|
4143
4314
|
|
4144
4315
|
fail:
|
4145
|
-
Ruby_Format_OverloadedError( argc,
|
4146
|
-
" Item.
|
4147
|
-
"
|
4148
|
-
" Item.new(int value)\n"
|
4149
|
-
" Item.new(unsigned char value)\n"
|
4150
|
-
" Item.new(unsigned int value)\n"
|
4151
|
-
" Item.new(long long value)\n"
|
4152
|
-
" Item.new(bool value)\n"
|
4153
|
-
" Item.new(int first, int second)\n"
|
4154
|
-
" Item.new(TagLib::StringList const &value)\n"
|
4155
|
-
" Item.new(TagLib::ByteVectorList const &value)\n"
|
4156
|
-
" Item.new(TagLib::MP4::CoverArtList const &value)\n");
|
4316
|
+
Ruby_Format_OverloadedError( argc, 4, "ItemMap.value",
|
4317
|
+
" TagLib::MP4::Item ItemMap.value(TagLib::String const &key, TagLib::MP4::Item const &defaultValue)\n"
|
4318
|
+
" TagLib::MP4::Item ItemMap.value(TagLib::String const &key)\n");
|
4157
4319
|
|
4158
4320
|
return Qnil;
|
4159
4321
|
}
|
4160
4322
|
|
4161
4323
|
|
4162
4324
|
SWIGINTERN VALUE
|
4163
|
-
|
4164
|
-
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
4325
|
+
_wrap_ItemMap_swap(int argc, VALUE *argv, VALUE self) {
|
4326
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4327
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg2 = 0 ;
|
4165
4328
|
void *argp1 = 0 ;
|
4166
4329
|
int res1 = 0 ;
|
4167
|
-
|
4330
|
+
void *argp2 = 0 ;
|
4331
|
+
int res2 = 0 ;
|
4332
|
+
|
4333
|
+
if ((argc < 1) || (argc > 1)) {
|
4334
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4335
|
+
}
|
4336
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4337
|
+
if (!SWIG_IsOK(res1)) {
|
4338
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","swap", 1, self ));
|
4339
|
+
}
|
4340
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4341
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 );
|
4342
|
+
if (!SWIG_IsOK(res2)) {
|
4343
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > &","swap", 2, argv[0] ));
|
4344
|
+
}
|
4345
|
+
if (!argp2) {
|
4346
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::Map< TagLib::String,TagLib::MP4::Item > &","swap", 2, argv[0]));
|
4347
|
+
}
|
4348
|
+
arg2 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp2);
|
4349
|
+
(arg1)->swap(*arg2);
|
4350
|
+
return Qnil;
|
4351
|
+
fail:
|
4352
|
+
return Qnil;
|
4353
|
+
}
|
4354
|
+
|
4355
|
+
|
4356
|
+
/*
|
4357
|
+
Document-method: TagLib::MP4::ItemMap.==
|
4358
|
+
|
4359
|
+
call-seq:
|
4360
|
+
==(m) -> bool
|
4361
|
+
|
4362
|
+
Equality comparison operator.
|
4363
|
+
*/
|
4364
|
+
SWIGINTERN VALUE
|
4365
|
+
_wrap_ItemMap___eq__(int argc, VALUE *argv, VALUE self) {
|
4366
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4367
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg2 = 0 ;
|
4368
|
+
void *argp1 = 0 ;
|
4369
|
+
int res1 = 0 ;
|
4370
|
+
void *argp2 = 0 ;
|
4371
|
+
int res2 = 0 ;
|
4372
|
+
bool result;
|
4373
|
+
VALUE vresult = Qnil;
|
4374
|
+
|
4375
|
+
if ((argc < 1) || (argc > 1)) {
|
4376
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4377
|
+
}
|
4378
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4379
|
+
if (!SWIG_IsOK(res1)) {
|
4380
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","operator ==", 1, self ));
|
4381
|
+
}
|
4382
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4383
|
+
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 );
|
4384
|
+
if (!SWIG_IsOK(res2)) {
|
4385
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const &","operator ==", 2, argv[0] ));
|
4386
|
+
}
|
4387
|
+
if (!argp2) {
|
4388
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const &","operator ==", 2, argv[0]));
|
4389
|
+
}
|
4390
|
+
arg2 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp2);
|
4391
|
+
result = (bool)((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->operator ==((TagLib::Map< TagLib::String,TagLib::MP4::Item > const &)*arg2);
|
4392
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4393
|
+
return vresult;
|
4394
|
+
fail:
|
4395
|
+
return Qnil;
|
4396
|
+
}
|
4397
|
+
|
4398
|
+
|
4399
|
+
/*
|
4400
|
+
Document-method: TagLib::MP4::ItemMap.to_a
|
4401
|
+
|
4402
|
+
call-seq:
|
4403
|
+
to_a -> VALUE
|
4404
|
+
|
4405
|
+
Convert ItemMap to an Array.
|
4406
|
+
*/
|
4407
|
+
SWIGINTERN VALUE
|
4408
|
+
_wrap_ItemMap_to_a(int argc, VALUE *argv, VALUE self) {
|
4409
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4410
|
+
void *argp1 = 0 ;
|
4411
|
+
int res1 = 0 ;
|
4412
|
+
VALUE result;
|
4168
4413
|
VALUE vresult = Qnil;
|
4169
4414
|
|
4170
4415
|
if ((argc < 0) || (argc > 0)) {
|
4171
4416
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4172
4417
|
}
|
4173
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4418
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4174
4419
|
if (!SWIG_IsOK(res1)) {
|
4175
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item
|
4420
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","to_a", 1, self ));
|
4176
4421
|
}
|
4177
|
-
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
4178
|
-
result = (
|
4179
|
-
vresult =
|
4422
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4423
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg__to_a(arg1);
|
4424
|
+
vresult = result;
|
4180
4425
|
return vresult;
|
4181
4426
|
fail:
|
4182
4427
|
return Qnil;
|
@@ -4184,80 +4429,326 @@ fail:
|
|
4184
4429
|
|
4185
4430
|
|
4186
4431
|
SWIGINTERN VALUE
|
4187
|
-
|
4188
|
-
TagLib::MP4::Item *arg1 = (TagLib::MP4::Item *) 0 ;
|
4432
|
+
_wrap_ItemMap_to_h(int argc, VALUE *argv, VALUE self) {
|
4433
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4189
4434
|
void *argp1 = 0 ;
|
4190
4435
|
int res1 = 0 ;
|
4191
|
-
|
4436
|
+
VALUE result;
|
4192
4437
|
VALUE vresult = Qnil;
|
4193
4438
|
|
4194
4439
|
if ((argc < 0) || (argc > 0)) {
|
4195
4440
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4196
4441
|
}
|
4197
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4442
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4198
4443
|
if (!SWIG_IsOK(res1)) {
|
4199
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item
|
4444
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","to_h", 1, self ));
|
4200
4445
|
}
|
4201
|
-
arg1 = reinterpret_cast< TagLib::MP4::Item * >(argp1);
|
4202
|
-
result = (
|
4203
|
-
vresult =
|
4446
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4447
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg__to_h(arg1);
|
4448
|
+
vresult = result;
|
4449
|
+
return vresult;
|
4450
|
+
fail:
|
4451
|
+
return Qnil;
|
4452
|
+
}
|
4453
|
+
|
4454
|
+
|
4455
|
+
SWIGINTERN VALUE
|
4456
|
+
_wrap_ItemMap_fetch(int argc, VALUE *argv, VALUE self) {
|
4457
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4458
|
+
TagLib::String *arg2 = 0 ;
|
4459
|
+
void *argp1 = 0 ;
|
4460
|
+
int res1 = 0 ;
|
4461
|
+
TagLib::String tmp2 ;
|
4462
|
+
VALUE result;
|
4463
|
+
VALUE vresult = Qnil;
|
4464
|
+
|
4465
|
+
if ((argc < 1) || (argc > 1)) {
|
4466
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4467
|
+
}
|
4468
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4469
|
+
if (!SWIG_IsOK(res1)) {
|
4470
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","fetch", 1, self ));
|
4471
|
+
}
|
4472
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4473
|
+
{
|
4474
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4475
|
+
arg2 = &tmp2;
|
4476
|
+
}
|
4477
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg__fetch(arg1,(TagLib::String const &)*arg2);
|
4478
|
+
vresult = result;
|
4479
|
+
return vresult;
|
4480
|
+
fail:
|
4481
|
+
return Qnil;
|
4482
|
+
}
|
4483
|
+
|
4484
|
+
|
4485
|
+
SWIGINTERN VALUE
|
4486
|
+
_wrap_ItemMap__clear(int argc, VALUE *argv, VALUE self) {
|
4487
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4488
|
+
void *argp1 = 0 ;
|
4489
|
+
int res1 = 0 ;
|
4490
|
+
VALUE result;
|
4491
|
+
VALUE vresult = Qnil;
|
4492
|
+
|
4493
|
+
if ((argc < 0) || (argc > 0)) {
|
4494
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4495
|
+
}
|
4496
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4497
|
+
if (!SWIG_IsOK(res1)) {
|
4498
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","_clear", 1, self ));
|
4499
|
+
}
|
4500
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4501
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg___clear(arg1);
|
4502
|
+
vresult = result;
|
4503
|
+
return vresult;
|
4504
|
+
fail:
|
4505
|
+
return Qnil;
|
4506
|
+
}
|
4507
|
+
|
4508
|
+
|
4509
|
+
SWIGINTERN VALUE
|
4510
|
+
_wrap_ItemMap_erase(int argc, VALUE *argv, VALUE self) {
|
4511
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4512
|
+
TagLib::String *arg2 = 0 ;
|
4513
|
+
void *argp1 = 0 ;
|
4514
|
+
int res1 = 0 ;
|
4515
|
+
TagLib::String tmp2 ;
|
4516
|
+
VALUE result;
|
4517
|
+
VALUE vresult = Qnil;
|
4518
|
+
|
4519
|
+
if ((argc < 1) || (argc > 1)) {
|
4520
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4521
|
+
}
|
4522
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4523
|
+
if (!SWIG_IsOK(res1)) {
|
4524
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","erase", 1, self ));
|
4525
|
+
}
|
4526
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4527
|
+
{
|
4528
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4529
|
+
arg2 = &tmp2;
|
4530
|
+
}
|
4531
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg__erase(arg1,(TagLib::String const &)*arg2);
|
4532
|
+
vresult = result;
|
4533
|
+
return vresult;
|
4534
|
+
fail:
|
4535
|
+
return Qnil;
|
4536
|
+
}
|
4537
|
+
|
4538
|
+
|
4539
|
+
SWIGINTERN VALUE
|
4540
|
+
_wrap_ItemMap__insert(int argc, VALUE *argv, VALUE self) {
|
4541
|
+
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4542
|
+
TagLib::String *arg2 = 0 ;
|
4543
|
+
TagLib::MP4::Item *arg3 = 0 ;
|
4544
|
+
void *argp1 = 0 ;
|
4545
|
+
int res1 = 0 ;
|
4546
|
+
TagLib::String tmp2 ;
|
4547
|
+
void *argp3 = 0 ;
|
4548
|
+
int res3 = 0 ;
|
4549
|
+
VALUE result;
|
4550
|
+
VALUE vresult = Qnil;
|
4551
|
+
|
4552
|
+
if ((argc < 2) || (argc > 2)) {
|
4553
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4554
|
+
}
|
4555
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
4556
|
+
if (!SWIG_IsOK(res1)) {
|
4557
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *","_insert", 1, self ));
|
4558
|
+
}
|
4559
|
+
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
4560
|
+
{
|
4561
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4562
|
+
arg2 = &tmp2;
|
4563
|
+
}
|
4564
|
+
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
4565
|
+
if (!SWIG_IsOK(res3)) {
|
4566
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","_insert", 3, argv[1] ));
|
4567
|
+
}
|
4568
|
+
if (!argp3) {
|
4569
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","_insert", 3, argv[1]));
|
4570
|
+
}
|
4571
|
+
arg3 = reinterpret_cast< TagLib::MP4::Item * >(argp3);
|
4572
|
+
result = (VALUE)TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg___insert(arg1,(TagLib::String const &)*arg2,(TagLib::MP4::Item const &)*arg3);
|
4573
|
+
vresult = result;
|
4574
|
+
return vresult;
|
4575
|
+
fail:
|
4576
|
+
return Qnil;
|
4577
|
+
}
|
4578
|
+
|
4579
|
+
|
4580
|
+
static swig_class SwigClassTag;
|
4581
|
+
|
4582
|
+
SWIGINTERN VALUE
|
4583
|
+
_wrap_new_Tag__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4584
|
+
TagLib::MP4::Tag *result = 0 ;
|
4585
|
+
|
4586
|
+
if ((argc < 0) || (argc > 0)) {
|
4587
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4588
|
+
}
|
4589
|
+
result = (TagLib::MP4::Tag *)new TagLib::MP4::Tag();
|
4590
|
+
DATA_PTR(self) = result;
|
4591
|
+
SWIG_RubyAddTracking(result, self);
|
4592
|
+
return self;
|
4593
|
+
fail:
|
4594
|
+
return Qnil;
|
4595
|
+
}
|
4596
|
+
|
4597
|
+
|
4598
|
+
SWIGINTERN VALUE
|
4599
|
+
_wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4600
|
+
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
4601
|
+
TagLib::MP4::Atoms *arg2 = (TagLib::MP4::Atoms *) 0 ;
|
4602
|
+
TagLib::MP4::ItemFactory *arg3 = (TagLib::MP4::ItemFactory *) 0 ;
|
4603
|
+
void *argp1 = 0 ;
|
4604
|
+
int res1 = 0 ;
|
4605
|
+
void *argp2 = 0 ;
|
4606
|
+
int res2 = 0 ;
|
4607
|
+
void *argp3 = 0 ;
|
4608
|
+
int res3 = 0 ;
|
4609
|
+
TagLib::MP4::Tag *result = 0 ;
|
4610
|
+
|
4611
|
+
if ((argc < 3) || (argc > 3)) {
|
4612
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4613
|
+
}
|
4614
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4615
|
+
if (!SWIG_IsOK(res1)) {
|
4616
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
|
4617
|
+
}
|
4618
|
+
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4619
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__MP4__Atoms, 0 | 0 );
|
4620
|
+
if (!SWIG_IsOK(res2)) {
|
4621
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms *","Tag", 2, argv[1] ));
|
4622
|
+
}
|
4623
|
+
arg2 = reinterpret_cast< TagLib::MP4::Atoms * >(argp2);
|
4624
|
+
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_TagLib__MP4__ItemFactory, 0 | 0 );
|
4625
|
+
if (!SWIG_IsOK(res3)) {
|
4626
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::MP4::ItemFactory const *","Tag", 3, argv[2] ));
|
4627
|
+
}
|
4628
|
+
arg3 = reinterpret_cast< TagLib::MP4::ItemFactory * >(argp3);
|
4629
|
+
result = (TagLib::MP4::Tag *)new TagLib::MP4::Tag(arg1,arg2,(TagLib::MP4::ItemFactory const *)arg3);
|
4630
|
+
DATA_PTR(self) = result;
|
4631
|
+
SWIG_RubyAddTracking(result, self);
|
4632
|
+
return self;
|
4633
|
+
fail:
|
4634
|
+
return Qnil;
|
4635
|
+
}
|
4636
|
+
|
4637
|
+
|
4638
|
+
SWIGINTERN VALUE
|
4639
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4640
|
+
_wrap_Tag_allocate(VALUE self)
|
4641
|
+
#else
|
4642
|
+
_wrap_Tag_allocate(int argc, VALUE *argv, VALUE self)
|
4643
|
+
#endif
|
4644
|
+
{
|
4645
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__Tag);
|
4646
|
+
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4647
|
+
rb_obj_call_init(vresult, argc, argv);
|
4648
|
+
#endif
|
4204
4649
|
return vresult;
|
4205
|
-
fail:
|
4206
|
-
return Qnil;
|
4207
4650
|
}
|
4208
4651
|
|
4209
4652
|
|
4210
4653
|
SWIGINTERN VALUE
|
4211
|
-
|
4212
|
-
TagLib::
|
4654
|
+
_wrap_new_Tag__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
4655
|
+
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
4656
|
+
TagLib::MP4::Atoms *arg2 = (TagLib::MP4::Atoms *) 0 ;
|
4213
4657
|
void *argp1 = 0 ;
|
4214
4658
|
int res1 = 0 ;
|
4215
|
-
|
4216
|
-
|
4659
|
+
void *argp2 = 0 ;
|
4660
|
+
int res2 = 0 ;
|
4661
|
+
TagLib::MP4::Tag *result = 0 ;
|
4217
4662
|
|
4218
|
-
if ((argc <
|
4219
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4663
|
+
if ((argc < 2) || (argc > 2)) {
|
4664
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4220
4665
|
}
|
4221
|
-
res1 = SWIG_ConvertPtr(
|
4666
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4222
4667
|
if (!SWIG_IsOK(res1)) {
|
4223
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
4668
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
|
4224
4669
|
}
|
4225
|
-
arg1 = reinterpret_cast< TagLib::
|
4226
|
-
|
4227
|
-
|
4228
|
-
|
4670
|
+
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4671
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__MP4__Atoms, 0 | 0 );
|
4672
|
+
if (!SWIG_IsOK(res2)) {
|
4673
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::MP4::Atoms *","Tag", 2, argv[1] ));
|
4674
|
+
}
|
4675
|
+
arg2 = reinterpret_cast< TagLib::MP4::Atoms * >(argp2);
|
4676
|
+
result = (TagLib::MP4::Tag *)new TagLib::MP4::Tag(arg1,arg2);
|
4677
|
+
DATA_PTR(self) = result;
|
4678
|
+
SWIG_RubyAddTracking(result, self);
|
4679
|
+
return self;
|
4229
4680
|
fail:
|
4230
4681
|
return Qnil;
|
4231
4682
|
}
|
4232
4683
|
|
4233
4684
|
|
4234
|
-
SWIGINTERN VALUE
|
4235
|
-
|
4236
|
-
|
4237
|
-
|
4238
|
-
int res1 = 0 ;
|
4239
|
-
long long result;
|
4240
|
-
VALUE vresult = Qnil;
|
4685
|
+
SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
|
4686
|
+
int argc;
|
4687
|
+
VALUE argv[3];
|
4688
|
+
int ii;
|
4241
4689
|
|
4242
|
-
|
4243
|
-
|
4690
|
+
argc = nargs;
|
4691
|
+
if (argc > 3) SWIG_fail;
|
4692
|
+
for (ii = 0; (ii < argc); ++ii) {
|
4693
|
+
argv[ii] = args[ii];
|
4244
4694
|
}
|
4245
|
-
|
4246
|
-
|
4247
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Item const *","toLongLong", 1, self ));
|
4695
|
+
if (argc == 0) {
|
4696
|
+
return _wrap_new_Tag__SWIG_0(nargs, args, self);
|
4248
4697
|
}
|
4249
|
-
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4698
|
+
if (argc == 2) {
|
4699
|
+
int _v = 0;
|
4700
|
+
void *vptr = 0;
|
4701
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
4702
|
+
_v = SWIG_CheckState(res);
|
4703
|
+
if (_v) {
|
4704
|
+
void *vptr = 0;
|
4705
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__MP4__Atoms, 0);
|
4706
|
+
_v = SWIG_CheckState(res);
|
4707
|
+
if (_v) {
|
4708
|
+
return _wrap_new_Tag__SWIG_2(nargs, args, self);
|
4709
|
+
}
|
4710
|
+
}
|
4711
|
+
}
|
4712
|
+
if (argc == 3) {
|
4713
|
+
int _v = 0;
|
4714
|
+
void *vptr = 0;
|
4715
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
4716
|
+
_v = SWIG_CheckState(res);
|
4717
|
+
if (_v) {
|
4718
|
+
void *vptr = 0;
|
4719
|
+
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__MP4__Atoms, 0);
|
4720
|
+
_v = SWIG_CheckState(res);
|
4721
|
+
if (_v) {
|
4722
|
+
void *vptr = 0;
|
4723
|
+
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TagLib__MP4__ItemFactory, 0);
|
4724
|
+
_v = SWIG_CheckState(res);
|
4725
|
+
if (_v) {
|
4726
|
+
return _wrap_new_Tag__SWIG_1(nargs, args, self);
|
4727
|
+
}
|
4728
|
+
}
|
4729
|
+
}
|
4730
|
+
}
|
4731
|
+
|
4253
4732
|
fail:
|
4733
|
+
Ruby_Format_OverloadedError( argc, 3, "Tag.new",
|
4734
|
+
" Tag.new()\n"
|
4735
|
+
" Tag.new(TagLib::File *file, TagLib::MP4::Atoms *atoms, TagLib::MP4::ItemFactory const *factory)\n"
|
4736
|
+
" Tag.new(TagLib::File *file, TagLib::MP4::Atoms *atoms)\n");
|
4737
|
+
|
4254
4738
|
return Qnil;
|
4255
4739
|
}
|
4256
4740
|
|
4257
4741
|
|
4742
|
+
SWIGINTERN void
|
4743
|
+
free_TagLib_MP4_Tag(void *self) {
|
4744
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *)self;
|
4745
|
+
SWIG_RubyRemoveTracking(arg1);
|
4746
|
+
delete arg1;
|
4747
|
+
}
|
4748
|
+
|
4258
4749
|
SWIGINTERN VALUE
|
4259
|
-
|
4260
|
-
TagLib::MP4::
|
4750
|
+
_wrap_Tag_save(int argc, VALUE *argv, VALUE self) {
|
4751
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4261
4752
|
void *argp1 = 0 ;
|
4262
4753
|
int res1 = 0 ;
|
4263
4754
|
bool result;
|
@@ -4266,12 +4757,12 @@ _wrap_Item_to_bool(int argc, VALUE *argv, VALUE self) {
|
|
4266
4757
|
if ((argc < 0) || (argc > 0)) {
|
4267
4758
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4268
4759
|
}
|
4269
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4760
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4270
4761
|
if (!SWIG_IsOK(res1)) {
|
4271
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4762
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","save", 1, self ));
|
4272
4763
|
}
|
4273
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4274
|
-
result = (bool)(
|
4764
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4765
|
+
result = (bool)(arg1)->save();
|
4275
4766
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4276
4767
|
return vresult;
|
4277
4768
|
fail:
|
@@ -4280,24 +4771,24 @@ fail:
|
|
4280
4771
|
|
4281
4772
|
|
4282
4773
|
SWIGINTERN VALUE
|
4283
|
-
|
4284
|
-
TagLib::MP4::
|
4774
|
+
_wrap_Tag_title(int argc, VALUE *argv, VALUE self) {
|
4775
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4285
4776
|
void *argp1 = 0 ;
|
4286
4777
|
int res1 = 0 ;
|
4287
|
-
TagLib::
|
4778
|
+
TagLib::String result;
|
4288
4779
|
VALUE vresult = Qnil;
|
4289
4780
|
|
4290
4781
|
if ((argc < 0) || (argc > 0)) {
|
4291
4782
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4292
4783
|
}
|
4293
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4784
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4294
4785
|
if (!SWIG_IsOK(res1)) {
|
4295
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4786
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","title", 1, self ));
|
4296
4787
|
}
|
4297
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4298
|
-
result = ((TagLib::MP4::
|
4788
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4789
|
+
result = ((TagLib::MP4::Tag const *)arg1)->title();
|
4299
4790
|
{
|
4300
|
-
vresult =
|
4791
|
+
vresult = taglib_string_to_ruby_string(result);
|
4301
4792
|
}
|
4302
4793
|
return vresult;
|
4303
4794
|
fail:
|
@@ -4306,24 +4797,24 @@ fail:
|
|
4306
4797
|
|
4307
4798
|
|
4308
4799
|
SWIGINTERN VALUE
|
4309
|
-
|
4310
|
-
TagLib::MP4::
|
4800
|
+
_wrap_Tag_artist(int argc, VALUE *argv, VALUE self) {
|
4801
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4311
4802
|
void *argp1 = 0 ;
|
4312
4803
|
int res1 = 0 ;
|
4313
|
-
TagLib::
|
4804
|
+
TagLib::String result;
|
4314
4805
|
VALUE vresult = Qnil;
|
4315
4806
|
|
4316
4807
|
if ((argc < 0) || (argc > 0)) {
|
4317
4808
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4318
4809
|
}
|
4319
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4810
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4320
4811
|
if (!SWIG_IsOK(res1)) {
|
4321
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4812
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","artist", 1, self ));
|
4322
4813
|
}
|
4323
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4324
|
-
result = ((TagLib::MP4::
|
4814
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4815
|
+
result = ((TagLib::MP4::Tag const *)arg1)->artist();
|
4325
4816
|
{
|
4326
|
-
vresult =
|
4817
|
+
vresult = taglib_string_to_ruby_string(result);
|
4327
4818
|
}
|
4328
4819
|
return vresult;
|
4329
4820
|
fail:
|
@@ -4332,24 +4823,24 @@ fail:
|
|
4332
4823
|
|
4333
4824
|
|
4334
4825
|
SWIGINTERN VALUE
|
4335
|
-
|
4336
|
-
TagLib::MP4::
|
4826
|
+
_wrap_Tag_album(int argc, VALUE *argv, VALUE self) {
|
4827
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4337
4828
|
void *argp1 = 0 ;
|
4338
4829
|
int res1 = 0 ;
|
4339
|
-
TagLib::
|
4830
|
+
TagLib::String result;
|
4340
4831
|
VALUE vresult = Qnil;
|
4341
4832
|
|
4342
4833
|
if ((argc < 0) || (argc > 0)) {
|
4343
4834
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4344
4835
|
}
|
4345
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4836
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4346
4837
|
if (!SWIG_IsOK(res1)) {
|
4347
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4838
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","album", 1, self ));
|
4348
4839
|
}
|
4349
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4350
|
-
result = ((TagLib::MP4::
|
4840
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4841
|
+
result = ((TagLib::MP4::Tag const *)arg1)->album();
|
4351
4842
|
{
|
4352
|
-
vresult =
|
4843
|
+
vresult = taglib_string_to_ruby_string(result);
|
4353
4844
|
}
|
4354
4845
|
return vresult;
|
4355
4846
|
fail:
|
@@ -4358,24 +4849,24 @@ fail:
|
|
4358
4849
|
|
4359
4850
|
|
4360
4851
|
SWIGINTERN VALUE
|
4361
|
-
|
4362
|
-
TagLib::MP4::
|
4852
|
+
_wrap_Tag_comment(int argc, VALUE *argv, VALUE self) {
|
4853
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4363
4854
|
void *argp1 = 0 ;
|
4364
4855
|
int res1 = 0 ;
|
4365
|
-
TagLib::
|
4856
|
+
TagLib::String result;
|
4366
4857
|
VALUE vresult = Qnil;
|
4367
4858
|
|
4368
4859
|
if ((argc < 0) || (argc > 0)) {
|
4369
4860
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4370
4861
|
}
|
4371
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4862
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4372
4863
|
if (!SWIG_IsOK(res1)) {
|
4373
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4864
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","comment", 1, self ));
|
4374
4865
|
}
|
4375
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4376
|
-
result = ((TagLib::MP4::
|
4866
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4867
|
+
result = ((TagLib::MP4::Tag const *)arg1)->comment();
|
4377
4868
|
{
|
4378
|
-
vresult =
|
4869
|
+
vresult = taglib_string_to_ruby_string(result);
|
4379
4870
|
}
|
4380
4871
|
return vresult;
|
4381
4872
|
fail:
|
@@ -4384,47 +4875,25 @@ fail:
|
|
4384
4875
|
|
4385
4876
|
|
4386
4877
|
SWIGINTERN VALUE
|
4387
|
-
|
4388
|
-
TagLib::MP4::
|
4878
|
+
_wrap_Tag_genre(int argc, VALUE *argv, VALUE self) {
|
4879
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4389
4880
|
void *argp1 = 0 ;
|
4390
4881
|
int res1 = 0 ;
|
4391
|
-
|
4882
|
+
TagLib::String result;
|
4392
4883
|
VALUE vresult = Qnil;
|
4393
4884
|
|
4394
4885
|
if ((argc < 0) || (argc > 0)) {
|
4395
4886
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4396
4887
|
}
|
4397
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
4888
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4398
4889
|
if (!SWIG_IsOK(res1)) {
|
4399
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
4890
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","genre", 1, self ));
|
4400
4891
|
}
|
4401
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4402
|
-
result = (
|
4403
|
-
|
4404
|
-
|
4405
|
-
fail:
|
4406
|
-
return Qnil;
|
4407
|
-
}
|
4408
|
-
|
4409
|
-
|
4410
|
-
SWIGINTERN VALUE
|
4411
|
-
_wrap_Item_from_bool(int argc, VALUE *argv, VALUE self) {
|
4412
|
-
bool arg1 ;
|
4413
|
-
bool val1 ;
|
4414
|
-
int ecode1 = 0 ;
|
4415
|
-
TagLib::MP4::Item *result = 0 ;
|
4416
|
-
VALUE vresult = Qnil;
|
4417
|
-
|
4418
|
-
if ((argc < 1) || (argc > 1)) {
|
4419
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4892
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4893
|
+
result = ((TagLib::MP4::Tag const *)arg1)->genre();
|
4894
|
+
{
|
4895
|
+
vresult = taglib_string_to_ruby_string(result);
|
4420
4896
|
}
|
4421
|
-
ecode1 = SWIG_AsVal_bool(argv[0], &val1);
|
4422
|
-
if (!SWIG_IsOK(ecode1)) {
|
4423
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","TagLib_MP4_Item_from_bool", 1, argv[0] ));
|
4424
|
-
}
|
4425
|
-
arg1 = static_cast< bool >(val1);
|
4426
|
-
result = (TagLib::MP4::Item *)TagLib_MP4_Item_from_bool(arg1);
|
4427
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Item, 0 | 0 );
|
4428
4897
|
return vresult;
|
4429
4898
|
fail:
|
4430
4899
|
return Qnil;
|
@@ -4432,23 +4901,23 @@ fail:
|
|
4432
4901
|
|
4433
4902
|
|
4434
4903
|
SWIGINTERN VALUE
|
4435
|
-
|
4436
|
-
|
4437
|
-
|
4438
|
-
int
|
4439
|
-
|
4904
|
+
_wrap_Tag_year(int argc, VALUE *argv, VALUE self) {
|
4905
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4906
|
+
void *argp1 = 0 ;
|
4907
|
+
int res1 = 0 ;
|
4908
|
+
unsigned int result;
|
4440
4909
|
VALUE vresult = Qnil;
|
4441
4910
|
|
4442
|
-
if ((argc <
|
4443
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4911
|
+
if ((argc < 0) || (argc > 0)) {
|
4912
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4444
4913
|
}
|
4445
|
-
|
4446
|
-
if (!SWIG_IsOK(
|
4447
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4448
|
-
}
|
4449
|
-
arg1 =
|
4450
|
-
result = (TagLib::MP4::
|
4451
|
-
vresult =
|
4914
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4915
|
+
if (!SWIG_IsOK(res1)) {
|
4916
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","year", 1, self ));
|
4917
|
+
}
|
4918
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4919
|
+
result = (unsigned int)((TagLib::MP4::Tag const *)arg1)->year();
|
4920
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
4452
4921
|
return vresult;
|
4453
4922
|
fail:
|
4454
4923
|
return Qnil;
|
@@ -4456,23 +4925,23 @@ fail:
|
|
4456
4925
|
|
4457
4926
|
|
4458
4927
|
SWIGINTERN VALUE
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
int
|
4463
|
-
|
4928
|
+
_wrap_Tag_track(int argc, VALUE *argv, VALUE self) {
|
4929
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4930
|
+
void *argp1 = 0 ;
|
4931
|
+
int res1 = 0 ;
|
4932
|
+
unsigned int result;
|
4464
4933
|
VALUE vresult = Qnil;
|
4465
4934
|
|
4466
|
-
if ((argc <
|
4467
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4935
|
+
if ((argc < 0) || (argc > 0)) {
|
4936
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4468
4937
|
}
|
4469
|
-
|
4470
|
-
if (!SWIG_IsOK(
|
4471
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4472
|
-
}
|
4473
|
-
arg1 =
|
4474
|
-
result = (TagLib::MP4::
|
4475
|
-
vresult =
|
4938
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4939
|
+
if (!SWIG_IsOK(res1)) {
|
4940
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","track", 1, self ));
|
4941
|
+
}
|
4942
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4943
|
+
result = (unsigned int)((TagLib::MP4::Tag const *)arg1)->track();
|
4944
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
4476
4945
|
return vresult;
|
4477
4946
|
fail:
|
4478
4947
|
return Qnil;
|
@@ -4480,310 +4949,300 @@ fail:
|
|
4480
4949
|
|
4481
4950
|
|
4482
4951
|
SWIGINTERN VALUE
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4952
|
+
_wrap_Tag_titlee___(int argc, VALUE *argv, VALUE self) {
|
4953
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4954
|
+
TagLib::String *arg2 = 0 ;
|
4955
|
+
void *argp1 = 0 ;
|
4956
|
+
int res1 = 0 ;
|
4957
|
+
TagLib::String tmp2 ;
|
4489
4958
|
|
4490
4959
|
if ((argc < 1) || (argc > 1)) {
|
4491
4960
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4492
4961
|
}
|
4493
|
-
|
4494
|
-
if (!SWIG_IsOK(
|
4495
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4496
|
-
}
|
4497
|
-
arg1 =
|
4498
|
-
|
4499
|
-
|
4500
|
-
|
4962
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4963
|
+
if (!SWIG_IsOK(res1)) {
|
4964
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setTitle", 1, self ));
|
4965
|
+
}
|
4966
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4967
|
+
{
|
4968
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4969
|
+
arg2 = &tmp2;
|
4970
|
+
}
|
4971
|
+
(arg1)->setTitle((TagLib::String const &)*arg2);
|
4972
|
+
return Qnil;
|
4501
4973
|
fail:
|
4502
4974
|
return Qnil;
|
4503
4975
|
}
|
4504
4976
|
|
4505
4977
|
|
4506
4978
|
SWIGINTERN VALUE
|
4507
|
-
|
4508
|
-
|
4509
|
-
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4979
|
+
_wrap_Tag_artiste___(int argc, VALUE *argv, VALUE self) {
|
4980
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4981
|
+
TagLib::String *arg2 = 0 ;
|
4982
|
+
void *argp1 = 0 ;
|
4983
|
+
int res1 = 0 ;
|
4984
|
+
TagLib::String tmp2 ;
|
4513
4985
|
|
4514
4986
|
if ((argc < 1) || (argc > 1)) {
|
4515
4987
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4516
4988
|
}
|
4517
|
-
|
4518
|
-
if (!SWIG_IsOK(
|
4519
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4520
|
-
}
|
4521
|
-
arg1 =
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4989
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4990
|
+
if (!SWIG_IsOK(res1)) {
|
4991
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setArtist", 1, self ));
|
4992
|
+
}
|
4993
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4994
|
+
{
|
4995
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
4996
|
+
arg2 = &tmp2;
|
4997
|
+
}
|
4998
|
+
(arg1)->setArtist((TagLib::String const &)*arg2);
|
4999
|
+
return Qnil;
|
4525
5000
|
fail:
|
4526
5001
|
return Qnil;
|
4527
5002
|
}
|
4528
5003
|
|
4529
5004
|
|
4530
5005
|
SWIGINTERN VALUE
|
4531
|
-
|
4532
|
-
TagLib::
|
4533
|
-
TagLib::
|
4534
|
-
|
4535
|
-
|
5006
|
+
_wrap_Tag_albume___(int argc, VALUE *argv, VALUE self) {
|
5007
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5008
|
+
TagLib::String *arg2 = 0 ;
|
5009
|
+
void *argp1 = 0 ;
|
5010
|
+
int res1 = 0 ;
|
5011
|
+
TagLib::String tmp2 ;
|
4536
5012
|
|
4537
5013
|
if ((argc < 1) || (argc > 1)) {
|
4538
5014
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4539
5015
|
}
|
5016
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5017
|
+
if (!SWIG_IsOK(res1)) {
|
5018
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setAlbum", 1, self ));
|
5019
|
+
}
|
5020
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4540
5021
|
{
|
4541
|
-
|
4542
|
-
|
5022
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5023
|
+
arg2 = &tmp2;
|
4543
5024
|
}
|
4544
|
-
|
4545
|
-
|
4546
|
-
return vresult;
|
5025
|
+
(arg1)->setAlbum((TagLib::String const &)*arg2);
|
5026
|
+
return Qnil;
|
4547
5027
|
fail:
|
4548
5028
|
return Qnil;
|
4549
5029
|
}
|
4550
5030
|
|
4551
5031
|
|
4552
5032
|
SWIGINTERN VALUE
|
4553
|
-
|
4554
|
-
TagLib::MP4::
|
4555
|
-
TagLib::
|
4556
|
-
|
4557
|
-
|
5033
|
+
_wrap_Tag_commente___(int argc, VALUE *argv, VALUE self) {
|
5034
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5035
|
+
TagLib::String *arg2 = 0 ;
|
5036
|
+
void *argp1 = 0 ;
|
5037
|
+
int res1 = 0 ;
|
5038
|
+
TagLib::String tmp2 ;
|
4558
5039
|
|
4559
5040
|
if ((argc < 1) || (argc > 1)) {
|
4560
5041
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4561
5042
|
}
|
5043
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5044
|
+
if (!SWIG_IsOK(res1)) {
|
5045
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setComment", 1, self ));
|
5046
|
+
}
|
5047
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4562
5048
|
{
|
4563
|
-
|
4564
|
-
|
5049
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5050
|
+
arg2 = &tmp2;
|
4565
5051
|
}
|
4566
|
-
|
4567
|
-
|
4568
|
-
return vresult;
|
5052
|
+
(arg1)->setComment((TagLib::String const &)*arg2);
|
5053
|
+
return Qnil;
|
4569
5054
|
fail:
|
4570
5055
|
return Qnil;
|
4571
5056
|
}
|
4572
5057
|
|
4573
5058
|
|
4574
5059
|
SWIGINTERN VALUE
|
4575
|
-
|
4576
|
-
TagLib::
|
4577
|
-
TagLib::
|
4578
|
-
|
4579
|
-
|
5060
|
+
_wrap_Tag_genree___(int argc, VALUE *argv, VALUE self) {
|
5061
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5062
|
+
TagLib::String *arg2 = 0 ;
|
5063
|
+
void *argp1 = 0 ;
|
5064
|
+
int res1 = 0 ;
|
5065
|
+
TagLib::String tmp2 ;
|
4580
5066
|
|
4581
5067
|
if ((argc < 1) || (argc > 1)) {
|
4582
5068
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4583
5069
|
}
|
5070
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5071
|
+
if (!SWIG_IsOK(res1)) {
|
5072
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setGenre", 1, self ));
|
5073
|
+
}
|
5074
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
4584
5075
|
{
|
4585
|
-
|
4586
|
-
|
5076
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5077
|
+
arg2 = &tmp2;
|
4587
5078
|
}
|
4588
|
-
|
4589
|
-
|
4590
|
-
return vresult;
|
5079
|
+
(arg1)->setGenre((TagLib::String const &)*arg2);
|
5080
|
+
return Qnil;
|
4591
5081
|
fail:
|
4592
5082
|
return Qnil;
|
4593
5083
|
}
|
4594
5084
|
|
4595
5085
|
|
4596
|
-
static swig_class SwigClassFile;
|
4597
|
-
|
4598
5086
|
SWIGINTERN VALUE
|
4599
|
-
|
4600
|
-
TagLib::
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
5087
|
+
_wrap_Tag_yeare___(int argc, VALUE *argv, VALUE self) {
|
5088
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5089
|
+
unsigned int arg2 ;
|
5090
|
+
void *argp1 = 0 ;
|
5091
|
+
int res1 = 0 ;
|
5092
|
+
unsigned int val2 ;
|
4604
5093
|
int ecode2 = 0 ;
|
4605
|
-
int val3 ;
|
4606
|
-
int ecode3 = 0 ;
|
4607
|
-
TagLib::MP4::File *result = 0 ;
|
4608
5094
|
|
4609
|
-
if ((argc <
|
4610
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5095
|
+
if ((argc < 1) || (argc > 1)) {
|
5096
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4611
5097
|
}
|
4612
|
-
|
4613
|
-
|
4614
|
-
|
4615
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4616
|
-
}
|
5098
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5099
|
+
if (!SWIG_IsOK(res1)) {
|
5100
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setYear", 1, self ));
|
4617
5101
|
}
|
4618
|
-
|
5102
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5103
|
+
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
4619
5104
|
if (!SWIG_IsOK(ecode2)) {
|
4620
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
4621
|
-
}
|
4622
|
-
arg2 = static_cast< bool >(val2);
|
4623
|
-
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4624
|
-
if (!SWIG_IsOK(ecode3)) {
|
4625
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::MP4::Properties::ReadStyle","File", 3, argv[2] ));
|
5105
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","setYear", 2, argv[0] ));
|
4626
5106
|
}
|
4627
|
-
|
4628
|
-
|
4629
|
-
|
4630
|
-
SWIG_RubyAddTracking(result, self);
|
4631
|
-
return self;
|
5107
|
+
arg2 = static_cast< unsigned int >(val2);
|
5108
|
+
(arg1)->setYear(arg2);
|
5109
|
+
return Qnil;
|
4632
5110
|
fail:
|
4633
5111
|
return Qnil;
|
4634
5112
|
}
|
4635
5113
|
|
4636
5114
|
|
4637
5115
|
SWIGINTERN VALUE
|
4638
|
-
|
4639
|
-
TagLib::
|
4640
|
-
|
4641
|
-
|
5116
|
+
_wrap_Tag_tracke___(int argc, VALUE *argv, VALUE self) {
|
5117
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5118
|
+
unsigned int arg2 ;
|
5119
|
+
void *argp1 = 0 ;
|
5120
|
+
int res1 = 0 ;
|
5121
|
+
unsigned int val2 ;
|
4642
5122
|
int ecode2 = 0 ;
|
4643
|
-
TagLib::MP4::File *result = 0 ;
|
4644
5123
|
|
4645
|
-
if ((argc <
|
4646
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5124
|
+
if ((argc < 1) || (argc > 1)) {
|
5125
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4647
5126
|
}
|
4648
|
-
|
4649
|
-
|
4650
|
-
|
4651
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4652
|
-
}
|
5127
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5128
|
+
if (!SWIG_IsOK(res1)) {
|
5129
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","setTrack", 1, self ));
|
4653
5130
|
}
|
4654
|
-
|
5131
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5132
|
+
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
4655
5133
|
if (!SWIG_IsOK(ecode2)) {
|
4656
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
5134
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","setTrack", 2, argv[0] ));
|
4657
5135
|
}
|
4658
|
-
arg2 = static_cast<
|
4659
|
-
|
4660
|
-
|
4661
|
-
SWIG_RubyAddTracking(result, self);
|
4662
|
-
return self;
|
5136
|
+
arg2 = static_cast< unsigned int >(val2);
|
5137
|
+
(arg1)->setTrack(arg2);
|
5138
|
+
return Qnil;
|
4663
5139
|
fail:
|
4664
5140
|
return Qnil;
|
4665
5141
|
}
|
4666
5142
|
|
4667
5143
|
|
4668
5144
|
SWIGINTERN VALUE
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
4677
|
-
|
4678
|
-
|
5145
|
+
_wrap_Tag_emptyq___(int argc, VALUE *argv, VALUE self) {
|
5146
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5147
|
+
void *argp1 = 0 ;
|
5148
|
+
int res1 = 0 ;
|
5149
|
+
bool result;
|
5150
|
+
VALUE vresult = Qnil;
|
5151
|
+
|
5152
|
+
if ((argc < 0) || (argc > 0)) {
|
5153
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5154
|
+
}
|
5155
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5156
|
+
if (!SWIG_IsOK(res1)) {
|
5157
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","isEmpty", 1, self ));
|
5158
|
+
}
|
5159
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5160
|
+
result = (bool)((TagLib::MP4::Tag const *)arg1)->isEmpty();
|
5161
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4679
5162
|
return vresult;
|
5163
|
+
fail:
|
5164
|
+
return Qnil;
|
4680
5165
|
}
|
4681
5166
|
|
4682
5167
|
|
4683
5168
|
SWIGINTERN VALUE
|
4684
|
-
|
4685
|
-
TagLib::
|
4686
|
-
|
5169
|
+
_wrap_Tag_item_map(int argc, VALUE *argv, VALUE self) {
|
5170
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5171
|
+
void *argp1 = 0 ;
|
5172
|
+
int res1 = 0 ;
|
5173
|
+
TagLib::MP4::ItemMap *result = 0 ;
|
5174
|
+
VALUE vresult = Qnil;
|
4687
5175
|
|
4688
|
-
if ((argc <
|
4689
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5176
|
+
if ((argc < 0) || (argc > 0)) {
|
5177
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4690
5178
|
}
|
4691
|
-
|
4692
|
-
|
4693
|
-
|
4694
|
-
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
4695
|
-
}
|
5179
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5180
|
+
if (!SWIG_IsOK(res1)) {
|
5181
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","itemMap", 1, self ));
|
4696
5182
|
}
|
4697
|
-
|
4698
|
-
|
4699
|
-
|
4700
|
-
return
|
5183
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5184
|
+
result = (TagLib::MP4::ItemMap *) &((TagLib::MP4::Tag const *)arg1)->itemMap();
|
5185
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
5186
|
+
return vresult;
|
4701
5187
|
fail:
|
4702
5188
|
return Qnil;
|
4703
5189
|
}
|
4704
5190
|
|
4705
5191
|
|
4706
|
-
SWIGINTERN VALUE
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
5192
|
+
SWIGINTERN VALUE
|
5193
|
+
_wrap_Tag___getitem__(int argc, VALUE *argv, VALUE self) {
|
5194
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5195
|
+
TagLib::String *arg2 = 0 ;
|
5196
|
+
void *argp1 = 0 ;
|
5197
|
+
int res1 = 0 ;
|
5198
|
+
TagLib::String tmp2 ;
|
5199
|
+
TagLib::MP4::Item result;
|
5200
|
+
VALUE vresult = Qnil;
|
4710
5201
|
|
4711
|
-
argc
|
4712
|
-
|
4713
|
-
for (ii = 0; (ii < argc); ++ii) {
|
4714
|
-
argv[ii] = args[ii];
|
4715
|
-
}
|
4716
|
-
if (argc == 1) {
|
4717
|
-
int _v = 0;
|
4718
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4719
|
-
_v = SWIG_CheckState(res);
|
4720
|
-
if (_v) {
|
4721
|
-
return _wrap_new_File__SWIG_2(nargs, args, self);
|
4722
|
-
}
|
5202
|
+
if ((argc < 1) || (argc > 1)) {
|
5203
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4723
5204
|
}
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
_v = SWIG_CheckState(res);
|
4728
|
-
if (_v) {
|
4729
|
-
{
|
4730
|
-
int res = SWIG_AsVal_bool(argv[1], NULL);
|
4731
|
-
_v = SWIG_CheckState(res);
|
4732
|
-
}
|
4733
|
-
if (_v) {
|
4734
|
-
return _wrap_new_File__SWIG_1(nargs, args, self);
|
4735
|
-
}
|
4736
|
-
}
|
5205
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5206
|
+
if (!SWIG_IsOK(res1)) {
|
5207
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","item", 1, self ));
|
4737
5208
|
}
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
if (_v) {
|
4743
|
-
{
|
4744
|
-
int res = SWIG_AsVal_bool(argv[1], NULL);
|
4745
|
-
_v = SWIG_CheckState(res);
|
4746
|
-
}
|
4747
|
-
if (_v) {
|
4748
|
-
{
|
4749
|
-
int res = SWIG_AsVal_int(argv[2], NULL);
|
4750
|
-
_v = SWIG_CheckState(res);
|
4751
|
-
}
|
4752
|
-
if (_v) {
|
4753
|
-
return _wrap_new_File__SWIG_0(nargs, args, self);
|
4754
|
-
}
|
4755
|
-
}
|
4756
|
-
}
|
5209
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5210
|
+
{
|
5211
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5212
|
+
arg2 = &tmp2;
|
4757
5213
|
}
|
4758
|
-
|
5214
|
+
result = ((TagLib::MP4::Tag const *)arg1)->item((TagLib::String const &)*arg2);
|
5215
|
+
vresult = SWIG_NewPointerObj((new TagLib::MP4::Item(result)), SWIGTYPE_p_TagLib__MP4__Item, SWIG_POINTER_OWN | 0 );
|
5216
|
+
return vresult;
|
4759
5217
|
fail:
|
4760
|
-
Ruby_Format_OverloadedError( argc, 3, "File.new",
|
4761
|
-
" File.new(TagLib::FileName file, bool readProperties, TagLib::MP4::Properties::ReadStyle audioPropertiesStyle)\n"
|
4762
|
-
" File.new(TagLib::FileName file, bool readProperties)\n"
|
4763
|
-
" File.new(TagLib::FileName file)\n");
|
4764
|
-
|
4765
5218
|
return Qnil;
|
4766
5219
|
}
|
4767
5220
|
|
4768
5221
|
|
4769
5222
|
SWIGINTERN VALUE
|
4770
|
-
|
4771
|
-
TagLib::MP4::
|
5223
|
+
_wrap_Tag_contains(int argc, VALUE *argv, VALUE self) {
|
5224
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5225
|
+
TagLib::String *arg2 = 0 ;
|
4772
5226
|
void *argp1 = 0 ;
|
4773
5227
|
int res1 = 0 ;
|
4774
|
-
TagLib::
|
5228
|
+
TagLib::String tmp2 ;
|
5229
|
+
bool result;
|
4775
5230
|
VALUE vresult = Qnil;
|
4776
5231
|
|
4777
|
-
if ((argc <
|
4778
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5232
|
+
if ((argc < 1) || (argc > 1)) {
|
5233
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4779
5234
|
}
|
4780
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5235
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4781
5236
|
if (!SWIG_IsOK(res1)) {
|
4782
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
5237
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag const *","contains", 1, self ));
|
4783
5238
|
}
|
4784
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4785
|
-
|
4786
|
-
|
5239
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5240
|
+
{
|
5241
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5242
|
+
arg2 = &tmp2;
|
5243
|
+
}
|
5244
|
+
result = (bool)((TagLib::MP4::Tag const *)arg1)->contains((TagLib::String const &)*arg2);
|
5245
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4787
5246
|
return vresult;
|
4788
5247
|
fail:
|
4789
5248
|
return Qnil;
|
@@ -4791,47 +5250,72 @@ fail:
|
|
4791
5250
|
|
4792
5251
|
|
4793
5252
|
SWIGINTERN VALUE
|
4794
|
-
|
4795
|
-
TagLib::MP4::
|
5253
|
+
_wrap_Tag_strip(int argc, VALUE *argv, VALUE self) {
|
5254
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
4796
5255
|
void *argp1 = 0 ;
|
4797
5256
|
int res1 = 0 ;
|
4798
|
-
|
5257
|
+
bool result;
|
4799
5258
|
VALUE vresult = Qnil;
|
4800
5259
|
|
4801
5260
|
if ((argc < 0) || (argc > 0)) {
|
4802
5261
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4803
5262
|
}
|
4804
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5263
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4805
5264
|
if (!SWIG_IsOK(res1)) {
|
4806
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
5265
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","strip", 1, self ));
|
4807
5266
|
}
|
4808
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4809
|
-
result = (
|
4810
|
-
vresult =
|
5267
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5268
|
+
result = (bool)(arg1)->strip();
|
5269
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4811
5270
|
return vresult;
|
4812
5271
|
fail:
|
4813
5272
|
return Qnil;
|
4814
5273
|
}
|
4815
5274
|
|
4816
5275
|
|
5276
|
+
/*
|
5277
|
+
Document-method: TagLib::MP4::Tag.[]=
|
5278
|
+
|
5279
|
+
call-seq:
|
5280
|
+
[]=(string, item) -> VALUE
|
5281
|
+
|
5282
|
+
Element setter/slicing.
|
5283
|
+
*/
|
4817
5284
|
SWIGINTERN VALUE
|
4818
|
-
|
4819
|
-
TagLib::MP4::
|
5285
|
+
_wrap_Tag___setitem__(int argc, VALUE *argv, VALUE self) {
|
5286
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5287
|
+
TagLib::String *arg2 = 0 ;
|
5288
|
+
TagLib::MP4::Item *arg3 = 0 ;
|
4820
5289
|
void *argp1 = 0 ;
|
4821
5290
|
int res1 = 0 ;
|
4822
|
-
|
5291
|
+
TagLib::String tmp2 ;
|
5292
|
+
void *argp3 = 0 ;
|
5293
|
+
int res3 = 0 ;
|
5294
|
+
VALUE result;
|
4823
5295
|
VALUE vresult = Qnil;
|
4824
5296
|
|
4825
|
-
if ((argc <
|
4826
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5297
|
+
if ((argc < 2) || (argc > 2)) {
|
5298
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4827
5299
|
}
|
4828
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5300
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4829
5301
|
if (!SWIG_IsOK(res1)) {
|
4830
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
5302
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","__setitem__", 1, self ));
|
4831
5303
|
}
|
4832
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4833
|
-
|
4834
|
-
|
5304
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5305
|
+
{
|
5306
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5307
|
+
arg2 = &tmp2;
|
5308
|
+
}
|
5309
|
+
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
5310
|
+
if (!SWIG_IsOK(res3)) {
|
5311
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","__setitem__", 3, argv[1] ));
|
5312
|
+
}
|
5313
|
+
if (!argp3) {
|
5314
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","__setitem__", 3, argv[1]));
|
5315
|
+
}
|
5316
|
+
arg3 = reinterpret_cast< TagLib::MP4::Item * >(argp3);
|
5317
|
+
result = (VALUE)TagLib_MP4_Tag___setitem__(arg1,(TagLib::String const &)*arg2,(TagLib::MP4::Item const &)*arg3);
|
5318
|
+
vresult = result;
|
4835
5319
|
return vresult;
|
4836
5320
|
fail:
|
4837
5321
|
return Qnil;
|
@@ -4839,60 +5323,146 @@ fail:
|
|
4839
5323
|
|
4840
5324
|
|
4841
5325
|
SWIGINTERN VALUE
|
4842
|
-
|
4843
|
-
TagLib::MP4::
|
5326
|
+
_wrap_Tag_remove_item(int argc, VALUE *argv, VALUE self) {
|
5327
|
+
TagLib::MP4::Tag *arg1 = (TagLib::MP4::Tag *) 0 ;
|
5328
|
+
TagLib::String *arg2 = 0 ;
|
4844
5329
|
void *argp1 = 0 ;
|
4845
5330
|
int res1 = 0 ;
|
4846
|
-
|
5331
|
+
TagLib::String tmp2 ;
|
5332
|
+
VALUE result;
|
4847
5333
|
VALUE vresult = Qnil;
|
4848
5334
|
|
4849
|
-
if ((argc <
|
4850
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5335
|
+
if ((argc < 1) || (argc > 1)) {
|
5336
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4851
5337
|
}
|
4852
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5338
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
4853
5339
|
if (!SWIG_IsOK(res1)) {
|
4854
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::
|
5340
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::Tag *","remove_item", 1, self ));
|
4855
5341
|
}
|
4856
|
-
arg1 = reinterpret_cast< TagLib::MP4::
|
4857
|
-
|
4858
|
-
|
5342
|
+
arg1 = reinterpret_cast< TagLib::MP4::Tag * >(argp1);
|
5343
|
+
{
|
5344
|
+
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5345
|
+
arg2 = &tmp2;
|
5346
|
+
}
|
5347
|
+
result = (VALUE)TagLib_MP4_Tag_remove_item(arg1,(TagLib::String const &)*arg2);
|
5348
|
+
vresult = result;
|
4859
5349
|
return vresult;
|
4860
5350
|
fail:
|
4861
5351
|
return Qnil;
|
4862
5352
|
}
|
4863
5353
|
|
4864
5354
|
|
5355
|
+
static swig_class SwigClassFile;
|
5356
|
+
|
5357
|
+
SWIGINTERN VALUE
|
5358
|
+
_wrap_new_File__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
5359
|
+
TagLib::FileName arg1 ;
|
5360
|
+
bool arg2 ;
|
5361
|
+
TagLib::MP4::Properties::ReadStyle arg3 ;
|
5362
|
+
TagLib::MP4::ItemFactory *arg4 = (TagLib::MP4::ItemFactory *) 0 ;
|
5363
|
+
bool val2 ;
|
5364
|
+
int ecode2 = 0 ;
|
5365
|
+
int val3 ;
|
5366
|
+
int ecode3 = 0 ;
|
5367
|
+
void *argp4 = 0 ;
|
5368
|
+
int res4 = 0 ;
|
5369
|
+
TagLib::MP4::File *result = 0 ;
|
5370
|
+
|
5371
|
+
if ((argc < 4) || (argc > 4)) {
|
5372
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
5373
|
+
}
|
5374
|
+
{
|
5375
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
5376
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
5377
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
5378
|
+
}
|
5379
|
+
}
|
5380
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
5381
|
+
if (!SWIG_IsOK(ecode2)) {
|
5382
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
5383
|
+
}
|
5384
|
+
arg2 = static_cast< bool >(val2);
|
5385
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5386
|
+
if (!SWIG_IsOK(ecode3)) {
|
5387
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::MP4::Properties::ReadStyle","File", 3, argv[2] ));
|
5388
|
+
}
|
5389
|
+
arg3 = static_cast< TagLib::MP4::Properties::ReadStyle >(val3);
|
5390
|
+
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_TagLib__MP4__ItemFactory, 0 | 0 );
|
5391
|
+
if (!SWIG_IsOK(res4)) {
|
5392
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "TagLib::MP4::ItemFactory *","File", 4, argv[3] ));
|
5393
|
+
}
|
5394
|
+
arg4 = reinterpret_cast< TagLib::MP4::ItemFactory * >(argp4);
|
5395
|
+
result = (TagLib::MP4::File *)new TagLib::MP4::File(arg1,arg2,arg3,arg4);
|
5396
|
+
DATA_PTR(self) = result;
|
5397
|
+
SWIG_RubyAddTracking(result, self);
|
5398
|
+
return self;
|
5399
|
+
fail:
|
5400
|
+
return Qnil;
|
5401
|
+
}
|
5402
|
+
|
5403
|
+
|
4865
5404
|
SWIGINTERN VALUE
|
4866
|
-
|
4867
|
-
TagLib::
|
4868
|
-
|
4869
|
-
|
5405
|
+
_wrap_new_File__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
5406
|
+
TagLib::FileName arg1 ;
|
5407
|
+
bool arg2 ;
|
5408
|
+
TagLib::MP4::Properties::ReadStyle arg3 ;
|
5409
|
+
bool val2 ;
|
5410
|
+
int ecode2 = 0 ;
|
5411
|
+
int val3 ;
|
5412
|
+
int ecode3 = 0 ;
|
5413
|
+
TagLib::MP4::File *result = 0 ;
|
4870
5414
|
|
4871
|
-
if ((argc <
|
4872
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5415
|
+
if ((argc < 3) || (argc > 3)) {
|
5416
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4873
5417
|
}
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
5418
|
+
{
|
5419
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
5420
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
5421
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
5422
|
+
}
|
4877
5423
|
}
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
5424
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
5425
|
+
if (!SWIG_IsOK(ecode2)) {
|
5426
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
5427
|
+
}
|
5428
|
+
arg2 = static_cast< bool >(val2);
|
5429
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5430
|
+
if (!SWIG_IsOK(ecode3)) {
|
5431
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::MP4::Properties::ReadStyle","File", 3, argv[2] ));
|
5432
|
+
}
|
5433
|
+
arg3 = static_cast< TagLib::MP4::Properties::ReadStyle >(val3);
|
5434
|
+
result = (TagLib::MP4::File *)new TagLib::MP4::File(arg1,arg2,arg3);
|
5435
|
+
DATA_PTR(self) = result;
|
5436
|
+
SWIG_RubyAddTracking(result, self);
|
5437
|
+
return self;
|
4881
5438
|
fail:
|
4882
5439
|
return Qnil;
|
4883
5440
|
}
|
4884
5441
|
|
4885
5442
|
|
4886
|
-
static swig_class SwigClassItemMap;
|
4887
|
-
|
4888
5443
|
SWIGINTERN VALUE
|
4889
|
-
|
4890
|
-
TagLib::
|
5444
|
+
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
5445
|
+
TagLib::FileName arg1 ;
|
5446
|
+
bool arg2 ;
|
5447
|
+
bool val2 ;
|
5448
|
+
int ecode2 = 0 ;
|
5449
|
+
TagLib::MP4::File *result = 0 ;
|
4891
5450
|
|
4892
|
-
if ((argc <
|
4893
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5451
|
+
if ((argc < 2) || (argc > 2)) {
|
5452
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4894
5453
|
}
|
4895
|
-
|
5454
|
+
{
|
5455
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
5456
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
5457
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
5458
|
+
}
|
5459
|
+
}
|
5460
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
5461
|
+
if (!SWIG_IsOK(ecode2)) {
|
5462
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
5463
|
+
}
|
5464
|
+
arg2 = static_cast< bool >(val2);
|
5465
|
+
result = (TagLib::MP4::File *)new TagLib::MP4::File(arg1,arg2);
|
4896
5466
|
DATA_PTR(self) = result;
|
4897
5467
|
SWIG_RubyAddTracking(result, self);
|
4898
5468
|
return self;
|
@@ -4903,12 +5473,12 @@ fail:
|
|
4903
5473
|
|
4904
5474
|
SWIGINTERN VALUE
|
4905
5475
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
4906
|
-
|
5476
|
+
_wrap_File_allocate(VALUE self)
|
4907
5477
|
#else
|
4908
|
-
|
5478
|
+
_wrap_File_allocate(int argc, VALUE *argv, VALUE self)
|
4909
5479
|
#endif
|
4910
5480
|
{
|
4911
|
-
VALUE vresult = SWIG_NewClassInstance(self,
|
5481
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__MP4__File);
|
4912
5482
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
4913
5483
|
rb_obj_call_init(vresult, argc, argv);
|
4914
5484
|
#endif
|
@@ -4917,24 +5487,20 @@ _wrap_ItemMap_allocate(int argc, VALUE *argv, VALUE self)
|
|
4917
5487
|
|
4918
5488
|
|
4919
5489
|
SWIGINTERN VALUE
|
4920
|
-
|
4921
|
-
TagLib::
|
4922
|
-
|
4923
|
-
int res1 = 0 ;
|
4924
|
-
TagLib::Map< TagLib::String,TagLib::MP4::Item > *result = 0 ;
|
5490
|
+
_wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
5491
|
+
TagLib::FileName arg1 ;
|
5492
|
+
TagLib::MP4::File *result = 0 ;
|
4925
5493
|
|
4926
5494
|
if ((argc < 1) || (argc > 1)) {
|
4927
5495
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4928
5496
|
}
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
|
4934
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const &","Map<(TagLib::String,TagLib::MP4::Item)>", 1, argv[0]));
|
5497
|
+
{
|
5498
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
5499
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
5500
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
5501
|
+
}
|
4935
5502
|
}
|
4936
|
-
|
4937
|
-
result = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *)new TagLib::Map< TagLib::String,TagLib::MP4::Item >((TagLib::Map< TagLib::String,TagLib::MP4::Item > const &)*arg1);
|
5503
|
+
result = (TagLib::MP4::File *)new TagLib::MP4::File(arg1);
|
4938
5504
|
DATA_PTR(self) = result;
|
4939
5505
|
SWIG_RubyAddTracking(result, self);
|
4940
5506
|
return self;
|
@@ -4943,157 +5509,137 @@ fail:
|
|
4943
5509
|
}
|
4944
5510
|
|
4945
5511
|
|
4946
|
-
SWIGINTERN VALUE
|
5512
|
+
SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
4947
5513
|
int argc;
|
4948
|
-
VALUE argv[
|
5514
|
+
VALUE argv[4];
|
4949
5515
|
int ii;
|
4950
5516
|
|
4951
5517
|
argc = nargs;
|
4952
|
-
if (argc >
|
5518
|
+
if (argc > 4) SWIG_fail;
|
4953
5519
|
for (ii = 0; (ii < argc); ++ii) {
|
4954
5520
|
argv[ii] = args[ii];
|
4955
5521
|
}
|
4956
|
-
if (argc == 0) {
|
4957
|
-
return _wrap_new_ItemMap__SWIG_0(nargs, args, self);
|
4958
|
-
}
|
4959
5522
|
if (argc == 1) {
|
4960
5523
|
int _v = 0;
|
4961
|
-
|
4962
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, SWIG_POINTER_NO_NULL);
|
5524
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
4963
5525
|
_v = SWIG_CheckState(res);
|
4964
5526
|
if (_v) {
|
4965
|
-
return
|
5527
|
+
return _wrap_new_File__SWIG_3(nargs, args, self);
|
4966
5528
|
}
|
4967
5529
|
}
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
SWIG_RubyRemoveTracking(arg1);
|
4982
|
-
delete arg1;
|
4983
|
-
}
|
4984
|
-
|
4985
|
-
/*
|
4986
|
-
Document-method: TagLib::MP4::ItemMap.size
|
4987
|
-
|
4988
|
-
call-seq:
|
4989
|
-
size -> unsigned int
|
4990
|
-
|
4991
|
-
Size or Length of the ItemMap.
|
4992
|
-
*/
|
4993
|
-
SWIGINTERN VALUE
|
4994
|
-
_wrap_ItemMap_size(int argc, VALUE *argv, VALUE self) {
|
4995
|
-
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
4996
|
-
void *argp1 = 0 ;
|
4997
|
-
int res1 = 0 ;
|
4998
|
-
unsigned int result;
|
4999
|
-
VALUE vresult = Qnil;
|
5000
|
-
|
5001
|
-
if ((argc < 0) || (argc > 0)) {
|
5002
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5530
|
+
if (argc == 2) {
|
5531
|
+
int _v = 0;
|
5532
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
5533
|
+
_v = SWIG_CheckState(res);
|
5534
|
+
if (_v) {
|
5535
|
+
{
|
5536
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
5537
|
+
_v = SWIG_CheckState(res);
|
5538
|
+
}
|
5539
|
+
if (_v) {
|
5540
|
+
return _wrap_new_File__SWIG_2(nargs, args, self);
|
5541
|
+
}
|
5542
|
+
}
|
5003
5543
|
}
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5544
|
+
if (argc == 3) {
|
5545
|
+
int _v = 0;
|
5546
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
5547
|
+
_v = SWIG_CheckState(res);
|
5548
|
+
if (_v) {
|
5549
|
+
{
|
5550
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
5551
|
+
_v = SWIG_CheckState(res);
|
5552
|
+
}
|
5553
|
+
if (_v) {
|
5554
|
+
{
|
5555
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
5556
|
+
_v = SWIG_CheckState(res);
|
5557
|
+
}
|
5558
|
+
if (_v) {
|
5559
|
+
return _wrap_new_File__SWIG_1(nargs, args, self);
|
5560
|
+
}
|
5561
|
+
}
|
5562
|
+
}
|
5007
5563
|
}
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5564
|
+
if (argc == 4) {
|
5565
|
+
int _v = 0;
|
5566
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
5567
|
+
_v = SWIG_CheckState(res);
|
5568
|
+
if (_v) {
|
5569
|
+
{
|
5570
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
5571
|
+
_v = SWIG_CheckState(res);
|
5572
|
+
}
|
5573
|
+
if (_v) {
|
5574
|
+
{
|
5575
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
5576
|
+
_v = SWIG_CheckState(res);
|
5577
|
+
}
|
5578
|
+
if (_v) {
|
5579
|
+
void *vptr = 0;
|
5580
|
+
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TagLib__MP4__ItemFactory, 0);
|
5581
|
+
_v = SWIG_CheckState(res);
|
5582
|
+
if (_v) {
|
5583
|
+
return _wrap_new_File__SWIG_0(nargs, args, self);
|
5584
|
+
}
|
5585
|
+
}
|
5586
|
+
}
|
5587
|
+
}
|
5588
|
+
}
|
5589
|
+
|
5012
5590
|
fail:
|
5591
|
+
Ruby_Format_OverloadedError( argc, 4, "File.new",
|
5592
|
+
" File.new(TagLib::FileName file, bool readProperties, TagLib::MP4::Properties::ReadStyle audioPropertiesStyle, TagLib::MP4::ItemFactory *itemFactory)\n"
|
5593
|
+
" File.new(TagLib::FileName file, bool readProperties, TagLib::MP4::Properties::ReadStyle audioPropertiesStyle)\n"
|
5594
|
+
" File.new(TagLib::FileName file, bool readProperties)\n"
|
5595
|
+
" File.new(TagLib::FileName file)\n");
|
5596
|
+
|
5013
5597
|
return Qnil;
|
5014
5598
|
}
|
5015
5599
|
|
5016
5600
|
|
5017
5601
|
SWIGINTERN VALUE
|
5018
|
-
|
5019
|
-
TagLib::
|
5602
|
+
_wrap_File_tag(int argc, VALUE *argv, VALUE self) {
|
5603
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5020
5604
|
void *argp1 = 0 ;
|
5021
5605
|
int res1 = 0 ;
|
5022
|
-
|
5606
|
+
TagLib::MP4::Tag *result = 0 ;
|
5023
5607
|
VALUE vresult = Qnil;
|
5024
5608
|
|
5025
5609
|
if ((argc < 0) || (argc > 0)) {
|
5026
5610
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5027
5611
|
}
|
5028
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5029
|
-
if (!SWIG_IsOK(res1)) {
|
5030
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::Map< TagLib::String,TagLib::MP4::Item > const *","isEmpty", 1, self ));
|
5031
|
-
}
|
5032
|
-
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
5033
|
-
result = (bool)((TagLib::Map< TagLib::String,TagLib::MP4::Item > const *)arg1)->isEmpty();
|
5034
|
-
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5035
|
-
return vresult;
|
5036
|
-
fail:
|
5037
|
-
return Qnil;
|
5038
|
-
}
|
5039
|
-
|
5040
|
-
|
5041
|
-
SWIGINTERN VALUE
|
5042
|
-
_wrap_ItemMap_contains(int argc, VALUE *argv, VALUE self) {
|
5043
|
-
TagLib::Map< TagLib::String,TagLib::MP4::Item > *arg1 = (TagLib::Map< TagLib::String,TagLib::MP4::Item > *) 0 ;
|
5044
|
-
TagLib::String *arg2 = 0 ;
|
5045
|
-
void *argp1 = 0 ;
|
5046
|
-
int res1 = 0 ;
|
5047
|
-
TagLib::String tmp2 ;
|
5048
|
-
bool result;
|
5049
|
-
VALUE vresult = Qnil;
|
5050
|
-
|
5051
|
-
if ((argc < 1) || (argc > 1)) {
|
5052
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5053
|
-
}
|
5054
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0 | 0 );
|
5612
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5055
5613
|
if (!SWIG_IsOK(res1)) {
|
5056
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5057
|
-
}
|
5058
|
-
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
5059
|
-
{
|
5060
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5061
|
-
arg2 = &tmp2;
|
5614
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File const *","tag", 1, self ));
|
5062
5615
|
}
|
5063
|
-
|
5064
|
-
|
5616
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5617
|
+
result = (TagLib::MP4::Tag *)((TagLib::MP4::File const *)arg1)->tag();
|
5618
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Tag, 0 | 0 );
|
5065
5619
|
return vresult;
|
5066
5620
|
fail:
|
5067
5621
|
return Qnil;
|
5068
5622
|
}
|
5069
5623
|
|
5070
|
-
|
5071
|
-
/*
|
5072
|
-
Document-method: TagLib::MP4::ItemMap.to_a
|
5073
|
-
|
5074
|
-
call-seq:
|
5075
|
-
to_a -> VALUE
|
5076
|
-
|
5077
|
-
Convert ItemMap to an Array.
|
5078
|
-
*/
|
5624
|
+
|
5079
5625
|
SWIGINTERN VALUE
|
5080
|
-
|
5081
|
-
TagLib::
|
5626
|
+
_wrap_File_audio_properties(int argc, VALUE *argv, VALUE self) {
|
5627
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5082
5628
|
void *argp1 = 0 ;
|
5083
5629
|
int res1 = 0 ;
|
5084
|
-
|
5630
|
+
TagLib::MP4::Properties *result = 0 ;
|
5085
5631
|
VALUE vresult = Qnil;
|
5086
5632
|
|
5087
5633
|
if ((argc < 0) || (argc > 0)) {
|
5088
5634
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5089
5635
|
}
|
5090
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5636
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5091
5637
|
if (!SWIG_IsOK(res1)) {
|
5092
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5638
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File const *","audioProperties", 1, self ));
|
5093
5639
|
}
|
5094
|
-
arg1 = reinterpret_cast< TagLib::
|
5095
|
-
result = (
|
5096
|
-
vresult = result;
|
5640
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5641
|
+
result = (TagLib::MP4::Properties *)((TagLib::MP4::File const *)arg1)->audioProperties();
|
5642
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__MP4__Properties, 0 | 0 );
|
5097
5643
|
return vresult;
|
5098
5644
|
fail:
|
5099
5645
|
return Qnil;
|
@@ -5101,23 +5647,23 @@ fail:
|
|
5101
5647
|
|
5102
5648
|
|
5103
5649
|
SWIGINTERN VALUE
|
5104
|
-
|
5105
|
-
TagLib::
|
5650
|
+
_wrap_File_save(int argc, VALUE *argv, VALUE self) {
|
5651
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5106
5652
|
void *argp1 = 0 ;
|
5107
5653
|
int res1 = 0 ;
|
5108
|
-
|
5654
|
+
bool result;
|
5109
5655
|
VALUE vresult = Qnil;
|
5110
5656
|
|
5111
5657
|
if ((argc < 0) || (argc > 0)) {
|
5112
5658
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5113
5659
|
}
|
5114
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5660
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5115
5661
|
if (!SWIG_IsOK(res1)) {
|
5116
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5662
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File *","save", 1, self ));
|
5117
5663
|
}
|
5118
|
-
arg1 = reinterpret_cast< TagLib::
|
5119
|
-
result = (
|
5120
|
-
vresult = result;
|
5664
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5665
|
+
result = (bool)(arg1)->save();
|
5666
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5121
5667
|
return vresult;
|
5122
5668
|
fail:
|
5123
5669
|
return Qnil;
|
@@ -5125,29 +5671,31 @@ fail:
|
|
5125
5671
|
|
5126
5672
|
|
5127
5673
|
SWIGINTERN VALUE
|
5128
|
-
|
5129
|
-
TagLib::
|
5130
|
-
|
5674
|
+
_wrap_File_strip__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
5675
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5676
|
+
int arg2 ;
|
5131
5677
|
void *argp1 = 0 ;
|
5132
5678
|
int res1 = 0 ;
|
5133
|
-
|
5134
|
-
|
5679
|
+
int val2 ;
|
5680
|
+
int ecode2 = 0 ;
|
5681
|
+
bool result;
|
5135
5682
|
VALUE vresult = Qnil;
|
5136
5683
|
|
5137
5684
|
if ((argc < 1) || (argc > 1)) {
|
5138
5685
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5139
5686
|
}
|
5140
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5687
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5141
5688
|
if (!SWIG_IsOK(res1)) {
|
5142
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5689
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File *","strip", 1, self ));
|
5143
5690
|
}
|
5144
|
-
arg1 = reinterpret_cast< TagLib::
|
5145
|
-
|
5146
|
-
|
5147
|
-
|
5148
|
-
}
|
5149
|
-
|
5150
|
-
|
5691
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5692
|
+
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
5693
|
+
if (!SWIG_IsOK(ecode2)) {
|
5694
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","strip", 2, argv[0] ));
|
5695
|
+
}
|
5696
|
+
arg2 = static_cast< int >(val2);
|
5697
|
+
result = (bool)(arg1)->strip(arg2);
|
5698
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5151
5699
|
return vresult;
|
5152
5700
|
fail:
|
5153
5701
|
return Qnil;
|
@@ -5155,53 +5703,92 @@ fail:
|
|
5155
5703
|
|
5156
5704
|
|
5157
5705
|
SWIGINTERN VALUE
|
5158
|
-
|
5159
|
-
TagLib::
|
5706
|
+
_wrap_File_strip__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
5707
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5160
5708
|
void *argp1 = 0 ;
|
5161
5709
|
int res1 = 0 ;
|
5162
|
-
|
5710
|
+
bool result;
|
5163
5711
|
VALUE vresult = Qnil;
|
5164
5712
|
|
5165
5713
|
if ((argc < 0) || (argc > 0)) {
|
5166
5714
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5167
5715
|
}
|
5168
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5716
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5169
5717
|
if (!SWIG_IsOK(res1)) {
|
5170
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5718
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File *","strip", 1, self ));
|
5171
5719
|
}
|
5172
|
-
arg1 = reinterpret_cast< TagLib::
|
5173
|
-
result = (
|
5174
|
-
vresult = result;
|
5720
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5721
|
+
result = (bool)(arg1)->strip();
|
5722
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5175
5723
|
return vresult;
|
5176
5724
|
fail:
|
5177
5725
|
return Qnil;
|
5178
5726
|
}
|
5179
5727
|
|
5180
5728
|
|
5729
|
+
SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
5730
|
+
int argc;
|
5731
|
+
VALUE argv[3];
|
5732
|
+
int ii;
|
5733
|
+
|
5734
|
+
argc = nargs + 1;
|
5735
|
+
argv[0] = self;
|
5736
|
+
if (argc > 3) SWIG_fail;
|
5737
|
+
for (ii = 1; (ii < argc); ++ii) {
|
5738
|
+
argv[ii] = args[ii-1];
|
5739
|
+
}
|
5740
|
+
if (argc == 1) {
|
5741
|
+
int _v = 0;
|
5742
|
+
void *vptr = 0;
|
5743
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__File, 0);
|
5744
|
+
_v = SWIG_CheckState(res);
|
5745
|
+
if (_v) {
|
5746
|
+
return _wrap_File_strip__SWIG_1(nargs, args, self);
|
5747
|
+
}
|
5748
|
+
}
|
5749
|
+
if (argc == 2) {
|
5750
|
+
int _v = 0;
|
5751
|
+
void *vptr = 0;
|
5752
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MP4__File, 0);
|
5753
|
+
_v = SWIG_CheckState(res);
|
5754
|
+
if (_v) {
|
5755
|
+
{
|
5756
|
+
int res = SWIG_AsVal_int(argv[1], NULL);
|
5757
|
+
_v = SWIG_CheckState(res);
|
5758
|
+
}
|
5759
|
+
if (_v) {
|
5760
|
+
return _wrap_File_strip__SWIG_0(nargs, args, self);
|
5761
|
+
}
|
5762
|
+
}
|
5763
|
+
}
|
5764
|
+
|
5765
|
+
fail:
|
5766
|
+
Ruby_Format_OverloadedError( argc, 3, "File.strip",
|
5767
|
+
" bool File.strip(int tags)\n"
|
5768
|
+
" bool File.strip()\n");
|
5769
|
+
|
5770
|
+
return Qnil;
|
5771
|
+
}
|
5772
|
+
|
5773
|
+
|
5181
5774
|
SWIGINTERN VALUE
|
5182
|
-
|
5183
|
-
TagLib::
|
5184
|
-
TagLib::String *arg2 = 0 ;
|
5775
|
+
_wrap_File_mp4_tagq___(int argc, VALUE *argv, VALUE self) {
|
5776
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5185
5777
|
void *argp1 = 0 ;
|
5186
5778
|
int res1 = 0 ;
|
5187
|
-
|
5188
|
-
VALUE result;
|
5779
|
+
bool result;
|
5189
5780
|
VALUE vresult = Qnil;
|
5190
5781
|
|
5191
|
-
if ((argc <
|
5192
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5782
|
+
if ((argc < 0) || (argc > 0)) {
|
5783
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5193
5784
|
}
|
5194
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5785
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5195
5786
|
if (!SWIG_IsOK(res1)) {
|
5196
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5197
|
-
}
|
5198
|
-
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
5199
|
-
{
|
5200
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5201
|
-
arg2 = &tmp2;
|
5787
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File const *","hasMP4Tag", 1, self ));
|
5202
5788
|
}
|
5203
|
-
|
5204
|
-
|
5789
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5790
|
+
result = (bool)((TagLib::MP4::File const *)arg1)->hasMP4Tag();
|
5791
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
5205
5792
|
return vresult;
|
5206
5793
|
fail:
|
5207
5794
|
return Qnil;
|
@@ -5209,41 +5796,21 @@ fail:
|
|
5209
5796
|
|
5210
5797
|
|
5211
5798
|
SWIGINTERN VALUE
|
5212
|
-
|
5213
|
-
TagLib::
|
5214
|
-
TagLib::String *arg2 = 0 ;
|
5215
|
-
TagLib::MP4::Item *arg3 = 0 ;
|
5799
|
+
_wrap_File_close(int argc, VALUE *argv, VALUE self) {
|
5800
|
+
TagLib::MP4::File *arg1 = (TagLib::MP4::File *) 0 ;
|
5216
5801
|
void *argp1 = 0 ;
|
5217
5802
|
int res1 = 0 ;
|
5218
|
-
TagLib::String tmp2 ;
|
5219
|
-
void *argp3 = 0 ;
|
5220
|
-
int res3 = 0 ;
|
5221
|
-
VALUE result;
|
5222
|
-
VALUE vresult = Qnil;
|
5223
5803
|
|
5224
|
-
if ((argc <
|
5225
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5804
|
+
if ((argc < 0) || (argc > 0)) {
|
5805
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5226
5806
|
}
|
5227
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
5807
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MP4__File, 0 | 0 );
|
5228
5808
|
if (!SWIG_IsOK(res1)) {
|
5229
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
5230
|
-
}
|
5231
|
-
arg1 = reinterpret_cast< TagLib::Map< TagLib::String,TagLib::MP4::Item > * >(argp1);
|
5232
|
-
{
|
5233
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
5234
|
-
arg2 = &tmp2;
|
5235
|
-
}
|
5236
|
-
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_TagLib__MP4__Item, 0 );
|
5237
|
-
if (!SWIG_IsOK(res3)) {
|
5238
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::MP4::Item const &","_insert", 3, argv[1] ));
|
5239
|
-
}
|
5240
|
-
if (!argp3) {
|
5241
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::MP4::Item const &","_insert", 3, argv[1]));
|
5809
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MP4::File *","close", 1, self ));
|
5242
5810
|
}
|
5243
|
-
|
5244
|
-
|
5245
|
-
|
5246
|
-
return vresult;
|
5811
|
+
arg1 = reinterpret_cast< TagLib::MP4::File * >(argp1);
|
5812
|
+
TagLib_MP4_File_close(arg1);
|
5813
|
+
return Qnil;
|
5247
5814
|
fail:
|
5248
5815
|
return Qnil;
|
5249
5816
|
}
|
@@ -5269,11 +5836,13 @@ static swig_type_info _swigt__p_TagLib__MP4__CoverArt = {"_p_TagLib__MP4__CoverA
|
|
5269
5836
|
static swig_type_info _swigt__p_TagLib__MP4__CoverArtList = {"_p_TagLib__MP4__CoverArtList", "TagLib::MP4::CoverArtList *", 0, 0, (void*)0, 0};
|
5270
5837
|
static swig_type_info _swigt__p_TagLib__MP4__File = {"_p_TagLib__MP4__File", "TagLib::MP4::File *", 0, 0, (void*)0, 0};
|
5271
5838
|
static swig_type_info _swigt__p_TagLib__MP4__Item = {"_p_TagLib__MP4__Item", "TagLib::MP4::Item *", 0, 0, (void*)0, 0};
|
5839
|
+
static swig_type_info _swigt__p_TagLib__MP4__ItemFactory = {"_p_TagLib__MP4__ItemFactory", "TagLib::MP4::ItemFactory *", 0, 0, (void*)0, 0};
|
5272
5840
|
static swig_type_info _swigt__p_TagLib__MP4__Properties = {"_p_TagLib__MP4__Properties", "TagLib::MP4::Properties *", 0, 0, (void*)0, 0};
|
5273
5841
|
static swig_type_info _swigt__p_TagLib__MP4__Tag = {"_p_TagLib__MP4__Tag", "TagLib::MP4::Tag *", 0, 0, (void*)0, 0};
|
5274
|
-
static swig_type_info _swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t = {"_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t", "TagLib::MP4::
|
5842
|
+
static swig_type_info _swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t = {"_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t", "TagLib::MP4::ItemMap *|TagLib::Map< TagLib::String,TagLib::MP4::Item > *", 0, 0, (void*)0, 0};
|
5275
5843
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
5276
5844
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
5845
|
+
static swig_type_info _swigt__p_long_long = {"_p_long_long", "TagLib::offset_t *|long long *", 0, 0, (void*)0, 0};
|
5277
5846
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
5278
5847
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
5279
5848
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
@@ -5288,11 +5857,13 @@ static swig_type_info *swig_type_initial[] = {
|
|
5288
5857
|
&_swigt__p_TagLib__MP4__CoverArtList,
|
5289
5858
|
&_swigt__p_TagLib__MP4__File,
|
5290
5859
|
&_swigt__p_TagLib__MP4__Item,
|
5860
|
+
&_swigt__p_TagLib__MP4__ItemFactory,
|
5291
5861
|
&_swigt__p_TagLib__MP4__Properties,
|
5292
5862
|
&_swigt__p_TagLib__MP4__Tag,
|
5293
5863
|
&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5294
5864
|
&_swigt__p_TagLib__Tag,
|
5295
5865
|
&_swigt__p_char,
|
5866
|
+
&_swigt__p_long_long,
|
5296
5867
|
&_swigt__p_unsigned_char,
|
5297
5868
|
&_swigt__p_unsigned_int,
|
5298
5869
|
&_swigt__p_unsigned_long,
|
@@ -5307,11 +5878,13 @@ static swig_cast_info _swigc__p_TagLib__MP4__CoverArt[] = { {&_swigt__p_TagLib_
|
|
5307
5878
|
static swig_cast_info _swigc__p_TagLib__MP4__CoverArtList[] = { {&_swigt__p_TagLib__MP4__CoverArtList, 0, 0, 0},{0, 0, 0, 0}};
|
5308
5879
|
static swig_cast_info _swigc__p_TagLib__MP4__File[] = { {&_swigt__p_TagLib__MP4__File, 0, 0, 0},{0, 0, 0, 0}};
|
5309
5880
|
static swig_cast_info _swigc__p_TagLib__MP4__Item[] = { {&_swigt__p_TagLib__MP4__Item, 0, 0, 0},{0, 0, 0, 0}};
|
5881
|
+
static swig_cast_info _swigc__p_TagLib__MP4__ItemFactory[] = { {&_swigt__p_TagLib__MP4__ItemFactory, 0, 0, 0},{0, 0, 0, 0}};
|
5310
5882
|
static swig_cast_info _swigc__p_TagLib__MP4__Properties[] = { {&_swigt__p_TagLib__MP4__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
5311
5883
|
static swig_cast_info _swigc__p_TagLib__MP4__Tag[] = { {&_swigt__p_TagLib__MP4__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
5312
5884
|
static swig_cast_info _swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t[] = { {&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0, 0, 0},{0, 0, 0, 0}};
|
5313
5885
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0}, {&_swigt__p_TagLib__MP4__Tag, _p_TagLib__MP4__TagTo_p_TagLib__Tag, 0, 0},{0, 0, 0, 0}};
|
5314
5886
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
5887
|
+
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
5315
5888
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
5316
5889
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
5317
5890
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -5326,11 +5899,13 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
5326
5899
|
_swigc__p_TagLib__MP4__CoverArtList,
|
5327
5900
|
_swigc__p_TagLib__MP4__File,
|
5328
5901
|
_swigc__p_TagLib__MP4__Item,
|
5902
|
+
_swigc__p_TagLib__MP4__ItemFactory,
|
5329
5903
|
_swigc__p_TagLib__MP4__Properties,
|
5330
5904
|
_swigc__p_TagLib__MP4__Tag,
|
5331
5905
|
_swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5332
5906
|
_swigc__p_TagLib__Tag,
|
5333
5907
|
_swigc__p_char,
|
5908
|
+
_swigc__p_long_long,
|
5334
5909
|
_swigc__p_unsigned_char,
|
5335
5910
|
_swigc__p_unsigned_int,
|
5336
5911
|
_swigc__p_unsigned_long,
|
@@ -5602,7 +6177,6 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5602
6177
|
rb_define_const(SwigClassProperties.klass, "Unknown", SWIG_From_int(static_cast< int >(TagLib::MP4::Properties::Unknown)));
|
5603
6178
|
rb_define_const(SwigClassProperties.klass, "AAC", SWIG_From_int(static_cast< int >(TagLib::MP4::Properties::AAC)));
|
5604
6179
|
rb_define_const(SwigClassProperties.klass, "ALAC", SWIG_From_int(static_cast< int >(TagLib::MP4::Properties::ALAC)));
|
5605
|
-
rb_define_method(SwigClassProperties.klass, "length_in_seconds", VALUEFUNC(_wrap_Properties_length_in_seconds), -1);
|
5606
6180
|
rb_define_method(SwigClassProperties.klass, "length_in_milliseconds", VALUEFUNC(_wrap_Properties_length_in_milliseconds), -1);
|
5607
6181
|
rb_define_method(SwigClassProperties.klass, "bitrate", VALUEFUNC(_wrap_Properties_bitrate), -1);
|
5608
6182
|
rb_define_method(SwigClassProperties.klass, "sample_rate", VALUEFUNC(_wrap_Properties_sample_rate), -1);
|
@@ -5614,35 +6188,6 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5614
6188
|
SwigClassProperties.destroy = (void (*)(void *)) free_TagLib_MP4_Properties;
|
5615
6189
|
SwigClassProperties.trackObjects = 1;
|
5616
6190
|
|
5617
|
-
SwigClassTag.klass = rb_define_class_under(mMP4, "Tag", ((swig_class *) SWIGTYPE_p_TagLib__Tag->clientdata)->klass);
|
5618
|
-
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__Tag, (void *) &SwigClassTag);
|
5619
|
-
rb_define_alloc_func(SwigClassTag.klass, _wrap_Tag_allocate);
|
5620
|
-
rb_define_method(SwigClassTag.klass, "initialize", VALUEFUNC(_wrap_new_Tag), -1);
|
5621
|
-
rb_define_method(SwigClassTag.klass, "save", VALUEFUNC(_wrap_Tag_save), -1);
|
5622
|
-
rb_define_method(SwigClassTag.klass, "title", VALUEFUNC(_wrap_Tag_title), -1);
|
5623
|
-
rb_define_method(SwigClassTag.klass, "artist", VALUEFUNC(_wrap_Tag_artist), -1);
|
5624
|
-
rb_define_method(SwigClassTag.klass, "album", VALUEFUNC(_wrap_Tag_album), -1);
|
5625
|
-
rb_define_method(SwigClassTag.klass, "comment", VALUEFUNC(_wrap_Tag_comment), -1);
|
5626
|
-
rb_define_method(SwigClassTag.klass, "genre", VALUEFUNC(_wrap_Tag_genre), -1);
|
5627
|
-
rb_define_method(SwigClassTag.klass, "year", VALUEFUNC(_wrap_Tag_year), -1);
|
5628
|
-
rb_define_method(SwigClassTag.klass, "track", VALUEFUNC(_wrap_Tag_track), -1);
|
5629
|
-
rb_define_method(SwigClassTag.klass, "title=", VALUEFUNC(_wrap_Tag_titlee___), -1);
|
5630
|
-
rb_define_method(SwigClassTag.klass, "artist=", VALUEFUNC(_wrap_Tag_artiste___), -1);
|
5631
|
-
rb_define_method(SwigClassTag.klass, "album=", VALUEFUNC(_wrap_Tag_albume___), -1);
|
5632
|
-
rb_define_method(SwigClassTag.klass, "comment=", VALUEFUNC(_wrap_Tag_commente___), -1);
|
5633
|
-
rb_define_method(SwigClassTag.klass, "genre=", VALUEFUNC(_wrap_Tag_genree___), -1);
|
5634
|
-
rb_define_method(SwigClassTag.klass, "year=", VALUEFUNC(_wrap_Tag_yeare___), -1);
|
5635
|
-
rb_define_method(SwigClassTag.klass, "track=", VALUEFUNC(_wrap_Tag_tracke___), -1);
|
5636
|
-
rb_define_method(SwigClassTag.klass, "empty?", VALUEFUNC(_wrap_Tag_emptyq___), -1);
|
5637
|
-
rb_define_method(SwigClassTag.klass, "item_map", VALUEFUNC(_wrap_Tag_item_map), -1);
|
5638
|
-
rb_define_method(SwigClassTag.klass, "[]", VALUEFUNC(_wrap_Tag___getitem__), -1);
|
5639
|
-
rb_define_method(SwigClassTag.klass, "contains", VALUEFUNC(_wrap_Tag_contains), -1);
|
5640
|
-
rb_define_method(SwigClassTag.klass, "[]=", VALUEFUNC(_wrap_Tag___setitem__), -1);
|
5641
|
-
rb_define_method(SwigClassTag.klass, "remove_item", VALUEFUNC(_wrap_Tag_remove_item), -1);
|
5642
|
-
SwigClassTag.mark = 0;
|
5643
|
-
SwigClassTag.destroy = (void (*)(void *)) free_TagLib_MP4_Tag;
|
5644
|
-
SwigClassTag.trackObjects = 1;
|
5645
|
-
|
5646
6191
|
SwigClassCoverArt.klass = rb_define_class_under(mMP4, "CoverArt", rb_cObject);
|
5647
6192
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__CoverArt, (void *) &SwigClassCoverArt);
|
5648
6193
|
rb_define_alloc_func(SwigClassCoverArt.klass, _wrap_CoverArt_allocate);
|
@@ -5654,6 +6199,7 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5654
6199
|
rb_define_const(SwigClassCoverArt.klass, "Unknown", SWIG_From_int(static_cast< int >(TagLib::MP4::CoverArt::Unknown)));
|
5655
6200
|
rb_define_method(SwigClassCoverArt.klass, "format", VALUEFUNC(_wrap_CoverArt_format), -1);
|
5656
6201
|
rb_define_method(SwigClassCoverArt.klass, "data", VALUEFUNC(_wrap_CoverArt_data), -1);
|
6202
|
+
rb_define_method(SwigClassCoverArt.klass, "==", VALUEFUNC(_wrap_CoverArt___eq__), -1);
|
5657
6203
|
SwigClassCoverArt.mark = 0;
|
5658
6204
|
SwigClassCoverArt.destroy = (void (*)(void *)) free_TagLib_MP4_CoverArt;
|
5659
6205
|
SwigClassCoverArt.trackObjects = 1;
|
@@ -5662,6 +6208,16 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5662
6208
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__Item, (void *) &SwigClassItem);
|
5663
6209
|
rb_define_alloc_func(SwigClassItem.klass, _wrap_Item_allocate);
|
5664
6210
|
rb_define_method(SwigClassItem.klass, "initialize", VALUEFUNC(_wrap_new_Item), -1);
|
6211
|
+
rb_define_const(SwigClassItem.klass, "Type_Void", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::Void)));
|
6212
|
+
rb_define_const(SwigClassItem.klass, "Type_Bool", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::Bool)));
|
6213
|
+
rb_define_const(SwigClassItem.klass, "Type_Int", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::Int)));
|
6214
|
+
rb_define_const(SwigClassItem.klass, "Type_IntPair", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::IntPair)));
|
6215
|
+
rb_define_const(SwigClassItem.klass, "Type_Byte", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::Byte)));
|
6216
|
+
rb_define_const(SwigClassItem.klass, "Type_UInt", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::UInt)));
|
6217
|
+
rb_define_const(SwigClassItem.klass, "Type_LongLong", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::LongLong)));
|
6218
|
+
rb_define_const(SwigClassItem.klass, "Type_StringList", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::StringList)));
|
6219
|
+
rb_define_const(SwigClassItem.klass, "Type_ByteVectorList", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::ByteVectorList)));
|
6220
|
+
rb_define_const(SwigClassItem.klass, "Type_CoverArtList", SWIG_From_int(static_cast< int >(TagLib::MP4::Item::Type::CoverArtList)));
|
5665
6221
|
rb_define_method(SwigClassItem.klass, "to_int", VALUEFUNC(_wrap_Item_to_int), -1);
|
5666
6222
|
rb_define_method(SwigClassItem.klass, "to_byte", VALUEFUNC(_wrap_Item_to_byte), -1);
|
5667
6223
|
rb_define_method(SwigClassItem.klass, "to_uint", VALUEFUNC(_wrap_Item_to_uint), -1);
|
@@ -5672,6 +6228,8 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5672
6228
|
rb_define_method(SwigClassItem.klass, "to_byte_vector_list", VALUEFUNC(_wrap_Item_to_byte_vector_list), -1);
|
5673
6229
|
rb_define_method(SwigClassItem.klass, "to_cover_art_list", VALUEFUNC(_wrap_Item_to_cover_art_list), -1);
|
5674
6230
|
rb_define_method(SwigClassItem.klass, "valid?", VALUEFUNC(_wrap_Item_validq___), -1);
|
6231
|
+
rb_define_method(SwigClassItem.klass, "type", VALUEFUNC(_wrap_Item_type), -1);
|
6232
|
+
rb_define_method(SwigClassItem.klass, "==", VALUEFUNC(_wrap_Item___eq__), -1);
|
5675
6233
|
rb_define_singleton_method(SwigClassItem.klass, "from_bool", VALUEFUNC(_wrap_Item_from_bool), -1);
|
5676
6234
|
rb_define_singleton_method(SwigClassItem.klass, "from_byte", VALUEFUNC(_wrap_Item_from_byte), -1);
|
5677
6235
|
rb_define_singleton_method(SwigClassItem.klass, "from_uint", VALUEFUNC(_wrap_Item_from_uint), -1);
|
@@ -5684,19 +6242,6 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5684
6242
|
SwigClassItem.destroy = (void (*)(void *)) free_TagLib_MP4_Item;
|
5685
6243
|
SwigClassItem.trackObjects = 1;
|
5686
6244
|
|
5687
|
-
SwigClassFile.klass = rb_define_class_under(mMP4, "File", ((swig_class *) SWIGTYPE_p_TagLib__File->clientdata)->klass);
|
5688
|
-
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__File, (void *) &SwigClassFile);
|
5689
|
-
rb_define_alloc_func(SwigClassFile.klass, _wrap_File_allocate);
|
5690
|
-
rb_define_method(SwigClassFile.klass, "initialize", VALUEFUNC(_wrap_new_File), -1);
|
5691
|
-
rb_define_method(SwigClassFile.klass, "tag", VALUEFUNC(_wrap_File_tag), -1);
|
5692
|
-
rb_define_method(SwigClassFile.klass, "audio_properties", VALUEFUNC(_wrap_File_audio_properties), -1);
|
5693
|
-
rb_define_method(SwigClassFile.klass, "save", VALUEFUNC(_wrap_File_save), -1);
|
5694
|
-
rb_define_method(SwigClassFile.klass, "mp4_tag?", VALUEFUNC(_wrap_File_mp4_tagq___), -1);
|
5695
|
-
rb_define_method(SwigClassFile.klass, "close", VALUEFUNC(_wrap_File_close), -1);
|
5696
|
-
SwigClassFile.mark = 0;
|
5697
|
-
SwigClassFile.destroy = (void (*)(void *)) free_taglib_mp4_file;
|
5698
|
-
SwigClassFile.trackObjects = 1;
|
5699
|
-
|
5700
6245
|
SwigClassItemMap.klass = rb_define_class_under(mMP4, "ItemMap", rb_cObject);
|
5701
6246
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, (void *) &SwigClassItemMap);
|
5702
6247
|
rb_define_alloc_func(SwigClassItemMap.klass, _wrap_ItemMap_allocate);
|
@@ -5706,6 +6251,9 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5706
6251
|
rb_define_method(SwigClassItemMap.klass, "contains", VALUEFUNC(_wrap_ItemMap_contains), -1);
|
5707
6252
|
rb_define_alias(SwigClassItemMap.klass, "include?", "contains");
|
5708
6253
|
rb_define_alias(SwigClassItemMap.klass, "has_key?", "contains");
|
6254
|
+
rb_define_method(SwigClassItemMap.klass, "value", VALUEFUNC(_wrap_ItemMap_value), -1);
|
6255
|
+
rb_define_method(SwigClassItemMap.klass, "swap", VALUEFUNC(_wrap_ItemMap_swap), -1);
|
6256
|
+
rb_define_method(SwigClassItemMap.klass, "==", VALUEFUNC(_wrap_ItemMap___eq__), -1);
|
5709
6257
|
rb_define_method(SwigClassItemMap.klass, "to_a", VALUEFUNC(_wrap_ItemMap_to_a), -1);
|
5710
6258
|
rb_define_method(SwigClassItemMap.klass, "to_h", VALUEFUNC(_wrap_ItemMap_to_h), -1);
|
5711
6259
|
rb_define_method(SwigClassItemMap.klass, "fetch", VALUEFUNC(_wrap_ItemMap_fetch), -1);
|
@@ -5715,5 +6263,52 @@ SWIGEXPORT void Init_taglib_mp4(void) {
|
|
5715
6263
|
SwigClassItemMap.mark = 0;
|
5716
6264
|
SwigClassItemMap.destroy = (void (*)(void *)) free_TagLib_Map_Sl_TagLib_String_Sc_TagLib_MP4_Item_Sg_;
|
5717
6265
|
SwigClassItemMap.trackObjects = 1;
|
6266
|
+
|
6267
|
+
SwigClassTag.klass = rb_define_class_under(mMP4, "Tag", ((swig_class *) SWIGTYPE_p_TagLib__Tag->clientdata)->klass);
|
6268
|
+
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__Tag, (void *) &SwigClassTag);
|
6269
|
+
rb_define_alloc_func(SwigClassTag.klass, _wrap_Tag_allocate);
|
6270
|
+
rb_define_method(SwigClassTag.klass, "initialize", VALUEFUNC(_wrap_new_Tag), -1);
|
6271
|
+
rb_define_method(SwigClassTag.klass, "save", VALUEFUNC(_wrap_Tag_save), -1);
|
6272
|
+
rb_define_method(SwigClassTag.klass, "title", VALUEFUNC(_wrap_Tag_title), -1);
|
6273
|
+
rb_define_method(SwigClassTag.klass, "artist", VALUEFUNC(_wrap_Tag_artist), -1);
|
6274
|
+
rb_define_method(SwigClassTag.klass, "album", VALUEFUNC(_wrap_Tag_album), -1);
|
6275
|
+
rb_define_method(SwigClassTag.klass, "comment", VALUEFUNC(_wrap_Tag_comment), -1);
|
6276
|
+
rb_define_method(SwigClassTag.klass, "genre", VALUEFUNC(_wrap_Tag_genre), -1);
|
6277
|
+
rb_define_method(SwigClassTag.klass, "year", VALUEFUNC(_wrap_Tag_year), -1);
|
6278
|
+
rb_define_method(SwigClassTag.klass, "track", VALUEFUNC(_wrap_Tag_track), -1);
|
6279
|
+
rb_define_method(SwigClassTag.klass, "title=", VALUEFUNC(_wrap_Tag_titlee___), -1);
|
6280
|
+
rb_define_method(SwigClassTag.klass, "artist=", VALUEFUNC(_wrap_Tag_artiste___), -1);
|
6281
|
+
rb_define_method(SwigClassTag.klass, "album=", VALUEFUNC(_wrap_Tag_albume___), -1);
|
6282
|
+
rb_define_method(SwigClassTag.klass, "comment=", VALUEFUNC(_wrap_Tag_commente___), -1);
|
6283
|
+
rb_define_method(SwigClassTag.klass, "genre=", VALUEFUNC(_wrap_Tag_genree___), -1);
|
6284
|
+
rb_define_method(SwigClassTag.klass, "year=", VALUEFUNC(_wrap_Tag_yeare___), -1);
|
6285
|
+
rb_define_method(SwigClassTag.klass, "track=", VALUEFUNC(_wrap_Tag_tracke___), -1);
|
6286
|
+
rb_define_method(SwigClassTag.klass, "empty?", VALUEFUNC(_wrap_Tag_emptyq___), -1);
|
6287
|
+
rb_define_method(SwigClassTag.klass, "item_map", VALUEFUNC(_wrap_Tag_item_map), -1);
|
6288
|
+
rb_define_method(SwigClassTag.klass, "[]", VALUEFUNC(_wrap_Tag___getitem__), -1);
|
6289
|
+
rb_define_method(SwigClassTag.klass, "contains", VALUEFUNC(_wrap_Tag_contains), -1);
|
6290
|
+
rb_define_method(SwigClassTag.klass, "strip", VALUEFUNC(_wrap_Tag_strip), -1);
|
6291
|
+
rb_define_method(SwigClassTag.klass, "[]=", VALUEFUNC(_wrap_Tag___setitem__), -1);
|
6292
|
+
rb_define_method(SwigClassTag.klass, "remove_item", VALUEFUNC(_wrap_Tag_remove_item), -1);
|
6293
|
+
SwigClassTag.mark = 0;
|
6294
|
+
SwigClassTag.destroy = (void (*)(void *)) free_TagLib_MP4_Tag;
|
6295
|
+
SwigClassTag.trackObjects = 1;
|
6296
|
+
|
6297
|
+
SwigClassFile.klass = rb_define_class_under(mMP4, "File", ((swig_class *) SWIGTYPE_p_TagLib__File->clientdata)->klass);
|
6298
|
+
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MP4__File, (void *) &SwigClassFile);
|
6299
|
+
rb_define_alloc_func(SwigClassFile.klass, _wrap_File_allocate);
|
6300
|
+
rb_define_method(SwigClassFile.klass, "initialize", VALUEFUNC(_wrap_new_File), -1);
|
6301
|
+
rb_define_const(SwigClassFile.klass, "NoTags", SWIG_From_int(static_cast< int >(TagLib::MP4::File::NoTags)));
|
6302
|
+
rb_define_const(SwigClassFile.klass, "MP4", SWIG_From_int(static_cast< int >(TagLib::MP4::File::MP4)));
|
6303
|
+
rb_define_const(SwigClassFile.klass, "AllTags", SWIG_From_int(static_cast< int >(TagLib::MP4::File::AllTags)));
|
6304
|
+
rb_define_method(SwigClassFile.klass, "tag", VALUEFUNC(_wrap_File_tag), -1);
|
6305
|
+
rb_define_method(SwigClassFile.klass, "audio_properties", VALUEFUNC(_wrap_File_audio_properties), -1);
|
6306
|
+
rb_define_method(SwigClassFile.klass, "save", VALUEFUNC(_wrap_File_save), -1);
|
6307
|
+
rb_define_method(SwigClassFile.klass, "strip", VALUEFUNC(_wrap_File_strip), -1);
|
6308
|
+
rb_define_method(SwigClassFile.klass, "mp4_tag?", VALUEFUNC(_wrap_File_mp4_tagq___), -1);
|
6309
|
+
rb_define_method(SwigClassFile.klass, "close", VALUEFUNC(_wrap_File_close), -1);
|
6310
|
+
SwigClassFile.mark = 0;
|
6311
|
+
SwigClassFile.destroy = (void (*)(void *)) free_taglib_mp4_file;
|
6312
|
+
SwigClassFile.trackObjects = 1;
|
5718
6313
|
}
|
5719
6314
|
|