taglib-ruby 1.1.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -1865,12 +1865,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1865
1865
|
#define SWIGTYPE_p_TagLib__MPEG__XingHeader swig_types[9]
|
1866
1866
|
#define SWIGTYPE_p_TagLib__Tag swig_types[10]
|
1867
1867
|
#define SWIGTYPE_p_char swig_types[11]
|
1868
|
-
#define
|
1869
|
-
#define
|
1870
|
-
#define
|
1871
|
-
#define
|
1872
|
-
|
1873
|
-
static
|
1868
|
+
#define SWIGTYPE_p_long_long swig_types[12]
|
1869
|
+
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1870
|
+
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1871
|
+
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
1872
|
+
#define SWIGTYPE_p_wchar_t swig_types[16]
|
1873
|
+
static swig_type_info *swig_types[18];
|
1874
|
+
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
1874
1875
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1875
1876
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1876
1877
|
|
@@ -1966,34 +1967,26 @@ template <typename T> T SwigValueInit() {
|
|
1966
1967
|
#endif
|
1967
1968
|
|
1968
1969
|
VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
1969
|
-
|
1970
|
-
return Qnil;
|
1971
|
-
} else {
|
1972
|
-
return rb_str_new(byteVector.data(), byteVector.size());
|
1973
|
-
}
|
1970
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1974
1971
|
}
|
1975
1972
|
|
1976
1973
|
TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
1977
1974
|
if (NIL_P(s)) {
|
1978
|
-
return TagLib::ByteVector
|
1975
|
+
return TagLib::ByteVector();
|
1979
1976
|
} else {
|
1980
1977
|
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1981
1978
|
}
|
1982
1979
|
}
|
1983
1980
|
|
1984
1981
|
VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
VALUE result = rb_str_new2(string.toCString(true));
|
1989
|
-
ASSOCIATE_UTF8_ENCODING(result);
|
1990
|
-
return result;
|
1991
|
-
}
|
1982
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1983
|
+
ASSOCIATE_UTF8_ENCODING(result);
|
1984
|
+
return result;
|
1992
1985
|
}
|
1993
1986
|
|
1994
1987
|
TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
1995
1988
|
if (NIL_P(s)) {
|
1996
|
-
return TagLib::String
|
1989
|
+
return TagLib::String();
|
1997
1990
|
} else {
|
1998
1991
|
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1999
1992
|
}
|
@@ -2082,6 +2075,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
|
|
2082
2075
|
#endif
|
2083
2076
|
}
|
2084
2077
|
|
2078
|
+
VALUE taglib_offset_t_to_ruby_int(TagLib::offset_t off) {
|
2079
|
+
#ifdef _WIN32
|
2080
|
+
return LL2NUM(off);
|
2081
|
+
#else
|
2082
|
+
return OFFT2NUM(off);
|
2083
|
+
#endif
|
2084
|
+
}
|
2085
2085
|
|
2086
2086
|
|
2087
2087
|
#include <limits.h>
|
@@ -2182,7 +2182,44 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2182
2182
|
}
|
2183
2183
|
|
2184
2184
|
|
2185
|
-
|
2185
|
+
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2186
|
+
# define SWIG_LONG_LONG_AVAILABLE
|
2187
|
+
#endif
|
2188
|
+
|
2189
|
+
|
2190
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2191
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2192
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2193
|
+
{
|
2194
|
+
VALUE *args = (VALUE *)arg;
|
2195
|
+
VALUE obj = args[0];
|
2196
|
+
VALUE type = TYPE(obj);
|
2197
|
+
long long *res = (long long *)(args[1]);
|
2198
|
+
*res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
|
2199
|
+
return obj;
|
2200
|
+
}
|
2201
|
+
/*@SWIG@*/
|
2202
|
+
|
2203
|
+
SWIGINTERN int
|
2204
|
+
SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
2205
|
+
{
|
2206
|
+
VALUE type = TYPE(obj);
|
2207
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2208
|
+
long long v;
|
2209
|
+
VALUE a[2];
|
2210
|
+
a[0] = obj;
|
2211
|
+
a[1] = (VALUE)(&v);
|
2212
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2213
|
+
if (val) *val = v;
|
2214
|
+
return SWIG_OK;
|
2215
|
+
}
|
2216
|
+
}
|
2217
|
+
return SWIG_TypeError;
|
2218
|
+
}
|
2219
|
+
#endif
|
2220
|
+
|
2221
|
+
|
2222
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2186
2223
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2187
2224
|
{
|
2188
2225
|
VALUE *args = (VALUE *)arg;
|
@@ -2433,70 +2470,16 @@ fail:
|
|
2433
2470
|
}
|
2434
2471
|
|
2435
2472
|
|
2436
|
-
SWIGINTERN VALUE
|
2437
|
-
_wrap_XingHeader_xing_header_offset(int argc, VALUE *argv, VALUE self) {
|
2438
|
-
TagLib::MPEG::Header::Version arg1 ;
|
2439
|
-
TagLib::MPEG::Header::ChannelMode arg2 ;
|
2440
|
-
int val1 ;
|
2441
|
-
int ecode1 = 0 ;
|
2442
|
-
int val2 ;
|
2443
|
-
int ecode2 = 0 ;
|
2444
|
-
int result;
|
2445
|
-
VALUE vresult = Qnil;
|
2446
|
-
|
2447
|
-
if ((argc < 2) || (argc > 2)) {
|
2448
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2449
|
-
}
|
2450
|
-
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2451
|
-
if (!SWIG_IsOK(ecode1)) {
|
2452
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::MPEG::Header::Version","TagLib::MPEG::XingHeader::xingHeaderOffset", 1, argv[0] ));
|
2453
|
-
}
|
2454
|
-
arg1 = static_cast< TagLib::MPEG::Header::Version >(val1);
|
2455
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2456
|
-
if (!SWIG_IsOK(ecode2)) {
|
2457
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::MPEG::Header::ChannelMode","TagLib::MPEG::XingHeader::xingHeaderOffset", 2, argv[1] ));
|
2458
|
-
}
|
2459
|
-
arg2 = static_cast< TagLib::MPEG::Header::ChannelMode >(val2);
|
2460
|
-
result = (int)TagLib::MPEG::XingHeader::xingHeaderOffset(arg1,arg2);
|
2461
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2462
|
-
return vresult;
|
2463
|
-
fail:
|
2464
|
-
return Qnil;
|
2465
|
-
}
|
2466
|
-
|
2467
|
-
|
2468
2473
|
static swig_class SwigClassHeader;
|
2469
2474
|
|
2470
2475
|
SWIGINTERN VALUE
|
2471
2476
|
_wrap_new_Header__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2472
|
-
TagLib::
|
2473
|
-
TagLib::
|
2474
|
-
TagLib::MPEG::Header *result = 0 ;
|
2475
|
-
|
2476
|
-
if ((argc < 1) || (argc > 1)) {
|
2477
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2478
|
-
}
|
2479
|
-
{
|
2480
|
-
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2481
|
-
arg1 = &tmp1;
|
2482
|
-
}
|
2483
|
-
result = (TagLib::MPEG::Header *)new TagLib::MPEG::Header((TagLib::ByteVector const &)*arg1);
|
2484
|
-
DATA_PTR(self) = result;
|
2485
|
-
SWIG_RubyAddTracking(result, self);
|
2486
|
-
return self;
|
2487
|
-
fail:
|
2488
|
-
return Qnil;
|
2489
|
-
}
|
2490
|
-
|
2491
|
-
|
2492
|
-
SWIGINTERN VALUE
|
2493
|
-
_wrap_new_Header__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2494
|
-
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
2495
|
-
long arg2 ;
|
2477
|
+
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
2478
|
+
TagLib::offset_t arg2 ;
|
2496
2479
|
bool arg3 ;
|
2497
2480
|
void *argp1 = 0 ;
|
2498
2481
|
int res1 = 0 ;
|
2499
|
-
long val2 ;
|
2482
|
+
long long val2 ;
|
2500
2483
|
int ecode2 = 0 ;
|
2501
2484
|
bool val3 ;
|
2502
2485
|
int ecode3 = 0 ;
|
@@ -2505,16 +2488,16 @@ _wrap_new_Header__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2505
2488
|
if ((argc < 3) || (argc > 3)) {
|
2506
2489
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
2507
2490
|
}
|
2508
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
2491
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
2509
2492
|
if (!SWIG_IsOK(res1)) {
|
2510
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
2493
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Header", 1, argv[0] ));
|
2511
2494
|
}
|
2512
|
-
arg1 = reinterpret_cast< TagLib::
|
2513
|
-
ecode2 =
|
2495
|
+
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2496
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
2514
2497
|
if (!SWIG_IsOK(ecode2)) {
|
2515
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
2498
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Header", 2, argv[1] ));
|
2516
2499
|
}
|
2517
|
-
arg2 = static_cast<
|
2500
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
2518
2501
|
ecode3 = SWIG_AsVal_bool(argv[2], &val3);
|
2519
2502
|
if (!SWIG_IsOK(ecode3)) {
|
2520
2503
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","Header", 3, argv[2] ));
|
@@ -2530,28 +2513,28 @@ fail:
|
|
2530
2513
|
|
2531
2514
|
|
2532
2515
|
SWIGINTERN VALUE
|
2533
|
-
|
2534
|
-
TagLib::
|
2535
|
-
|
2516
|
+
_wrap_new_Header__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2517
|
+
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
2518
|
+
TagLib::offset_t arg2 ;
|
2536
2519
|
void *argp1 = 0 ;
|
2537
2520
|
int res1 = 0 ;
|
2538
|
-
long val2 ;
|
2521
|
+
long long val2 ;
|
2539
2522
|
int ecode2 = 0 ;
|
2540
2523
|
TagLib::MPEG::Header *result = 0 ;
|
2541
2524
|
|
2542
2525
|
if ((argc < 2) || (argc > 2)) {
|
2543
2526
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2544
2527
|
}
|
2545
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,
|
2528
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
2546
2529
|
if (!SWIG_IsOK(res1)) {
|
2547
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::
|
2530
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Header", 1, argv[0] ));
|
2548
2531
|
}
|
2549
|
-
arg1 = reinterpret_cast< TagLib::
|
2550
|
-
ecode2 =
|
2532
|
+
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2533
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
2551
2534
|
if (!SWIG_IsOK(ecode2)) {
|
2552
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
2535
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Header", 2, argv[1] ));
|
2553
2536
|
}
|
2554
|
-
arg2 = static_cast<
|
2537
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
2555
2538
|
result = (TagLib::MPEG::Header *)new TagLib::MPEG::Header(arg1,arg2);
|
2556
2539
|
DATA_PTR(self) = result;
|
2557
2540
|
SWIG_RubyAddTracking(result, self);
|
@@ -2577,7 +2560,7 @@ _wrap_Header_allocate(int argc, VALUE *argv, VALUE self)
|
|
2577
2560
|
|
2578
2561
|
|
2579
2562
|
SWIGINTERN VALUE
|
2580
|
-
|
2563
|
+
_wrap_new_Header__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
2581
2564
|
TagLib::MPEG::Header *arg1 = 0 ;
|
2582
2565
|
void *argp1 = 0 ;
|
2583
2566
|
int res1 = 0 ;
|
@@ -2619,40 +2602,32 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
|
|
2619
2602
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__Header, SWIG_POINTER_NO_NULL);
|
2620
2603
|
_v = SWIG_CheckState(res);
|
2621
2604
|
if (_v) {
|
2622
|
-
return
|
2623
|
-
}
|
2624
|
-
}
|
2625
|
-
if (argc == 1) {
|
2626
|
-
int _v = 0;
|
2627
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2628
|
-
_v = SWIG_CheckState(res);
|
2629
|
-
if (_v) {
|
2630
|
-
return _wrap_new_Header__SWIG_0(nargs, args, self);
|
2605
|
+
return _wrap_new_Header__SWIG_2(nargs, args, self);
|
2631
2606
|
}
|
2632
2607
|
}
|
2633
2608
|
if (argc == 2) {
|
2634
2609
|
int _v = 0;
|
2635
2610
|
void *vptr = 0;
|
2636
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr,
|
2611
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
2637
2612
|
_v = SWIG_CheckState(res);
|
2638
2613
|
if (_v) {
|
2639
2614
|
{
|
2640
|
-
int res =
|
2615
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2641
2616
|
_v = SWIG_CheckState(res);
|
2642
2617
|
}
|
2643
2618
|
if (_v) {
|
2644
|
-
return
|
2619
|
+
return _wrap_new_Header__SWIG_1(nargs, args, self);
|
2645
2620
|
}
|
2646
2621
|
}
|
2647
2622
|
}
|
2648
2623
|
if (argc == 3) {
|
2649
2624
|
int _v = 0;
|
2650
2625
|
void *vptr = 0;
|
2651
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr,
|
2626
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
2652
2627
|
_v = SWIG_CheckState(res);
|
2653
2628
|
if (_v) {
|
2654
2629
|
{
|
2655
|
-
int res =
|
2630
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2656
2631
|
_v = SWIG_CheckState(res);
|
2657
2632
|
}
|
2658
2633
|
if (_v) {
|
@@ -2661,7 +2636,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
|
|
2661
2636
|
_v = SWIG_CheckState(res);
|
2662
2637
|
}
|
2663
2638
|
if (_v) {
|
2664
|
-
return
|
2639
|
+
return _wrap_new_Header__SWIG_0(nargs, args, self);
|
2665
2640
|
}
|
2666
2641
|
}
|
2667
2642
|
}
|
@@ -2669,9 +2644,8 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
|
|
2669
2644
|
|
2670
2645
|
fail:
|
2671
2646
|
Ruby_Format_OverloadedError( argc, 3, "Header.new",
|
2672
|
-
" Header.new(TagLib::
|
2673
|
-
" Header.new(TagLib::
|
2674
|
-
" Header.new(TagLib::MPEG::File *file, long offset)\n"
|
2647
|
+
" Header.new(TagLib::File *file, TagLib::offset_t offset, bool checkLength)\n"
|
2648
|
+
" Header.new(TagLib::File *file, TagLib::offset_t offset)\n"
|
2675
2649
|
" Header.new(TagLib::MPEG::Header const &h)\n");
|
2676
2650
|
|
2677
2651
|
return Qnil;
|
@@ -2877,6 +2851,54 @@ fail:
|
|
2877
2851
|
}
|
2878
2852
|
|
2879
2853
|
|
2854
|
+
SWIGINTERN VALUE
|
2855
|
+
_wrap_Header_channel_configuration(int argc, VALUE *argv, VALUE self) {
|
2856
|
+
TagLib::MPEG::Header *arg1 = (TagLib::MPEG::Header *) 0 ;
|
2857
|
+
void *argp1 = 0 ;
|
2858
|
+
int res1 = 0 ;
|
2859
|
+
TagLib::MPEG::Header::ChannelConfiguration result;
|
2860
|
+
VALUE vresult = Qnil;
|
2861
|
+
|
2862
|
+
if ((argc < 0) || (argc > 0)) {
|
2863
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2864
|
+
}
|
2865
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__Header, 0 | 0 );
|
2866
|
+
if (!SWIG_IsOK(res1)) {
|
2867
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::Header const *","channelConfiguration", 1, self ));
|
2868
|
+
}
|
2869
|
+
arg1 = reinterpret_cast< TagLib::MPEG::Header * >(argp1);
|
2870
|
+
result = (TagLib::MPEG::Header::ChannelConfiguration)((TagLib::MPEG::Header const *)arg1)->channelConfiguration();
|
2871
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
2872
|
+
return vresult;
|
2873
|
+
fail:
|
2874
|
+
return Qnil;
|
2875
|
+
}
|
2876
|
+
|
2877
|
+
|
2878
|
+
SWIGINTERN VALUE
|
2879
|
+
_wrap_Header_is_adts(int argc, VALUE *argv, VALUE self) {
|
2880
|
+
TagLib::MPEG::Header *arg1 = (TagLib::MPEG::Header *) 0 ;
|
2881
|
+
void *argp1 = 0 ;
|
2882
|
+
int res1 = 0 ;
|
2883
|
+
bool result;
|
2884
|
+
VALUE vresult = Qnil;
|
2885
|
+
|
2886
|
+
if ((argc < 0) || (argc > 0)) {
|
2887
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2888
|
+
}
|
2889
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__Header, 0 | 0 );
|
2890
|
+
if (!SWIG_IsOK(res1)) {
|
2891
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::Header const *","isADTS", 1, self ));
|
2892
|
+
}
|
2893
|
+
arg1 = reinterpret_cast< TagLib::MPEG::Header * >(argp1);
|
2894
|
+
result = (bool)((TagLib::MPEG::Header const *)arg1)->isADTS();
|
2895
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
2896
|
+
return vresult;
|
2897
|
+
fail:
|
2898
|
+
return Qnil;
|
2899
|
+
}
|
2900
|
+
|
2901
|
+
|
2880
2902
|
SWIGINTERN VALUE
|
2881
2903
|
_wrap_Header_copyrightedq___(int argc, VALUE *argv, VALUE self) {
|
2882
2904
|
TagLib::MPEG::Header *arg1 = (TagLib::MPEG::Header *) 0 ;
|
@@ -3097,30 +3119,6 @@ free_TagLib_MPEG_Properties(void *self) {
|
|
3097
3119
|
delete arg1;
|
3098
3120
|
}
|
3099
3121
|
|
3100
|
-
SWIGINTERN VALUE
|
3101
|
-
_wrap_Properties_length_in_seconds(int argc, VALUE *argv, VALUE self) {
|
3102
|
-
TagLib::MPEG::Properties *arg1 = (TagLib::MPEG::Properties *) 0 ;
|
3103
|
-
void *argp1 = 0 ;
|
3104
|
-
int res1 = 0 ;
|
3105
|
-
int result;
|
3106
|
-
VALUE vresult = Qnil;
|
3107
|
-
|
3108
|
-
if ((argc < 0) || (argc > 0)) {
|
3109
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3110
|
-
}
|
3111
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__Properties, 0 | 0 );
|
3112
|
-
if (!SWIG_IsOK(res1)) {
|
3113
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::Properties const *","lengthInSeconds", 1, self ));
|
3114
|
-
}
|
3115
|
-
arg1 = reinterpret_cast< TagLib::MPEG::Properties * >(argp1);
|
3116
|
-
result = (int)((TagLib::MPEG::Properties const *)arg1)->lengthInSeconds();
|
3117
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
3118
|
-
return vresult;
|
3119
|
-
fail:
|
3120
|
-
return Qnil;
|
3121
|
-
}
|
3122
|
-
|
3123
|
-
|
3124
3122
|
SWIGINTERN VALUE
|
3125
3123
|
_wrap_Properties_length_in_milliseconds(int argc, VALUE *argv, VALUE self) {
|
3126
3124
|
TagLib::MPEG::Properties *arg1 = (TagLib::MPEG::Properties *) 0 ;
|
@@ -3337,6 +3335,54 @@ fail:
|
|
3337
3335
|
}
|
3338
3336
|
|
3339
3337
|
|
3338
|
+
SWIGINTERN VALUE
|
3339
|
+
_wrap_Properties_channel_configuration(int argc, VALUE *argv, VALUE self) {
|
3340
|
+
TagLib::MPEG::Properties *arg1 = (TagLib::MPEG::Properties *) 0 ;
|
3341
|
+
void *argp1 = 0 ;
|
3342
|
+
int res1 = 0 ;
|
3343
|
+
TagLib::MPEG::Header::ChannelConfiguration result;
|
3344
|
+
VALUE vresult = Qnil;
|
3345
|
+
|
3346
|
+
if ((argc < 0) || (argc > 0)) {
|
3347
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3348
|
+
}
|
3349
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__Properties, 0 | 0 );
|
3350
|
+
if (!SWIG_IsOK(res1)) {
|
3351
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::Properties const *","channelConfiguration", 1, self ));
|
3352
|
+
}
|
3353
|
+
arg1 = reinterpret_cast< TagLib::MPEG::Properties * >(argp1);
|
3354
|
+
result = (TagLib::MPEG::Header::ChannelConfiguration)((TagLib::MPEG::Properties const *)arg1)->channelConfiguration();
|
3355
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
3356
|
+
return vresult;
|
3357
|
+
fail:
|
3358
|
+
return Qnil;
|
3359
|
+
}
|
3360
|
+
|
3361
|
+
|
3362
|
+
SWIGINTERN VALUE
|
3363
|
+
_wrap_Properties_is_adts(int argc, VALUE *argv, VALUE self) {
|
3364
|
+
TagLib::MPEG::Properties *arg1 = (TagLib::MPEG::Properties *) 0 ;
|
3365
|
+
void *argp1 = 0 ;
|
3366
|
+
int res1 = 0 ;
|
3367
|
+
bool result;
|
3368
|
+
VALUE vresult = Qnil;
|
3369
|
+
|
3370
|
+
if ((argc < 0) || (argc > 0)) {
|
3371
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3372
|
+
}
|
3373
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__Properties, 0 | 0 );
|
3374
|
+
if (!SWIG_IsOK(res1)) {
|
3375
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::Properties const *","isADTS", 1, self ));
|
3376
|
+
}
|
3377
|
+
arg1 = reinterpret_cast< TagLib::MPEG::Properties * >(argp1);
|
3378
|
+
result = (bool)((TagLib::MPEG::Properties const *)arg1)->isADTS();
|
3379
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3380
|
+
return vresult;
|
3381
|
+
fail:
|
3382
|
+
return Qnil;
|
3383
|
+
}
|
3384
|
+
|
3385
|
+
|
3340
3386
|
SWIGINTERN VALUE
|
3341
3387
|
_wrap_Properties_copyrightedq___(int argc, VALUE *argv, VALUE self) {
|
3342
3388
|
TagLib::MPEG::Properties *arg1 = (TagLib::MPEG::Properties *) 0 ;
|
@@ -3389,6 +3435,53 @@ static swig_class SwigClassFile;
|
|
3389
3435
|
|
3390
3436
|
SWIGINTERN VALUE
|
3391
3437
|
_wrap_new_File__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3438
|
+
TagLib::FileName arg1 ;
|
3439
|
+
bool arg2 ;
|
3440
|
+
TagLib::MPEG::Properties::ReadStyle arg3 ;
|
3441
|
+
TagLib::ID3v2::FrameFactory *arg4 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3442
|
+
bool val2 ;
|
3443
|
+
int ecode2 = 0 ;
|
3444
|
+
int val3 ;
|
3445
|
+
int ecode3 = 0 ;
|
3446
|
+
void *argp4 = 0 ;
|
3447
|
+
int res4 = 0 ;
|
3448
|
+
TagLib::MPEG::File *result = 0 ;
|
3449
|
+
|
3450
|
+
if ((argc < 4) || (argc > 4)) {
|
3451
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3452
|
+
}
|
3453
|
+
{
|
3454
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
3455
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
3456
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
3457
|
+
}
|
3458
|
+
}
|
3459
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
3460
|
+
if (!SWIG_IsOK(ecode2)) {
|
3461
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
3462
|
+
}
|
3463
|
+
arg2 = static_cast< bool >(val2);
|
3464
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3465
|
+
if (!SWIG_IsOK(ecode3)) {
|
3466
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::MPEG::Properties::ReadStyle","File", 3, argv[2] ));
|
3467
|
+
}
|
3468
|
+
arg3 = static_cast< TagLib::MPEG::Properties::ReadStyle >(val3);
|
3469
|
+
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3470
|
+
if (!SWIG_IsOK(res4)) {
|
3471
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","File", 4, argv[3] ));
|
3472
|
+
}
|
3473
|
+
arg4 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp4);
|
3474
|
+
result = (TagLib::MPEG::File *)new TagLib::MPEG::File(arg1,arg2,arg3,arg4);
|
3475
|
+
DATA_PTR(self) = result;
|
3476
|
+
SWIG_RubyAddTracking(result, self);
|
3477
|
+
return self;
|
3478
|
+
fail:
|
3479
|
+
return Qnil;
|
3480
|
+
}
|
3481
|
+
|
3482
|
+
|
3483
|
+
SWIGINTERN VALUE
|
3484
|
+
_wrap_new_File__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3392
3485
|
TagLib::FileName arg1 ;
|
3393
3486
|
bool arg2 ;
|
3394
3487
|
TagLib::MPEG::Properties::ReadStyle arg3 ;
|
@@ -3427,7 +3520,7 @@ fail:
|
|
3427
3520
|
|
3428
3521
|
|
3429
3522
|
SWIGINTERN VALUE
|
3430
|
-
|
3523
|
+
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
3431
3524
|
TagLib::FileName arg1 ;
|
3432
3525
|
bool arg2 ;
|
3433
3526
|
bool val2 ;
|
@@ -3458,7 +3551,7 @@ fail:
|
|
3458
3551
|
|
3459
3552
|
|
3460
3553
|
SWIGINTERN VALUE
|
3461
|
-
|
3554
|
+
_wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
3462
3555
|
TagLib::FileName arg1 ;
|
3463
3556
|
TagLib::MPEG::File *result = 0 ;
|
3464
3557
|
|
@@ -3481,7 +3574,7 @@ fail:
|
|
3481
3574
|
|
3482
3575
|
|
3483
3576
|
SWIGINTERN VALUE
|
3484
|
-
|
3577
|
+
_wrap_new_File__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
3485
3578
|
TagLib::FileName arg1 ;
|
3486
3579
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3487
3580
|
bool arg3 ;
|
@@ -3528,7 +3621,7 @@ fail:
|
|
3528
3621
|
|
3529
3622
|
|
3530
3623
|
SWIGINTERN VALUE
|
3531
|
-
|
3624
|
+
_wrap_new_File__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
3532
3625
|
TagLib::FileName arg1 ;
|
3533
3626
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3534
3627
|
bool arg3 ;
|
@@ -3582,7 +3675,7 @@ _wrap_File_allocate(int argc, VALUE *argv, VALUE self)
|
|
3582
3675
|
|
3583
3676
|
|
3584
3677
|
SWIGINTERN VALUE
|
3585
|
-
|
3678
|
+
_wrap_new_File__SWIG_6(int argc, VALUE *argv, VALUE self) {
|
3586
3679
|
TagLib::FileName arg1 ;
|
3587
3680
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3588
3681
|
void *argp2 = 0 ;
|
@@ -3627,7 +3720,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3627
3720
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
3628
3721
|
_v = SWIG_CheckState(res);
|
3629
3722
|
if (_v) {
|
3630
|
-
return
|
3723
|
+
return _wrap_new_File__SWIG_3(nargs, args, self);
|
3631
3724
|
}
|
3632
3725
|
}
|
3633
3726
|
if (argc == 2) {
|
@@ -3639,7 +3732,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3639
3732
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
|
3640
3733
|
_v = SWIG_CheckState(res);
|
3641
3734
|
if (_v) {
|
3642
|
-
return
|
3735
|
+
return _wrap_new_File__SWIG_6(nargs, args, self);
|
3643
3736
|
}
|
3644
3737
|
}
|
3645
3738
|
}
|
@@ -3653,7 +3746,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3653
3746
|
_v = SWIG_CheckState(res);
|
3654
3747
|
}
|
3655
3748
|
if (_v) {
|
3656
|
-
return
|
3749
|
+
return _wrap_new_File__SWIG_2(nargs, args, self);
|
3657
3750
|
}
|
3658
3751
|
}
|
3659
3752
|
}
|
@@ -3671,7 +3764,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3671
3764
|
_v = SWIG_CheckState(res);
|
3672
3765
|
}
|
3673
3766
|
if (_v) {
|
3674
|
-
return
|
3767
|
+
return _wrap_new_File__SWIG_5(nargs, args, self);
|
3675
3768
|
}
|
3676
3769
|
}
|
3677
3770
|
}
|
@@ -3691,7 +3784,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3691
3784
|
_v = SWIG_CheckState(res);
|
3692
3785
|
}
|
3693
3786
|
if (_v) {
|
3694
|
-
return
|
3787
|
+
return _wrap_new_File__SWIG_1(nargs, args, self);
|
3695
3788
|
}
|
3696
3789
|
}
|
3697
3790
|
}
|
@@ -3715,7 +3808,32 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3715
3808
|
_v = SWIG_CheckState(res);
|
3716
3809
|
}
|
3717
3810
|
if (_v) {
|
3718
|
-
return
|
3811
|
+
return _wrap_new_File__SWIG_4(nargs, args, self);
|
3812
|
+
}
|
3813
|
+
}
|
3814
|
+
}
|
3815
|
+
}
|
3816
|
+
}
|
3817
|
+
if (argc == 4) {
|
3818
|
+
int _v = 0;
|
3819
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
3820
|
+
_v = SWIG_CheckState(res);
|
3821
|
+
if (_v) {
|
3822
|
+
{
|
3823
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
3824
|
+
_v = SWIG_CheckState(res);
|
3825
|
+
}
|
3826
|
+
if (_v) {
|
3827
|
+
{
|
3828
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
3829
|
+
_v = SWIG_CheckState(res);
|
3830
|
+
}
|
3831
|
+
if (_v) {
|
3832
|
+
void *vptr = 0;
|
3833
|
+
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
|
3834
|
+
_v = SWIG_CheckState(res);
|
3835
|
+
if (_v) {
|
3836
|
+
return _wrap_new_File__SWIG_0(nargs, args, self);
|
3719
3837
|
}
|
3720
3838
|
}
|
3721
3839
|
}
|
@@ -3724,10 +3842,11 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3724
3842
|
|
3725
3843
|
fail:
|
3726
3844
|
Ruby_Format_OverloadedError( argc, 4, "File.new",
|
3727
|
-
" File.new(TagLib::FileName file, bool readProperties, TagLib::MPEG::Properties::ReadStyle
|
3845
|
+
" File.new(TagLib::FileName file, bool readProperties, TagLib::MPEG::Properties::ReadStyle readStyle, TagLib::ID3v2::FrameFactory *frameFactory)\n"
|
3846
|
+
" File.new(TagLib::FileName file, bool readProperties, TagLib::MPEG::Properties::ReadStyle readStyle)\n"
|
3728
3847
|
" File.new(TagLib::FileName file, bool readProperties)\n"
|
3729
3848
|
" File.new(TagLib::FileName file)\n"
|
3730
|
-
" File.new(TagLib::FileName file, TagLib::ID3v2::FrameFactory *frameFactory, bool readProperties, TagLib::MPEG::Properties::ReadStyle
|
3849
|
+
" File.new(TagLib::FileName file, TagLib::ID3v2::FrameFactory *frameFactory, bool readProperties, TagLib::MPEG::Properties::ReadStyle readStyle)\n"
|
3731
3850
|
" File.new(TagLib::FileName file, TagLib::ID3v2::FrameFactory *frameFactory, bool readProperties)\n"
|
3732
3851
|
" File.new(TagLib::FileName file, TagLib::ID3v2::FrameFactory *frameFactory)\n");
|
3733
3852
|
|
@@ -3811,15 +3930,24 @@ SWIGINTERN VALUE
|
|
3811
3930
|
_wrap_File_save__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3812
3931
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
3813
3932
|
int arg2 ;
|
3933
|
+
TagLib::File::StripTags arg3 ;
|
3934
|
+
TagLib::ID3v2::Version arg4 ;
|
3935
|
+
TagLib::File::DuplicateTags arg5 ;
|
3814
3936
|
void *argp1 = 0 ;
|
3815
3937
|
int res1 = 0 ;
|
3816
3938
|
int val2 ;
|
3817
3939
|
int ecode2 = 0 ;
|
3940
|
+
int val3 ;
|
3941
|
+
int ecode3 = 0 ;
|
3942
|
+
int val4 ;
|
3943
|
+
int ecode4 = 0 ;
|
3944
|
+
int val5 ;
|
3945
|
+
int ecode5 = 0 ;
|
3818
3946
|
bool result;
|
3819
3947
|
VALUE vresult = Qnil;
|
3820
3948
|
|
3821
|
-
if ((argc <
|
3822
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
3949
|
+
if ((argc < 4) || (argc > 4)) {
|
3950
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3823
3951
|
}
|
3824
3952
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
3825
3953
|
if (!SWIG_IsOK(res1)) {
|
@@ -3831,7 +3959,22 @@ _wrap_File_save__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3831
3959
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","save", 2, argv[0] ));
|
3832
3960
|
}
|
3833
3961
|
arg2 = static_cast< int >(val2);
|
3834
|
-
|
3962
|
+
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
3963
|
+
if (!SWIG_IsOK(ecode3)) {
|
3964
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::File::StripTags","save", 3, argv[1] ));
|
3965
|
+
}
|
3966
|
+
arg3 = static_cast< TagLib::File::StripTags >(val3);
|
3967
|
+
ecode4 = SWIG_AsVal_int(argv[2], &val4);
|
3968
|
+
if (!SWIG_IsOK(ecode4)) {
|
3969
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "TagLib::ID3v2::Version","save", 4, argv[2] ));
|
3970
|
+
}
|
3971
|
+
arg4 = static_cast< TagLib::ID3v2::Version >(val4);
|
3972
|
+
ecode5 = SWIG_AsVal_int(argv[3], &val5);
|
3973
|
+
if (!SWIG_IsOK(ecode5)) {
|
3974
|
+
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "TagLib::File::DuplicateTags","save", 5, argv[3] ));
|
3975
|
+
}
|
3976
|
+
arg5 = static_cast< TagLib::File::DuplicateTags >(val5);
|
3977
|
+
result = (bool)(arg1)->save(arg2,arg3,arg4,arg5);
|
3835
3978
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3836
3979
|
return vresult;
|
3837
3980
|
fail:
|
@@ -3843,18 +3986,21 @@ SWIGINTERN VALUE
|
|
3843
3986
|
_wrap_File_save__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
3844
3987
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
3845
3988
|
int arg2 ;
|
3846
|
-
|
3989
|
+
TagLib::File::StripTags arg3 ;
|
3990
|
+
TagLib::ID3v2::Version arg4 ;
|
3847
3991
|
void *argp1 = 0 ;
|
3848
3992
|
int res1 = 0 ;
|
3849
3993
|
int val2 ;
|
3850
3994
|
int ecode2 = 0 ;
|
3851
|
-
|
3995
|
+
int val3 ;
|
3852
3996
|
int ecode3 = 0 ;
|
3997
|
+
int val4 ;
|
3998
|
+
int ecode4 = 0 ;
|
3853
3999
|
bool result;
|
3854
4000
|
VALUE vresult = Qnil;
|
3855
4001
|
|
3856
|
-
if ((argc <
|
3857
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4002
|
+
if ((argc < 3) || (argc > 3)) {
|
4003
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3858
4004
|
}
|
3859
4005
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
3860
4006
|
if (!SWIG_IsOK(res1)) {
|
@@ -3866,12 +4012,17 @@ _wrap_File_save__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
3866
4012
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","save", 2, argv[0] ));
|
3867
4013
|
}
|
3868
4014
|
arg2 = static_cast< int >(val2);
|
3869
|
-
ecode3 =
|
4015
|
+
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
3870
4016
|
if (!SWIG_IsOK(ecode3)) {
|
3871
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
4017
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::File::StripTags","save", 3, argv[1] ));
|
3872
4018
|
}
|
3873
|
-
arg3 = static_cast<
|
3874
|
-
|
4019
|
+
arg3 = static_cast< TagLib::File::StripTags >(val3);
|
4020
|
+
ecode4 = SWIG_AsVal_int(argv[2], &val4);
|
4021
|
+
if (!SWIG_IsOK(ecode4)) {
|
4022
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "TagLib::ID3v2::Version","save", 4, argv[2] ));
|
4023
|
+
}
|
4024
|
+
arg4 = static_cast< TagLib::ID3v2::Version >(val4);
|
4025
|
+
result = (bool)(arg1)->save(arg2,arg3,arg4);
|
3875
4026
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3876
4027
|
return vresult;
|
3877
4028
|
fail:
|
@@ -3883,21 +4034,18 @@ SWIGINTERN VALUE
|
|
3883
4034
|
_wrap_File_save__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
3884
4035
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
3885
4036
|
int arg2 ;
|
3886
|
-
|
3887
|
-
int arg4 ;
|
4037
|
+
TagLib::File::StripTags arg3 ;
|
3888
4038
|
void *argp1 = 0 ;
|
3889
4039
|
int res1 = 0 ;
|
3890
4040
|
int val2 ;
|
3891
4041
|
int ecode2 = 0 ;
|
3892
|
-
|
4042
|
+
int val3 ;
|
3893
4043
|
int ecode3 = 0 ;
|
3894
|
-
int val4 ;
|
3895
|
-
int ecode4 = 0 ;
|
3896
4044
|
bool result;
|
3897
4045
|
VALUE vresult = Qnil;
|
3898
4046
|
|
3899
|
-
if ((argc <
|
3900
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4047
|
+
if ((argc < 2) || (argc > 2)) {
|
4048
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3901
4049
|
}
|
3902
4050
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
3903
4051
|
if (!SWIG_IsOK(res1)) {
|
@@ -3909,17 +4057,12 @@ _wrap_File_save__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
|
3909
4057
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","save", 2, argv[0] ));
|
3910
4058
|
}
|
3911
4059
|
arg2 = static_cast< int >(val2);
|
3912
|
-
ecode3 =
|
4060
|
+
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
3913
4061
|
if (!SWIG_IsOK(ecode3)) {
|
3914
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
4062
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::File::StripTags","save", 3, argv[1] ));
|
3915
4063
|
}
|
3916
|
-
arg3 = static_cast<
|
3917
|
-
|
3918
|
-
if (!SWIG_IsOK(ecode4)) {
|
3919
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","save", 4, argv[2] ));
|
3920
|
-
}
|
3921
|
-
arg4 = static_cast< int >(val4);
|
3922
|
-
result = (bool)(arg1)->save(arg2,arg3,arg4);
|
4064
|
+
arg3 = static_cast< TagLib::File::StripTags >(val3);
|
4065
|
+
result = (bool)(arg1)->save(arg2,arg3);
|
3923
4066
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3924
4067
|
return vresult;
|
3925
4068
|
fail:
|
@@ -3931,24 +4074,15 @@ SWIGINTERN VALUE
|
|
3931
4074
|
_wrap_File_save__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
3932
4075
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
3933
4076
|
int arg2 ;
|
3934
|
-
bool arg3 ;
|
3935
|
-
int arg4 ;
|
3936
|
-
bool arg5 ;
|
3937
4077
|
void *argp1 = 0 ;
|
3938
4078
|
int res1 = 0 ;
|
3939
4079
|
int val2 ;
|
3940
4080
|
int ecode2 = 0 ;
|
3941
|
-
bool val3 ;
|
3942
|
-
int ecode3 = 0 ;
|
3943
|
-
int val4 ;
|
3944
|
-
int ecode4 = 0 ;
|
3945
|
-
bool val5 ;
|
3946
|
-
int ecode5 = 0 ;
|
3947
4081
|
bool result;
|
3948
4082
|
VALUE vresult = Qnil;
|
3949
4083
|
|
3950
|
-
if ((argc <
|
3951
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4084
|
+
if ((argc < 1) || (argc > 1)) {
|
4085
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3952
4086
|
}
|
3953
4087
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
3954
4088
|
if (!SWIG_IsOK(res1)) {
|
@@ -3960,22 +4094,7 @@ _wrap_File_save__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
|
3960
4094
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","save", 2, argv[0] ));
|
3961
4095
|
}
|
3962
4096
|
arg2 = static_cast< int >(val2);
|
3963
|
-
|
3964
|
-
if (!SWIG_IsOK(ecode3)) {
|
3965
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","save", 3, argv[1] ));
|
3966
|
-
}
|
3967
|
-
arg3 = static_cast< bool >(val3);
|
3968
|
-
ecode4 = SWIG_AsVal_int(argv[2], &val4);
|
3969
|
-
if (!SWIG_IsOK(ecode4)) {
|
3970
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","save", 4, argv[2] ));
|
3971
|
-
}
|
3972
|
-
arg4 = static_cast< int >(val4);
|
3973
|
-
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
|
3974
|
-
if (!SWIG_IsOK(ecode5)) {
|
3975
|
-
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","save", 5, argv[3] ));
|
3976
|
-
}
|
3977
|
-
arg5 = static_cast< bool >(val5);
|
3978
|
-
result = (bool)(arg1)->save(arg2,arg3,arg4,arg5);
|
4097
|
+
result = (bool)(arg1)->save(arg2);
|
3979
4098
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3980
4099
|
return vresult;
|
3981
4100
|
fail:
|
@@ -4014,7 +4133,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4014
4133
|
_v = SWIG_CheckState(res);
|
4015
4134
|
}
|
4016
4135
|
if (_v) {
|
4017
|
-
return
|
4136
|
+
return _wrap_File_save__SWIG_4(nargs, args, self);
|
4018
4137
|
}
|
4019
4138
|
}
|
4020
4139
|
}
|
@@ -4030,11 +4149,11 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4030
4149
|
}
|
4031
4150
|
if (_v) {
|
4032
4151
|
{
|
4033
|
-
int res =
|
4152
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
4034
4153
|
_v = SWIG_CheckState(res);
|
4035
4154
|
}
|
4036
4155
|
if (_v) {
|
4037
|
-
return
|
4156
|
+
return _wrap_File_save__SWIG_3(nargs, args, self);
|
4038
4157
|
}
|
4039
4158
|
}
|
4040
4159
|
}
|
@@ -4051,7 +4170,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4051
4170
|
}
|
4052
4171
|
if (_v) {
|
4053
4172
|
{
|
4054
|
-
int res =
|
4173
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
4055
4174
|
_v = SWIG_CheckState(res);
|
4056
4175
|
}
|
4057
4176
|
if (_v) {
|
@@ -4060,7 +4179,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4060
4179
|
_v = SWIG_CheckState(res);
|
4061
4180
|
}
|
4062
4181
|
if (_v) {
|
4063
|
-
return
|
4182
|
+
return _wrap_File_save__SWIG_2(nargs, args, self);
|
4064
4183
|
}
|
4065
4184
|
}
|
4066
4185
|
}
|
@@ -4078,7 +4197,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4078
4197
|
}
|
4079
4198
|
if (_v) {
|
4080
4199
|
{
|
4081
|
-
int res =
|
4200
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
4082
4201
|
_v = SWIG_CheckState(res);
|
4083
4202
|
}
|
4084
4203
|
if (_v) {
|
@@ -4088,11 +4207,11 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4088
4207
|
}
|
4089
4208
|
if (_v) {
|
4090
4209
|
{
|
4091
|
-
int res =
|
4210
|
+
int res = SWIG_AsVal_int(argv[4], NULL);
|
4092
4211
|
_v = SWIG_CheckState(res);
|
4093
4212
|
}
|
4094
4213
|
if (_v) {
|
4095
|
-
return
|
4214
|
+
return _wrap_File_save__SWIG_1(nargs, args, self);
|
4096
4215
|
}
|
4097
4216
|
}
|
4098
4217
|
}
|
@@ -4103,10 +4222,10 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
|
|
4103
4222
|
fail:
|
4104
4223
|
Ruby_Format_OverloadedError( argc, 6, "File.save",
|
4105
4224
|
" bool File.save()\n"
|
4106
|
-
" bool File.save(int tags)\n"
|
4107
|
-
" bool File.save(int tags,
|
4108
|
-
" bool File.save(int tags,
|
4109
|
-
" bool File.save(int tags
|
4225
|
+
" bool File.save(int tags, TagLib::File::StripTags strip, TagLib::ID3v2::Version version, TagLib::File::DuplicateTags duplicate)\n"
|
4226
|
+
" bool File.save(int tags, TagLib::File::StripTags strip, TagLib::ID3v2::Version version)\n"
|
4227
|
+
" bool File.save(int tags, TagLib::File::StripTags strip)\n"
|
4228
|
+
" bool File.save(int tags)\n");
|
4110
4229
|
|
4111
4230
|
return Qnil;
|
4112
4231
|
}
|
@@ -4419,15 +4538,18 @@ SWIGINTERN VALUE
|
|
4419
4538
|
_wrap_File_strip__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
4420
4539
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4421
4540
|
int arg2 ;
|
4541
|
+
bool arg3 ;
|
4422
4542
|
void *argp1 = 0 ;
|
4423
4543
|
int res1 = 0 ;
|
4424
4544
|
int val2 ;
|
4425
4545
|
int ecode2 = 0 ;
|
4546
|
+
bool val3 ;
|
4547
|
+
int ecode3 = 0 ;
|
4426
4548
|
bool result;
|
4427
4549
|
VALUE vresult = Qnil;
|
4428
4550
|
|
4429
|
-
if ((argc <
|
4430
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4551
|
+
if ((argc < 2) || (argc > 2)) {
|
4552
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4431
4553
|
}
|
4432
4554
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
4433
4555
|
if (!SWIG_IsOK(res1)) {
|
@@ -4439,7 +4561,12 @@ _wrap_File_strip__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
4439
4561
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","strip", 2, argv[0] ));
|
4440
4562
|
}
|
4441
4563
|
arg2 = static_cast< int >(val2);
|
4442
|
-
|
4564
|
+
ecode3 = SWIG_AsVal_bool(argv[1], &val3);
|
4565
|
+
if (!SWIG_IsOK(ecode3)) {
|
4566
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","strip", 3, argv[1] ));
|
4567
|
+
}
|
4568
|
+
arg3 = static_cast< bool >(val3);
|
4569
|
+
result = (bool)(arg1)->strip(arg2,arg3);
|
4443
4570
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4444
4571
|
return vresult;
|
4445
4572
|
fail:
|
@@ -4450,20 +4577,28 @@ fail:
|
|
4450
4577
|
SWIGINTERN VALUE
|
4451
4578
|
_wrap_File_strip__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
4452
4579
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4580
|
+
int arg2 ;
|
4453
4581
|
void *argp1 = 0 ;
|
4454
4582
|
int res1 = 0 ;
|
4583
|
+
int val2 ;
|
4584
|
+
int ecode2 = 0 ;
|
4455
4585
|
bool result;
|
4456
4586
|
VALUE vresult = Qnil;
|
4457
4587
|
|
4458
|
-
if ((argc <
|
4459
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4588
|
+
if ((argc < 1) || (argc > 1)) {
|
4589
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4460
4590
|
}
|
4461
4591
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
4462
4592
|
if (!SWIG_IsOK(res1)) {
|
4463
4593
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","strip", 1, self ));
|
4464
4594
|
}
|
4465
4595
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4466
|
-
|
4596
|
+
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
4597
|
+
if (!SWIG_IsOK(ecode2)) {
|
4598
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","strip", 2, argv[0] ));
|
4599
|
+
}
|
4600
|
+
arg2 = static_cast< int >(val2);
|
4601
|
+
result = (bool)(arg1)->strip(arg2);
|
4467
4602
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4468
4603
|
return vresult;
|
4469
4604
|
fail:
|
@@ -4474,36 +4609,20 @@ fail:
|
|
4474
4609
|
SWIGINTERN VALUE
|
4475
4610
|
_wrap_File_strip__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
4476
4611
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4477
|
-
int arg2 ;
|
4478
|
-
bool arg3 ;
|
4479
4612
|
void *argp1 = 0 ;
|
4480
4613
|
int res1 = 0 ;
|
4481
|
-
int val2 ;
|
4482
|
-
int ecode2 = 0 ;
|
4483
|
-
bool val3 ;
|
4484
|
-
int ecode3 = 0 ;
|
4485
4614
|
bool result;
|
4486
4615
|
VALUE vresult = Qnil;
|
4487
4616
|
|
4488
|
-
if ((argc <
|
4489
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4617
|
+
if ((argc < 0) || (argc > 0)) {
|
4618
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4490
4619
|
}
|
4491
4620
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
4492
4621
|
if (!SWIG_IsOK(res1)) {
|
4493
4622
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","strip", 1, self ));
|
4494
4623
|
}
|
4495
4624
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4496
|
-
|
4497
|
-
if (!SWIG_IsOK(ecode2)) {
|
4498
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","strip", 2, argv[0] ));
|
4499
|
-
}
|
4500
|
-
arg2 = static_cast< int >(val2);
|
4501
|
-
ecode3 = SWIG_AsVal_bool(argv[1], &val3);
|
4502
|
-
if (!SWIG_IsOK(ecode3)) {
|
4503
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","strip", 3, argv[1] ));
|
4504
|
-
}
|
4505
|
-
arg3 = static_cast< bool >(val3);
|
4506
|
-
result = (bool)(arg1)->strip(arg2,arg3);
|
4625
|
+
result = (bool)(arg1)->strip();
|
4507
4626
|
vresult = SWIG_From_bool(static_cast< bool >(result));
|
4508
4627
|
return vresult;
|
4509
4628
|
fail:
|
@@ -4528,7 +4647,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
4528
4647
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
|
4529
4648
|
_v = SWIG_CheckState(res);
|
4530
4649
|
if (_v) {
|
4531
|
-
return
|
4650
|
+
return _wrap_File_strip__SWIG_2(nargs, args, self);
|
4532
4651
|
}
|
4533
4652
|
}
|
4534
4653
|
if (argc == 2) {
|
@@ -4542,7 +4661,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
4542
4661
|
_v = SWIG_CheckState(res);
|
4543
4662
|
}
|
4544
4663
|
if (_v) {
|
4545
|
-
return
|
4664
|
+
return _wrap_File_strip__SWIG_1(nargs, args, self);
|
4546
4665
|
}
|
4547
4666
|
}
|
4548
4667
|
}
|
@@ -4562,7 +4681,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
4562
4681
|
_v = SWIG_CheckState(res);
|
4563
4682
|
}
|
4564
4683
|
if (_v) {
|
4565
|
-
return
|
4684
|
+
return _wrap_File_strip__SWIG_0(nargs, args, self);
|
4566
4685
|
}
|
4567
4686
|
}
|
4568
4687
|
}
|
@@ -4570,49 +4689,20 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
4570
4689
|
|
4571
4690
|
fail:
|
4572
4691
|
Ruby_Format_OverloadedError( argc, 4, "File.strip",
|
4692
|
+
" bool File.strip(int tags, bool freeMemory)\n"
|
4573
4693
|
" bool File.strip(int tags)\n"
|
4574
|
-
" bool File.strip()\n"
|
4575
|
-
" bool File.strip(int tags, bool freeMemory)\n");
|
4694
|
+
" bool File.strip()\n");
|
4576
4695
|
|
4577
4696
|
return Qnil;
|
4578
4697
|
}
|
4579
4698
|
|
4580
4699
|
|
4581
|
-
SWIGINTERN VALUE
|
4582
|
-
_wrap_File_set_id3v2_frame_factory(int argc, VALUE *argv, VALUE self) {
|
4583
|
-
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4584
|
-
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
4585
|
-
void *argp1 = 0 ;
|
4586
|
-
int res1 = 0 ;
|
4587
|
-
void *argp2 = 0 ;
|
4588
|
-
int res2 = 0 ;
|
4589
|
-
|
4590
|
-
if ((argc < 1) || (argc > 1)) {
|
4591
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4592
|
-
}
|
4593
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__MPEG__File, 0 | 0 );
|
4594
|
-
if (!SWIG_IsOK(res1)) {
|
4595
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","setID3v2FrameFactory", 1, self ));
|
4596
|
-
}
|
4597
|
-
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4598
|
-
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
4599
|
-
if (!SWIG_IsOK(res2)) {
|
4600
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","setID3v2FrameFactory", 2, argv[0] ));
|
4601
|
-
}
|
4602
|
-
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
4603
|
-
(arg1)->setID3v2FrameFactory((TagLib::ID3v2::FrameFactory const *)arg2);
|
4604
|
-
return Qnil;
|
4605
|
-
fail:
|
4606
|
-
return Qnil;
|
4607
|
-
}
|
4608
|
-
|
4609
|
-
|
4610
4700
|
SWIGINTERN VALUE
|
4611
4701
|
_wrap_File_first_frame_offset(int argc, VALUE *argv, VALUE self) {
|
4612
4702
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4613
4703
|
void *argp1 = 0 ;
|
4614
4704
|
int res1 = 0 ;
|
4615
|
-
|
4705
|
+
TagLib::offset_t result;
|
4616
4706
|
VALUE vresult = Qnil;
|
4617
4707
|
|
4618
4708
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4623,8 +4713,10 @@ _wrap_File_first_frame_offset(int argc, VALUE *argv, VALUE self) {
|
|
4623
4713
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","firstFrameOffset", 1, self ));
|
4624
4714
|
}
|
4625
4715
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4626
|
-
result = (
|
4627
|
-
|
4716
|
+
result = (TagLib::offset_t)(arg1)->firstFrameOffset();
|
4717
|
+
{
|
4718
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4719
|
+
}
|
4628
4720
|
return vresult;
|
4629
4721
|
fail:
|
4630
4722
|
return Qnil;
|
@@ -4634,12 +4726,12 @@ fail:
|
|
4634
4726
|
SWIGINTERN VALUE
|
4635
4727
|
_wrap_File_next_frame_offset(int argc, VALUE *argv, VALUE self) {
|
4636
4728
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4637
|
-
|
4729
|
+
TagLib::offset_t arg2 ;
|
4638
4730
|
void *argp1 = 0 ;
|
4639
4731
|
int res1 = 0 ;
|
4640
|
-
long val2 ;
|
4732
|
+
long long val2 ;
|
4641
4733
|
int ecode2 = 0 ;
|
4642
|
-
|
4734
|
+
TagLib::offset_t result;
|
4643
4735
|
VALUE vresult = Qnil;
|
4644
4736
|
|
4645
4737
|
if ((argc < 1) || (argc > 1)) {
|
@@ -4650,13 +4742,15 @@ _wrap_File_next_frame_offset(int argc, VALUE *argv, VALUE self) {
|
|
4650
4742
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","nextFrameOffset", 1, self ));
|
4651
4743
|
}
|
4652
4744
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4653
|
-
ecode2 =
|
4745
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
4654
4746
|
if (!SWIG_IsOK(ecode2)) {
|
4655
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
4747
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","nextFrameOffset", 2, argv[0] ));
|
4656
4748
|
}
|
4657
|
-
arg2 = static_cast<
|
4658
|
-
result = (
|
4659
|
-
|
4749
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
4750
|
+
result = (TagLib::offset_t)(arg1)->nextFrameOffset(arg2);
|
4751
|
+
{
|
4752
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4753
|
+
}
|
4660
4754
|
return vresult;
|
4661
4755
|
fail:
|
4662
4756
|
return Qnil;
|
@@ -4666,12 +4760,12 @@ fail:
|
|
4666
4760
|
SWIGINTERN VALUE
|
4667
4761
|
_wrap_File_previous_frame_offset(int argc, VALUE *argv, VALUE self) {
|
4668
4762
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4669
|
-
|
4763
|
+
TagLib::offset_t arg2 ;
|
4670
4764
|
void *argp1 = 0 ;
|
4671
4765
|
int res1 = 0 ;
|
4672
|
-
long val2 ;
|
4766
|
+
long long val2 ;
|
4673
4767
|
int ecode2 = 0 ;
|
4674
|
-
|
4768
|
+
TagLib::offset_t result;
|
4675
4769
|
VALUE vresult = Qnil;
|
4676
4770
|
|
4677
4771
|
if ((argc < 1) || (argc > 1)) {
|
@@ -4682,13 +4776,15 @@ _wrap_File_previous_frame_offset(int argc, VALUE *argv, VALUE self) {
|
|
4682
4776
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","previousFrameOffset", 1, self ));
|
4683
4777
|
}
|
4684
4778
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4685
|
-
ecode2 =
|
4779
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2);
|
4686
4780
|
if (!SWIG_IsOK(ecode2)) {
|
4687
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
4781
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","previousFrameOffset", 2, argv[0] ));
|
4688
4782
|
}
|
4689
|
-
arg2 = static_cast<
|
4690
|
-
result = (
|
4691
|
-
|
4783
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
4784
|
+
result = (TagLib::offset_t)(arg1)->previousFrameOffset(arg2);
|
4785
|
+
{
|
4786
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4787
|
+
}
|
4692
4788
|
return vresult;
|
4693
4789
|
fail:
|
4694
4790
|
return Qnil;
|
@@ -4700,7 +4796,7 @@ _wrap_File_last_frame_offset(int argc, VALUE *argv, VALUE self) {
|
|
4700
4796
|
TagLib::MPEG::File *arg1 = (TagLib::MPEG::File *) 0 ;
|
4701
4797
|
void *argp1 = 0 ;
|
4702
4798
|
int res1 = 0 ;
|
4703
|
-
|
4799
|
+
TagLib::offset_t result;
|
4704
4800
|
VALUE vresult = Qnil;
|
4705
4801
|
|
4706
4802
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4711,8 +4807,10 @@ _wrap_File_last_frame_offset(int argc, VALUE *argv, VALUE self) {
|
|
4711
4807
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::MPEG::File *","lastFrameOffset", 1, self ));
|
4712
4808
|
}
|
4713
4809
|
arg1 = reinterpret_cast< TagLib::MPEG::File * >(argp1);
|
4714
|
-
result = (
|
4715
|
-
|
4810
|
+
result = (TagLib::offset_t)(arg1)->lastFrameOffset();
|
4811
|
+
{
|
4812
|
+
vresult = taglib_offset_t_to_ruby_int(result);
|
4813
|
+
}
|
4716
4814
|
return vresult;
|
4717
4815
|
fail:
|
4718
4816
|
return Qnil;
|
@@ -4833,6 +4931,7 @@ static swig_type_info _swigt__p_TagLib__MPEG__Properties = {"_p_TagLib__MPEG__Pr
|
|
4833
4931
|
static swig_type_info _swigt__p_TagLib__MPEG__XingHeader = {"_p_TagLib__MPEG__XingHeader", "TagLib::MPEG::XingHeader *", 0, 0, (void*)0, 0};
|
4834
4932
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
4835
4933
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
4934
|
+
static swig_type_info _swigt__p_long_long = {"_p_long_long", "TagLib::offset_t *|long long *", 0, 0, (void*)0, 0};
|
4836
4935
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
4837
4936
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
4838
4937
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
@@ -4851,6 +4950,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
4851
4950
|
&_swigt__p_TagLib__MPEG__XingHeader,
|
4852
4951
|
&_swigt__p_TagLib__Tag,
|
4853
4952
|
&_swigt__p_char,
|
4953
|
+
&_swigt__p_long_long,
|
4854
4954
|
&_swigt__p_unsigned_char,
|
4855
4955
|
&_swigt__p_unsigned_int,
|
4856
4956
|
&_swigt__p_unsigned_long,
|
@@ -4869,6 +4969,7 @@ static swig_cast_info _swigc__p_TagLib__MPEG__Properties[] = { {&_swigt__p_TagL
|
|
4869
4969
|
static swig_cast_info _swigc__p_TagLib__MPEG__XingHeader[] = { {&_swigt__p_TagLib__MPEG__XingHeader, 0, 0, 0},{0, 0, 0, 0}};
|
4870
4970
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
4871
4971
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
4972
|
+
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
4872
4973
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
4873
4974
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
4874
4975
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -4887,6 +4988,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4887
4988
|
_swigc__p_TagLib__MPEG__XingHeader,
|
4888
4989
|
_swigc__p_TagLib__Tag,
|
4889
4990
|
_swigc__p_char,
|
4991
|
+
_swigc__p_long_long,
|
4890
4992
|
_swigc__p_unsigned_char,
|
4891
4993
|
_swigc__p_unsigned_int,
|
4892
4994
|
_swigc__p_unsigned_long,
|
@@ -5162,10 +5264,11 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5162
5264
|
rb_define_method(SwigClassXingHeader.klass, "total_frames", VALUEFUNC(_wrap_XingHeader_total_frames), -1);
|
5163
5265
|
rb_define_method(SwigClassXingHeader.klass, "total_size", VALUEFUNC(_wrap_XingHeader_total_size), -1);
|
5164
5266
|
rb_define_method(SwigClassXingHeader.klass, "type", VALUEFUNC(_wrap_XingHeader_type), -1);
|
5165
|
-
rb_define_singleton_method(SwigClassXingHeader.klass, "xing_header_offset", VALUEFUNC(_wrap_XingHeader_xing_header_offset), -1);
|
5166
5267
|
SwigClassXingHeader.mark = 0;
|
5167
5268
|
SwigClassXingHeader.destroy = (void (*)(void *)) free_TagLib_MPEG_XingHeader;
|
5168
5269
|
SwigClassXingHeader.trackObjects = 1;
|
5270
|
+
rb_define_const(mMPEG, "V3", SWIG_From_int(static_cast< int >(TagLib::ID3v2::v3)));
|
5271
|
+
rb_define_const(mMPEG, "V4", SWIG_From_int(static_cast< int >(TagLib::ID3v2::v4)));
|
5169
5272
|
|
5170
5273
|
SwigClassHeader.klass = rb_define_class_under(mMPEG, "Header", rb_cObject);
|
5171
5274
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MPEG__Header, (void *) &SwigClassHeader);
|
@@ -5175,6 +5278,7 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5175
5278
|
rb_define_const(SwigClassHeader.klass, "Version1", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::Version1)));
|
5176
5279
|
rb_define_const(SwigClassHeader.klass, "Version2", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::Version2)));
|
5177
5280
|
rb_define_const(SwigClassHeader.klass, "Version2_5", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::Version2_5)));
|
5281
|
+
rb_define_const(SwigClassHeader.klass, "Version4", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::Version4)));
|
5178
5282
|
rb_define_method(SwigClassHeader.klass, "version", VALUEFUNC(_wrap_Header_version), -1);
|
5179
5283
|
rb_define_method(SwigClassHeader.klass, "layer", VALUEFUNC(_wrap_Header_layer), -1);
|
5180
5284
|
rb_define_method(SwigClassHeader.klass, "protection_enabled", VALUEFUNC(_wrap_Header_protection_enabled), -1);
|
@@ -5186,6 +5290,16 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5186
5290
|
rb_define_const(SwigClassHeader.klass, "DualChannel", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::DualChannel)));
|
5187
5291
|
rb_define_const(SwigClassHeader.klass, "SingleChannel", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::SingleChannel)));
|
5188
5292
|
rb_define_method(SwigClassHeader.klass, "channel_mode", VALUEFUNC(_wrap_Header_channel_mode), -1);
|
5293
|
+
rb_define_const(SwigClassHeader.klass, "Custom", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::Custom)));
|
5294
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenter", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenter)));
|
5295
|
+
rb_define_const(SwigClassHeader.klass, "FrontLeftRight", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontLeftRight)));
|
5296
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenterLeftRight", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenterLeftRight)));
|
5297
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenterLeftRightBackCenter", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenterLeftRightBackCenter)));
|
5298
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenterLeftRightBackLeftRight", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenterLeftRightBackLeftRight)));
|
5299
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenterLeftRightBackLeftRightLFE", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenterLeftRightBackLeftRightLFE)));
|
5300
|
+
rb_define_const(SwigClassHeader.klass, "FrontCenterLeftRightSideLeftRightBackLeftRightLFE", SWIG_From_int(static_cast< int >(TagLib::MPEG::Header::FrontCenterLeftRightSideLeftRightBackLeftRightLFE)));
|
5301
|
+
rb_define_method(SwigClassHeader.klass, "channel_configuration", VALUEFUNC(_wrap_Header_channel_configuration), -1);
|
5302
|
+
rb_define_method(SwigClassHeader.klass, "is_adts", VALUEFUNC(_wrap_Header_is_adts), -1);
|
5189
5303
|
rb_define_method(SwigClassHeader.klass, "copyrighted?", VALUEFUNC(_wrap_Header_copyrightedq___), -1);
|
5190
5304
|
rb_define_method(SwigClassHeader.klass, "original?", VALUEFUNC(_wrap_Header_originalq___), -1);
|
5191
5305
|
rb_define_method(SwigClassHeader.klass, "frame_length", VALUEFUNC(_wrap_Header_frame_length), -1);
|
@@ -5198,7 +5312,6 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5198
5312
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__MPEG__Properties, (void *) &SwigClassProperties);
|
5199
5313
|
rb_define_alloc_func(SwigClassProperties.klass, _wrap_Properties_allocate);
|
5200
5314
|
rb_define_method(SwigClassProperties.klass, "initialize", VALUEFUNC(_wrap_new_Properties), -1);
|
5201
|
-
rb_define_method(SwigClassProperties.klass, "length_in_seconds", VALUEFUNC(_wrap_Properties_length_in_seconds), -1);
|
5202
5315
|
rb_define_method(SwigClassProperties.klass, "length_in_milliseconds", VALUEFUNC(_wrap_Properties_length_in_milliseconds), -1);
|
5203
5316
|
rb_define_method(SwigClassProperties.klass, "bitrate", VALUEFUNC(_wrap_Properties_bitrate), -1);
|
5204
5317
|
rb_define_method(SwigClassProperties.klass, "sample_rate", VALUEFUNC(_wrap_Properties_sample_rate), -1);
|
@@ -5208,6 +5321,8 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5208
5321
|
rb_define_method(SwigClassProperties.klass, "layer", VALUEFUNC(_wrap_Properties_layer), -1);
|
5209
5322
|
rb_define_method(SwigClassProperties.klass, "protection_enabled", VALUEFUNC(_wrap_Properties_protection_enabled), -1);
|
5210
5323
|
rb_define_method(SwigClassProperties.klass, "channel_mode", VALUEFUNC(_wrap_Properties_channel_mode), -1);
|
5324
|
+
rb_define_method(SwigClassProperties.klass, "channel_configuration", VALUEFUNC(_wrap_Properties_channel_configuration), -1);
|
5325
|
+
rb_define_method(SwigClassProperties.klass, "is_adts", VALUEFUNC(_wrap_Properties_is_adts), -1);
|
5211
5326
|
rb_define_method(SwigClassProperties.klass, "copyrighted?", VALUEFUNC(_wrap_Properties_copyrightedq___), -1);
|
5212
5327
|
rb_define_method(SwigClassProperties.klass, "original?", VALUEFUNC(_wrap_Properties_originalq___), -1);
|
5213
5328
|
SwigClassProperties.mark = 0;
|
@@ -5230,7 +5345,6 @@ SWIGEXPORT void Init_taglib_mpeg(void) {
|
|
5230
5345
|
rb_define_method(SwigClassFile.klass, "id3v1_tag", VALUEFUNC(_wrap_File_id3v1_tag), -1);
|
5231
5346
|
rb_define_method(SwigClassFile.klass, "apetag", VALUEFUNC(_wrap_File_apetag), -1);
|
5232
5347
|
rb_define_method(SwigClassFile.klass, "strip", VALUEFUNC(_wrap_File_strip), -1);
|
5233
|
-
rb_define_method(SwigClassFile.klass, "set_id3v2_frame_factory", VALUEFUNC(_wrap_File_set_id3v2_frame_factory), -1);
|
5234
5348
|
rb_define_method(SwigClassFile.klass, "first_frame_offset", VALUEFUNC(_wrap_File_first_frame_offset), -1);
|
5235
5349
|
rb_define_method(SwigClassFile.klass, "next_frame_offset", VALUEFUNC(_wrap_File_next_frame_offset), -1);
|
5236
5350
|
rb_define_method(SwigClassFile.klass, "previous_frame_offset", VALUEFUNC(_wrap_File_previous_frame_offset), -1);
|