taglib-ruby 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +4 -0
- data/README.md +6 -1
- data/ext/taglib_base/taglib_base.i +4 -1
- data/ext/taglib_base/taglib_base_wrap.cxx +101 -127
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +18 -3
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +18 -3
- data/lib/taglib/version.rb +1 -1
- data/taglib-ruby.gemspec +2 -2
- metadata +4 -4
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,12 @@ Then do:
|
|
31
31
|
Usage
|
32
32
|
-----
|
33
33
|
|
34
|
-
|
34
|
+
Complete API documentation can be found here:
|
35
|
+
|
36
|
+
http://rubydoc.info/gems/taglib-ruby/frames
|
37
|
+
|
38
|
+
What follows are some examples of how to use taglib-ruby. Here's how to
|
39
|
+
read an ID3v2 tag:
|
35
40
|
|
36
41
|
```ruby
|
37
42
|
require 'taglib'
|
@@ -20,7 +20,10 @@ namespace TagLib {
|
|
20
20
|
enum Type { Latin1 = 0, UTF16 = 1, UTF16BE = 2, UTF8 = 3, UTF16LE = 4 };
|
21
21
|
};
|
22
22
|
|
23
|
-
typedef
|
23
|
+
typedef wchar_t wchar;
|
24
|
+
typedef unsigned char uchar;
|
25
|
+
typedef unsigned int uint;
|
26
|
+
typedef unsigned long ulong;
|
24
27
|
}
|
25
28
|
|
26
29
|
|
@@ -1821,10 +1821,12 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1821
1821
|
#define SWIGTYPE_p_TagLib__String swig_types[5]
|
1822
1822
|
#define SWIGTYPE_p_TagLib__Tag swig_types[6]
|
1823
1823
|
#define SWIGTYPE_p_char swig_types[7]
|
1824
|
-
#define
|
1824
|
+
#define SWIGTYPE_p_unsigned_char swig_types[8]
|
1825
1825
|
#define SWIGTYPE_p_unsigned_int swig_types[9]
|
1826
|
-
|
1827
|
-
|
1826
|
+
#define SWIGTYPE_p_unsigned_long swig_types[10]
|
1827
|
+
#define SWIGTYPE_p_wchar_t swig_types[11]
|
1828
|
+
static swig_type_info *swig_types[13];
|
1829
|
+
static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
|
1828
1830
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1829
1831
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1830
1832
|
|
@@ -2924,11 +2926,11 @@ fail:
|
|
2924
2926
|
SWIGINTERN VALUE
|
2925
2927
|
_wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
|
2926
2928
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
2927
|
-
ulong arg2 ;
|
2929
|
+
TagLib::ulong arg2 ;
|
2928
2930
|
void *argp1 = 0 ;
|
2929
2931
|
int res1 = 0 ;
|
2930
|
-
|
2931
|
-
int
|
2932
|
+
unsigned long val2 ;
|
2933
|
+
int ecode2 = 0 ;
|
2932
2934
|
TagLib::ByteVector result;
|
2933
2935
|
VALUE vresult = Qnil;
|
2934
2936
|
|
@@ -2940,17 +2942,11 @@ _wrap_File_read_block(int argc, VALUE *argv, VALUE self) {
|
|
2940
2942
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","readBlock", 1, self ));
|
2941
2943
|
}
|
2942
2944
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2943
|
-
|
2944
|
-
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
if (!argp2) {
|
2949
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ulong","readBlock", 2, argv[0]));
|
2950
|
-
} else {
|
2951
|
-
arg2 = *(reinterpret_cast< ulong * >(argp2));
|
2952
|
-
}
|
2953
|
-
}
|
2945
|
+
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
|
2946
|
+
if (!SWIG_IsOK(ecode2)) {
|
2947
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::ulong","readBlock", 2, argv[0] ));
|
2948
|
+
}
|
2949
|
+
arg2 = static_cast< TagLib::ulong >(val2);
|
2954
2950
|
result = (arg1)->readBlock(arg2);
|
2955
2951
|
{
|
2956
2952
|
vresult = taglib_bytevector_to_ruby_string(result);
|
@@ -3400,15 +3396,15 @@ SWIGINTERN VALUE
|
|
3400
3396
|
_wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3401
3397
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3402
3398
|
TagLib::ByteVector *arg2 = 0 ;
|
3403
|
-
ulong arg3 ;
|
3404
|
-
ulong arg4 ;
|
3399
|
+
TagLib::ulong arg3 ;
|
3400
|
+
TagLib::ulong arg4 ;
|
3405
3401
|
void *argp1 = 0 ;
|
3406
3402
|
int res1 = 0 ;
|
3407
3403
|
TagLib::ByteVector tmp2 ;
|
3408
|
-
|
3409
|
-
int
|
3410
|
-
|
3411
|
-
int
|
3404
|
+
unsigned long val3 ;
|
3405
|
+
int ecode3 = 0 ;
|
3406
|
+
unsigned long val4 ;
|
3407
|
+
int ecode4 = 0 ;
|
3412
3408
|
|
3413
3409
|
if ((argc < 3) || (argc > 3)) {
|
3414
3410
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
@@ -3422,28 +3418,16 @@ _wrap_File_insert__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3422
3418
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3423
3419
|
arg2 = &tmp2;
|
3424
3420
|
}
|
3425
|
-
|
3426
|
-
|
3427
|
-
|
3428
|
-
|
3429
|
-
|
3430
|
-
|
3431
|
-
|
3432
|
-
|
3433
|
-
|
3434
|
-
|
3435
|
-
}
|
3436
|
-
{
|
3437
|
-
res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_ulong, 0 );
|
3438
|
-
if (!SWIG_IsOK(res4)) {
|
3439
|
-
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "ulong","insert", 4, argv[2] ));
|
3440
|
-
}
|
3441
|
-
if (!argp4) {
|
3442
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ulong","insert", 4, argv[2]));
|
3443
|
-
} else {
|
3444
|
-
arg4 = *(reinterpret_cast< ulong * >(argp4));
|
3445
|
-
}
|
3446
|
-
}
|
3421
|
+
ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
|
3422
|
+
if (!SWIG_IsOK(ecode3)) {
|
3423
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::ulong","insert", 3, argv[1] ));
|
3424
|
+
}
|
3425
|
+
arg3 = static_cast< TagLib::ulong >(val3);
|
3426
|
+
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
|
3427
|
+
if (!SWIG_IsOK(ecode4)) {
|
3428
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "TagLib::ulong","insert", 4, argv[2] ));
|
3429
|
+
}
|
3430
|
+
arg4 = static_cast< TagLib::ulong >(val4);
|
3447
3431
|
(arg1)->insert((TagLib::ByteVector const &)*arg2,arg3,arg4);
|
3448
3432
|
return Qnil;
|
3449
3433
|
fail:
|
@@ -3455,12 +3439,12 @@ SWIGINTERN VALUE
|
|
3455
3439
|
_wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3456
3440
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3457
3441
|
TagLib::ByteVector *arg2 = 0 ;
|
3458
|
-
ulong arg3 ;
|
3442
|
+
TagLib::ulong arg3 ;
|
3459
3443
|
void *argp1 = 0 ;
|
3460
3444
|
int res1 = 0 ;
|
3461
3445
|
TagLib::ByteVector tmp2 ;
|
3462
|
-
|
3463
|
-
int
|
3446
|
+
unsigned long val3 ;
|
3447
|
+
int ecode3 = 0 ;
|
3464
3448
|
|
3465
3449
|
if ((argc < 2) || (argc > 2)) {
|
3466
3450
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
@@ -3474,17 +3458,11 @@ _wrap_File_insert__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3474
3458
|
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3475
3459
|
arg2 = &tmp2;
|
3476
3460
|
}
|
3477
|
-
|
3478
|
-
|
3479
|
-
|
3480
|
-
|
3481
|
-
|
3482
|
-
if (!argp3) {
|
3483
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ulong","insert", 3, argv[1]));
|
3484
|
-
} else {
|
3485
|
-
arg3 = *(reinterpret_cast< ulong * >(argp3));
|
3486
|
-
}
|
3487
|
-
}
|
3461
|
+
ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
|
3462
|
+
if (!SWIG_IsOK(ecode3)) {
|
3463
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::ulong","insert", 3, argv[1] ));
|
3464
|
+
}
|
3465
|
+
arg3 = static_cast< TagLib::ulong >(val3);
|
3488
3466
|
(arg1)->insert((TagLib::ByteVector const &)*arg2,arg3);
|
3489
3467
|
return Qnil;
|
3490
3468
|
fail:
|
@@ -3554,9 +3532,10 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3554
3532
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ByteVector, 0);
|
3555
3533
|
_v = SWIG_CheckState(res);
|
3556
3534
|
if (_v) {
|
3557
|
-
|
3558
|
-
|
3559
|
-
|
3535
|
+
{
|
3536
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
|
3537
|
+
_v = SWIG_CheckState(res);
|
3538
|
+
}
|
3560
3539
|
if (_v) {
|
3561
3540
|
return _wrap_File_insert__SWIG_1(nargs, args, self);
|
3562
3541
|
}
|
@@ -3573,13 +3552,15 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3573
3552
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ByteVector, 0);
|
3574
3553
|
_v = SWIG_CheckState(res);
|
3575
3554
|
if (_v) {
|
3576
|
-
|
3577
|
-
|
3578
|
-
_v = SWIG_CheckState(res);
|
3579
|
-
if (_v) {
|
3580
|
-
void *vptr = 0;
|
3581
|
-
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ulong, 0);
|
3555
|
+
{
|
3556
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
|
3582
3557
|
_v = SWIG_CheckState(res);
|
3558
|
+
}
|
3559
|
+
if (_v) {
|
3560
|
+
{
|
3561
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[3], NULL);
|
3562
|
+
_v = SWIG_CheckState(res);
|
3563
|
+
}
|
3583
3564
|
if (_v) {
|
3584
3565
|
return _wrap_File_insert__SWIG_0(nargs, args, self);
|
3585
3566
|
}
|
@@ -3590,8 +3571,8 @@ SWIGINTERN VALUE _wrap_File_insert(int nargs, VALUE *args, VALUE self) {
|
|
3590
3571
|
|
3591
3572
|
fail:
|
3592
3573
|
Ruby_Format_OverloadedError( argc, 5, "File.insert",
|
3593
|
-
" void File.insert(TagLib::ByteVector const &data, ulong start, ulong replace)\n"
|
3594
|
-
" void File.insert(TagLib::ByteVector const &data, ulong start)\n"
|
3574
|
+
" void File.insert(TagLib::ByteVector const &data, TagLib::ulong start, TagLib::ulong replace)\n"
|
3575
|
+
" void File.insert(TagLib::ByteVector const &data, TagLib::ulong start)\n"
|
3595
3576
|
" void File.insert(TagLib::ByteVector const &data)\n");
|
3596
3577
|
|
3597
3578
|
return Qnil;
|
@@ -3601,14 +3582,14 @@ fail:
|
|
3601
3582
|
SWIGINTERN VALUE
|
3602
3583
|
_wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3603
3584
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3604
|
-
ulong arg2 ;
|
3605
|
-
ulong arg3 ;
|
3585
|
+
TagLib::ulong arg2 ;
|
3586
|
+
TagLib::ulong arg3 ;
|
3606
3587
|
void *argp1 = 0 ;
|
3607
3588
|
int res1 = 0 ;
|
3608
|
-
|
3609
|
-
int
|
3610
|
-
|
3611
|
-
int
|
3589
|
+
unsigned long val2 ;
|
3590
|
+
int ecode2 = 0 ;
|
3591
|
+
unsigned long val3 ;
|
3592
|
+
int ecode3 = 0 ;
|
3612
3593
|
|
3613
3594
|
if ((argc < 2) || (argc > 2)) {
|
3614
3595
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
@@ -3618,28 +3599,16 @@ _wrap_File_remove_block__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3618
3599
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
|
3619
3600
|
}
|
3620
3601
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
3621
|
-
|
3622
|
-
|
3623
|
-
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
|
3631
|
-
}
|
3632
|
-
{
|
3633
|
-
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_ulong, 0 );
|
3634
|
-
if (!SWIG_IsOK(res3)) {
|
3635
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "ulong","removeBlock", 3, argv[1] ));
|
3636
|
-
}
|
3637
|
-
if (!argp3) {
|
3638
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ulong","removeBlock", 3, argv[1]));
|
3639
|
-
} else {
|
3640
|
-
arg3 = *(reinterpret_cast< ulong * >(argp3));
|
3641
|
-
}
|
3642
|
-
}
|
3602
|
+
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
|
3603
|
+
if (!SWIG_IsOK(ecode2)) {
|
3604
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::ulong","removeBlock", 2, argv[0] ));
|
3605
|
+
}
|
3606
|
+
arg2 = static_cast< TagLib::ulong >(val2);
|
3607
|
+
ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
|
3608
|
+
if (!SWIG_IsOK(ecode3)) {
|
3609
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::ulong","removeBlock", 3, argv[1] ));
|
3610
|
+
}
|
3611
|
+
arg3 = static_cast< TagLib::ulong >(val3);
|
3643
3612
|
(arg1)->removeBlock(arg2,arg3);
|
3644
3613
|
return Qnil;
|
3645
3614
|
fail:
|
@@ -3650,11 +3619,11 @@ fail:
|
|
3650
3619
|
SWIGINTERN VALUE
|
3651
3620
|
_wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3652
3621
|
TagLib::File *arg1 = (TagLib::File *) 0 ;
|
3653
|
-
ulong arg2 ;
|
3622
|
+
TagLib::ulong arg2 ;
|
3654
3623
|
void *argp1 = 0 ;
|
3655
3624
|
int res1 = 0 ;
|
3656
|
-
|
3657
|
-
int
|
3625
|
+
unsigned long val2 ;
|
3626
|
+
int ecode2 = 0 ;
|
3658
3627
|
|
3659
3628
|
if ((argc < 1) || (argc > 1)) {
|
3660
3629
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
@@ -3664,17 +3633,11 @@ _wrap_File_remove_block__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3664
3633
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","removeBlock", 1, self ));
|
3665
3634
|
}
|
3666
3635
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
3667
|
-
|
3668
|
-
|
3669
|
-
|
3670
|
-
|
3671
|
-
|
3672
|
-
if (!argp2) {
|
3673
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ulong","removeBlock", 2, argv[0]));
|
3674
|
-
} else {
|
3675
|
-
arg2 = *(reinterpret_cast< ulong * >(argp2));
|
3676
|
-
}
|
3677
|
-
}
|
3636
|
+
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
|
3637
|
+
if (!SWIG_IsOK(ecode2)) {
|
3638
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::ulong","removeBlock", 2, argv[0] ));
|
3639
|
+
}
|
3640
|
+
arg2 = static_cast< TagLib::ulong >(val2);
|
3678
3641
|
(arg1)->removeBlock(arg2);
|
3679
3642
|
return Qnil;
|
3680
3643
|
fail:
|
@@ -3729,9 +3692,10 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3729
3692
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
3730
3693
|
_v = SWIG_CheckState(res);
|
3731
3694
|
if (_v) {
|
3732
|
-
|
3733
|
-
|
3734
|
-
|
3695
|
+
{
|
3696
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
|
3697
|
+
_v = SWIG_CheckState(res);
|
3698
|
+
}
|
3735
3699
|
if (_v) {
|
3736
3700
|
return _wrap_File_remove_block__SWIG_1(nargs, args, self);
|
3737
3701
|
}
|
@@ -3743,13 +3707,15 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3743
3707
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
|
3744
3708
|
_v = SWIG_CheckState(res);
|
3745
3709
|
if (_v) {
|
3746
|
-
|
3747
|
-
|
3748
|
-
_v = SWIG_CheckState(res);
|
3749
|
-
if (_v) {
|
3750
|
-
void *vptr = 0;
|
3751
|
-
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ulong, 0);
|
3710
|
+
{
|
3711
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL);
|
3752
3712
|
_v = SWIG_CheckState(res);
|
3713
|
+
}
|
3714
|
+
if (_v) {
|
3715
|
+
{
|
3716
|
+
int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
|
3717
|
+
_v = SWIG_CheckState(res);
|
3718
|
+
}
|
3753
3719
|
if (_v) {
|
3754
3720
|
return _wrap_File_remove_block__SWIG_0(nargs, args, self);
|
3755
3721
|
}
|
@@ -3759,8 +3725,8 @@ SWIGINTERN VALUE _wrap_File_remove_block(int nargs, VALUE *args, VALUE self) {
|
|
3759
3725
|
|
3760
3726
|
fail:
|
3761
3727
|
Ruby_Format_OverloadedError( argc, 4, "File.remove_block",
|
3762
|
-
" void File.remove_block(ulong start, ulong length)\n"
|
3763
|
-
" void File.remove_block(ulong start)\n"
|
3728
|
+
" void File.remove_block(TagLib::ulong start, TagLib::ulong length)\n"
|
3729
|
+
" void File.remove_block(TagLib::ulong start)\n"
|
3764
3730
|
" void File.remove_block()\n");
|
3765
3731
|
|
3766
3732
|
return Qnil;
|
@@ -4754,8 +4720,10 @@ static swig_type_info _swigt__p_TagLib__FileRef__FileTypeResolver = {"_p_TagLib_
|
|
4754
4720
|
static swig_type_info _swigt__p_TagLib__String = {"_p_TagLib__String", "TagLib::String *", 0, 0, (void*)0, 0};
|
4755
4721
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
4756
4722
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
4757
|
-
static swig_type_info
|
4723
|
+
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
4758
4724
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
|
4725
|
+
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
4726
|
+
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
|
4759
4727
|
|
4760
4728
|
static swig_type_info *swig_type_initial[] = {
|
4761
4729
|
&_swigt__p_TagLib__AudioProperties,
|
@@ -4766,8 +4734,10 @@ static swig_type_info *swig_type_initial[] = {
|
|
4766
4734
|
&_swigt__p_TagLib__String,
|
4767
4735
|
&_swigt__p_TagLib__Tag,
|
4768
4736
|
&_swigt__p_char,
|
4769
|
-
&
|
4737
|
+
&_swigt__p_unsigned_char,
|
4770
4738
|
&_swigt__p_unsigned_int,
|
4739
|
+
&_swigt__p_unsigned_long,
|
4740
|
+
&_swigt__p_wchar_t,
|
4771
4741
|
};
|
4772
4742
|
|
4773
4743
|
static swig_cast_info _swigc__p_TagLib__AudioProperties[] = { {&_swigt__p_TagLib__AudioProperties, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -4778,8 +4748,10 @@ static swig_cast_info _swigc__p_TagLib__FileRef__FileTypeResolver[] = { {&_swig
|
|
4778
4748
|
static swig_cast_info _swigc__p_TagLib__String[] = { {&_swigt__p_TagLib__String, 0, 0, 0},{0, 0, 0, 0}};
|
4779
4749
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
4780
4750
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
4781
|
-
static swig_cast_info
|
4751
|
+
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
4782
4752
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
4753
|
+
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
4754
|
+
static swig_cast_info _swigc__p_wchar_t[] = { {&_swigt__p_wchar_t, 0, 0, 0},{0, 0, 0, 0}};
|
4783
4755
|
|
4784
4756
|
static swig_cast_info *swig_cast_initial[] = {
|
4785
4757
|
_swigc__p_TagLib__AudioProperties,
|
@@ -4790,8 +4762,10 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4790
4762
|
_swigc__p_TagLib__String,
|
4791
4763
|
_swigc__p_TagLib__Tag,
|
4792
4764
|
_swigc__p_char,
|
4793
|
-
|
4765
|
+
_swigc__p_unsigned_char,
|
4794
4766
|
_swigc__p_unsigned_int,
|
4767
|
+
_swigc__p_unsigned_long,
|
4768
|
+
_swigc__p_wchar_t,
|
4795
4769
|
};
|
4796
4770
|
|
4797
4771
|
|
@@ -1842,9 +1842,12 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1842
1842
|
#define SWIGTYPE_p_TagLib__StringList swig_types[26]
|
1843
1843
|
#define SWIGTYPE_p_TagLib__Tag swig_types[27]
|
1844
1844
|
#define SWIGTYPE_p_char swig_types[28]
|
1845
|
-
#define
|
1846
|
-
|
1847
|
-
|
1845
|
+
#define SWIGTYPE_p_unsigned_char swig_types[29]
|
1846
|
+
#define SWIGTYPE_p_unsigned_int swig_types[30]
|
1847
|
+
#define SWIGTYPE_p_unsigned_long swig_types[31]
|
1848
|
+
#define SWIGTYPE_p_wchar_t swig_types[32]
|
1849
|
+
static swig_type_info *swig_types[34];
|
1850
|
+
static swig_module_info swig_module = {swig_types, 33, 0, 0, 0, 0};
|
1848
1851
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1849
1852
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1850
1853
|
|
@@ -8385,7 +8388,10 @@ static swig_type_info _swigt__p_TagLib__String = {"_p_TagLib__String", "TagLib::
|
|
8385
8388
|
static swig_type_info _swigt__p_TagLib__StringList = {"_p_TagLib__StringList", "TagLib::StringList *", 0, 0, (void*)0, 0};
|
8386
8389
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
8387
8390
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
8391
|
+
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
8388
8392
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
|
8393
|
+
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
8394
|
+
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
|
8389
8395
|
|
8390
8396
|
static swig_type_info *swig_type_initial[] = {
|
8391
8397
|
&_swigt__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t,
|
@@ -8417,7 +8423,10 @@ static swig_type_info *swig_type_initial[] = {
|
|
8417
8423
|
&_swigt__p_TagLib__StringList,
|
8418
8424
|
&_swigt__p_TagLib__Tag,
|
8419
8425
|
&_swigt__p_char,
|
8426
|
+
&_swigt__p_unsigned_char,
|
8420
8427
|
&_swigt__p_unsigned_int,
|
8428
|
+
&_swigt__p_unsigned_long,
|
8429
|
+
&_swigt__p_wchar_t,
|
8421
8430
|
};
|
8422
8431
|
|
8423
8432
|
static swig_cast_info _swigc__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t[] = { {&_swigt__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -8449,7 +8458,10 @@ static swig_cast_info _swigc__p_TagLib__String[] = { {&_swigt__p_TagLib__String
|
|
8449
8458
|
static swig_cast_info _swigc__p_TagLib__StringList[] = { {&_swigt__p_TagLib__StringList, 0, 0, 0},{0, 0, 0, 0}};
|
8450
8459
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__ID3v2__Tag, _p_TagLib__ID3v2__TagTo_p_TagLib__Tag, 0, 0}, {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
8451
8460
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
8461
|
+
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
8452
8462
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
8463
|
+
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
8464
|
+
static swig_cast_info _swigc__p_wchar_t[] = { {&_swigt__p_wchar_t, 0, 0, 0},{0, 0, 0, 0}};
|
8453
8465
|
|
8454
8466
|
static swig_cast_info *swig_cast_initial[] = {
|
8455
8467
|
_swigc__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t,
|
@@ -8481,7 +8493,10 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
8481
8493
|
_swigc__p_TagLib__StringList,
|
8482
8494
|
_swigc__p_TagLib__Tag,
|
8483
8495
|
_swigc__p_char,
|
8496
|
+
_swigc__p_unsigned_char,
|
8484
8497
|
_swigc__p_unsigned_int,
|
8498
|
+
_swigc__p_unsigned_long,
|
8499
|
+
_swigc__p_wchar_t,
|
8485
8500
|
};
|
8486
8501
|
|
8487
8502
|
|
@@ -1826,9 +1826,12 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1826
1826
|
#define SWIGTYPE_p_TagLib__MPEG__XingHeader swig_types[10]
|
1827
1827
|
#define SWIGTYPE_p_TagLib__Tag swig_types[11]
|
1828
1828
|
#define SWIGTYPE_p_char swig_types[12]
|
1829
|
-
#define
|
1830
|
-
|
1831
|
-
|
1829
|
+
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1830
|
+
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1831
|
+
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
1832
|
+
#define SWIGTYPE_p_wchar_t swig_types[16]
|
1833
|
+
static swig_type_info *swig_types[18];
|
1834
|
+
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
1832
1835
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1833
1836
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1834
1837
|
|
@@ -4269,7 +4272,10 @@ static swig_type_info _swigt__p_TagLib__MPEG__Properties = {"_p_TagLib__MPEG__Pr
|
|
4269
4272
|
static swig_type_info _swigt__p_TagLib__MPEG__XingHeader = {"_p_TagLib__MPEG__XingHeader", "TagLib::MPEG::XingHeader *", 0, 0, (void*)0, 0};
|
4270
4273
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
4271
4274
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
4275
|
+
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
4272
4276
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
|
4277
|
+
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
4278
|
+
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
|
4273
4279
|
|
4274
4280
|
static swig_type_info *swig_type_initial[] = {
|
4275
4281
|
&_swigt__p_TagLib__APE__Tag,
|
@@ -4285,7 +4291,10 @@ static swig_type_info *swig_type_initial[] = {
|
|
4285
4291
|
&_swigt__p_TagLib__MPEG__XingHeader,
|
4286
4292
|
&_swigt__p_TagLib__Tag,
|
4287
4293
|
&_swigt__p_char,
|
4294
|
+
&_swigt__p_unsigned_char,
|
4288
4295
|
&_swigt__p_unsigned_int,
|
4296
|
+
&_swigt__p_unsigned_long,
|
4297
|
+
&_swigt__p_wchar_t,
|
4289
4298
|
};
|
4290
4299
|
|
4291
4300
|
static swig_cast_info _swigc__p_TagLib__APE__Tag[] = { {&_swigt__p_TagLib__APE__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -4301,7 +4310,10 @@ static swig_cast_info _swigc__p_TagLib__MPEG__Properties[] = { {&_swigt__p_TagL
|
|
4301
4310
|
static swig_cast_info _swigc__p_TagLib__MPEG__XingHeader[] = { {&_swigt__p_TagLib__MPEG__XingHeader, 0, 0, 0},{0, 0, 0, 0}};
|
4302
4311
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
4303
4312
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
4313
|
+
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
4304
4314
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
4315
|
+
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
4316
|
+
static swig_cast_info _swigc__p_wchar_t[] = { {&_swigt__p_wchar_t, 0, 0, 0},{0, 0, 0, 0}};
|
4305
4317
|
|
4306
4318
|
static swig_cast_info *swig_cast_initial[] = {
|
4307
4319
|
_swigc__p_TagLib__APE__Tag,
|
@@ -4317,7 +4329,10 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4317
4329
|
_swigc__p_TagLib__MPEG__XingHeader,
|
4318
4330
|
_swigc__p_TagLib__Tag,
|
4319
4331
|
_swigc__p_char,
|
4332
|
+
_swigc__p_unsigned_char,
|
4320
4333
|
_swigc__p_unsigned_int,
|
4334
|
+
_swigc__p_unsigned_long,
|
4335
|
+
_swigc__p_wchar_t,
|
4321
4336
|
};
|
4322
4337
|
|
4323
4338
|
|
data/lib/taglib/version.rb
CHANGED
data/taglib-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "taglib-ruby"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Robin Stocker"]
|
12
|
-
s.date = "2011-
|
12
|
+
s.date = "2011-11-05"
|
13
13
|
s.description = "Ruby interface for the taglib C++ library.\n\nIn contrast to other libraries, this one wraps the C++ API using SWIG,\nnot only the minimal C API. This means that all tags can be accessed.\n"
|
14
14
|
s.email = "robin@nibor.org"
|
15
15
|
s.extensions = ["ext/taglib_base/extconf.rb", "ext/taglib_mpeg/extconf.rb", "ext/taglib_id3v2/extconf.rb"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taglib-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Robin Stocker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-05 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|