taglib-ruby 0.7.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +7 -0
- data/README.md +25 -10
- data/Rakefile +11 -1
- data/docs/taglib/aiff.rb +35 -3
- data/docs/taglib/base.rb +8 -1
- data/docs/taglib/flac.rb +60 -4
- data/docs/taglib/id3v1.rb +29 -0
- data/docs/taglib/id3v2.rb +1 -1
- data/docs/taglib/mp4.rb +124 -13
- data/docs/taglib/mpeg.rb +30 -1
- data/docs/taglib/ogg.rb +47 -5
- data/docs/taglib/vorbis.rb +1 -1
- data/docs/taglib/wav.rb +56 -3
- data/ext/extconf_common.rb +9 -2
- data/ext/taglib_aiff/taglib_aiff.i +16 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +228 -58
- data/ext/taglib_base/includes.i +4 -4
- data/ext/taglib_base/taglib_base.i +24 -2
- data/ext/taglib_base/taglib_base_wrap.cxx +76 -51
- data/ext/taglib_flac/taglib_flac.i +14 -18
- data/ext/taglib_flac/taglib_flac_wrap.cxx +341 -799
- data/ext/taglib_flac_picture/extconf.rb +4 -0
- data/ext/taglib_flac_picture/includes.i +15 -0
- data/ext/taglib_flac_picture/taglib_flac_picture.i +15 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +3087 -0
- data/ext/taglib_id3v1/taglib_id3v1.i +19 -0
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +241 -58
- data/ext/taglib_id3v2/taglib_id3v2.i +52 -1
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +152 -155
- data/ext/taglib_mp4/taglib_mp4.i +100 -19
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +939 -148
- data/ext/taglib_mpeg/taglib_mpeg.i +11 -16
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +522 -208
- data/ext/taglib_ogg/taglib_ogg.i +11 -0
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +328 -57
- data/ext/taglib_vorbis/taglib_vorbis.i +8 -0
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +53 -22
- data/ext/taglib_wav/taglib_wav.i +24 -0
- data/ext/taglib_wav/taglib_wav_wrap.cxx +543 -198
- data/lib/taglib/mp4.rb +2 -1
- data/lib/taglib/version.rb +3 -3
- data/lib/taglib/wav.rb +4 -0
- data/taglib-ruby.gemspec +15 -9
- data/tasks/ext.rake +36 -15
- data/tasks/swig.rake +26 -2
- data/test/aiff_examples_test.rb +1 -1
- data/test/aiff_file_test.rb +12 -3
- data/test/data/vorbis-create.cpp +20 -1
- data/test/data/vorbis.oga +0 -0
- data/test/fileref_properties_test.rb +1 -1
- data/test/flac_file_test.rb +45 -30
- data/test/id3v1_genres_test.rb +23 -0
- data/test/id3v1_tag_test.rb +1 -0
- data/test/id3v2_tag_test.rb +6 -6
- data/test/id3v2_write_test.rb +10 -13
- data/test/mp4_file_test.rb +33 -4
- data/test/mp4_file_write_test.rb +5 -5
- data/test/mp4_items_test.rb +83 -29
- data/test/mpeg_file_test.rb +120 -7
- data/test/vorbis_file_test.rb +2 -2
- data/test/vorbis_tag_test.rb +61 -7
- data/test/wav_examples_test.rb +1 -1
- data/test/wav_file_test.rb +53 -41
- data/test/wav_file_write_test.rb +25 -0
- metadata +19 -9
@@ -1833,23 +1833,22 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1833
1833
|
#define SWIGTYPE_p_TagLib__AudioProperties swig_types[0]
|
1834
1834
|
#define SWIGTYPE_p_TagLib__ByteVector swig_types[1]
|
1835
1835
|
#define SWIGTYPE_p_TagLib__FLAC__File swig_types[2]
|
1836
|
-
#define
|
1837
|
-
#define
|
1838
|
-
#define
|
1839
|
-
#define
|
1840
|
-
#define
|
1841
|
-
#define
|
1842
|
-
#define
|
1843
|
-
#define
|
1844
|
-
#define
|
1845
|
-
#define
|
1846
|
-
#define
|
1847
|
-
#define
|
1848
|
-
#define
|
1849
|
-
#define
|
1850
|
-
|
1851
|
-
static
|
1852
|
-
static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0};
|
1836
|
+
#define SWIGTYPE_p_TagLib__FLAC__Picture swig_types[3]
|
1837
|
+
#define SWIGTYPE_p_TagLib__FLAC__Properties swig_types[4]
|
1838
|
+
#define SWIGTYPE_p_TagLib__File swig_types[5]
|
1839
|
+
#define SWIGTYPE_p_TagLib__ID3v1__Tag swig_types[6]
|
1840
|
+
#define SWIGTYPE_p_TagLib__ID3v2__FrameFactory swig_types[7]
|
1841
|
+
#define SWIGTYPE_p_TagLib__ID3v2__Tag swig_types[8]
|
1842
|
+
#define SWIGTYPE_p_TagLib__ListT_TagLib__FLAC__Picture_t swig_types[9]
|
1843
|
+
#define SWIGTYPE_p_TagLib__Ogg__XiphComment swig_types[10]
|
1844
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[11]
|
1845
|
+
#define SWIGTYPE_p_char swig_types[12]
|
1846
|
+
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1847
|
+
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1848
|
+
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
1849
|
+
#define SWIGTYPE_p_wchar_t swig_types[16]
|
1850
|
+
static swig_type_info *swig_types[18];
|
1851
|
+
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
1853
1852
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1854
1853
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1855
1854
|
|
@@ -1878,7 +1877,6 @@ static VALUE mFLAC;
|
|
1878
1877
|
#include <taglib/taglib.h>
|
1879
1878
|
#include <taglib/flacfile.h>
|
1880
1879
|
#include <taglib/flacproperties.h>
|
1881
|
-
#include <taglib/flacpicture.h>
|
1882
1880
|
#include <taglib/id3v1tag.h>
|
1883
1881
|
#include <taglib/id3v2tag.h>
|
1884
1882
|
|
@@ -1902,7 +1900,7 @@ VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
|
1902
1900
|
if (byteVector.isNull()) {
|
1903
1901
|
return Qnil;
|
1904
1902
|
} else {
|
1905
|
-
return
|
1903
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1906
1904
|
}
|
1907
1905
|
}
|
1908
1906
|
|
@@ -1918,7 +1916,7 @@ VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
|
1918
1916
|
if (string.isNull()) {
|
1919
1917
|
return Qnil;
|
1920
1918
|
} else {
|
1921
|
-
VALUE result =
|
1919
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1922
1920
|
ASSOCIATE_UTF8_ENCODING(result);
|
1923
1921
|
return result;
|
1924
1922
|
}
|
@@ -1958,9 +1956,9 @@ VALUE taglib_filename_to_ruby_string(TagLib::FileName filename) {
|
|
1958
1956
|
VALUE result;
|
1959
1957
|
#ifdef _WIN32
|
1960
1958
|
const char *s = (const char *) filename;
|
1961
|
-
result =
|
1959
|
+
result = rb_str_new2(s);
|
1962
1960
|
#else
|
1963
|
-
result =
|
1961
|
+
result = rb_str_new2(filename);
|
1964
1962
|
#endif
|
1965
1963
|
ASSOCIATE_FILESYSTEM_ENCODING(result);
|
1966
1964
|
return result;
|
@@ -2078,6 +2076,40 @@ SWIG_From_int (int value)
|
|
2078
2076
|
}
|
2079
2077
|
|
2080
2078
|
|
2079
|
+
SWIGINTERNINLINE VALUE
|
2080
|
+
SWIG_From_long_SS_long (long long value)
|
2081
|
+
{
|
2082
|
+
return LL2NUM(value);
|
2083
|
+
}
|
2084
|
+
|
2085
|
+
|
2086
|
+
SWIGINTERNINLINE VALUE
|
2087
|
+
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2088
|
+
{
|
2089
|
+
return ULL2NUM(value);
|
2090
|
+
}
|
2091
|
+
|
2092
|
+
|
2093
|
+
SWIGINTERN int
|
2094
|
+
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2095
|
+
{
|
2096
|
+
if (obj == Qtrue) {
|
2097
|
+
if (val) *val = true;
|
2098
|
+
return SWIG_OK;
|
2099
|
+
} else if (obj == Qfalse) {
|
2100
|
+
if (val) *val = false;
|
2101
|
+
return SWIG_OK;
|
2102
|
+
} else {
|
2103
|
+
int res = 0;
|
2104
|
+
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
2105
|
+
if (val) *val = res ? true : false;
|
2106
|
+
return SWIG_OK;
|
2107
|
+
}
|
2108
|
+
}
|
2109
|
+
return SWIG_TypeError;
|
2110
|
+
}
|
2111
|
+
|
2112
|
+
|
2081
2113
|
SWIGINTERN swig_type_info*
|
2082
2114
|
SWIG_pchar_descriptor(void)
|
2083
2115
|
{
|
@@ -2134,26 +2166,6 @@ SWIG_From_bool (bool value)
|
|
2134
2166
|
return value ? Qtrue : Qfalse;
|
2135
2167
|
}
|
2136
2168
|
|
2137
|
-
|
2138
|
-
SWIGINTERN int
|
2139
|
-
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2140
|
-
{
|
2141
|
-
if (obj == Qtrue) {
|
2142
|
-
if (val) *val = true;
|
2143
|
-
return SWIG_OK;
|
2144
|
-
} else if (obj == Qfalse) {
|
2145
|
-
if (val) *val = false;
|
2146
|
-
return SWIG_OK;
|
2147
|
-
} else {
|
2148
|
-
int res = 0;
|
2149
|
-
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
2150
|
-
if (val) *val = res ? true : false;
|
2151
|
-
return SWIG_OK;
|
2152
|
-
}
|
2153
|
-
}
|
2154
|
-
return SWIG_TypeError;
|
2155
|
-
}
|
2156
|
-
|
2157
2169
|
SWIGINTERN void TagLib_FLAC_File_close(TagLib::FLAC::File *self){
|
2158
2170
|
free_taglib_flac_file(self);
|
2159
2171
|
}
|
@@ -2452,103 +2464,7 @@ free_TagLib_FLAC_Properties(TagLib::FLAC::Properties *arg1) {
|
|
2452
2464
|
}
|
2453
2465
|
|
2454
2466
|
SWIGINTERN VALUE
|
2455
|
-
|
2456
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2457
|
-
void *argp1 = 0 ;
|
2458
|
-
int res1 = 0 ;
|
2459
|
-
int result;
|
2460
|
-
VALUE vresult = Qnil;
|
2461
|
-
|
2462
|
-
if ((argc < 0) || (argc > 0)) {
|
2463
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2464
|
-
}
|
2465
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2466
|
-
if (!SWIG_IsOK(res1)) {
|
2467
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","length", 1, self ));
|
2468
|
-
}
|
2469
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2470
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->length();
|
2471
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2472
|
-
return vresult;
|
2473
|
-
fail:
|
2474
|
-
return Qnil;
|
2475
|
-
}
|
2476
|
-
|
2477
|
-
|
2478
|
-
SWIGINTERN VALUE
|
2479
|
-
_wrap_Properties_bitrate(int argc, VALUE *argv, VALUE self) {
|
2480
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2481
|
-
void *argp1 = 0 ;
|
2482
|
-
int res1 = 0 ;
|
2483
|
-
int result;
|
2484
|
-
VALUE vresult = Qnil;
|
2485
|
-
|
2486
|
-
if ((argc < 0) || (argc > 0)) {
|
2487
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2488
|
-
}
|
2489
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2490
|
-
if (!SWIG_IsOK(res1)) {
|
2491
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","bitrate", 1, self ));
|
2492
|
-
}
|
2493
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2494
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->bitrate();
|
2495
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2496
|
-
return vresult;
|
2497
|
-
fail:
|
2498
|
-
return Qnil;
|
2499
|
-
}
|
2500
|
-
|
2501
|
-
|
2502
|
-
SWIGINTERN VALUE
|
2503
|
-
_wrap_Properties_sample_rate(int argc, VALUE *argv, VALUE self) {
|
2504
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2505
|
-
void *argp1 = 0 ;
|
2506
|
-
int res1 = 0 ;
|
2507
|
-
int result;
|
2508
|
-
VALUE vresult = Qnil;
|
2509
|
-
|
2510
|
-
if ((argc < 0) || (argc > 0)) {
|
2511
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2512
|
-
}
|
2513
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2514
|
-
if (!SWIG_IsOK(res1)) {
|
2515
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","sampleRate", 1, self ));
|
2516
|
-
}
|
2517
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2518
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->sampleRate();
|
2519
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2520
|
-
return vresult;
|
2521
|
-
fail:
|
2522
|
-
return Qnil;
|
2523
|
-
}
|
2524
|
-
|
2525
|
-
|
2526
|
-
SWIGINTERN VALUE
|
2527
|
-
_wrap_Properties_channels(int argc, VALUE *argv, VALUE self) {
|
2528
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2529
|
-
void *argp1 = 0 ;
|
2530
|
-
int res1 = 0 ;
|
2531
|
-
int result;
|
2532
|
-
VALUE vresult = Qnil;
|
2533
|
-
|
2534
|
-
if ((argc < 0) || (argc > 0)) {
|
2535
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2536
|
-
}
|
2537
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2538
|
-
if (!SWIG_IsOK(res1)) {
|
2539
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","channels", 1, self ));
|
2540
|
-
}
|
2541
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2542
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->channels();
|
2543
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2544
|
-
return vresult;
|
2545
|
-
fail:
|
2546
|
-
return Qnil;
|
2547
|
-
}
|
2548
|
-
|
2549
|
-
|
2550
|
-
SWIGINTERN VALUE
|
2551
|
-
_wrap_Properties_sample_width(int argc, VALUE *argv, VALUE self) {
|
2467
|
+
_wrap_Properties_length_in_seconds(int argc, VALUE *argv, VALUE self) {
|
2552
2468
|
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2553
2469
|
void *argp1 = 0 ;
|
2554
2470
|
int res1 = 0 ;
|
@@ -2559,517 +2475,21 @@ _wrap_Properties_sample_width(int argc, VALUE *argv, VALUE self) {
|
|
2559
2475
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2560
2476
|
}
|
2561
2477
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2562
|
-
if (!SWIG_IsOK(res1)) {
|
2563
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","
|
2564
|
-
}
|
2565
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2566
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->
|
2567
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2568
|
-
return vresult;
|
2569
|
-
fail:
|
2570
|
-
return Qnil;
|
2571
|
-
}
|
2572
|
-
|
2573
|
-
|
2574
|
-
SWIGINTERN VALUE
|
2575
|
-
_wrap_Properties_signature(int argc, VALUE *argv, VALUE self) {
|
2576
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2577
|
-
void *argp1 = 0 ;
|
2578
|
-
int res1 = 0 ;
|
2579
|
-
TagLib::ByteVector result;
|
2580
|
-
VALUE vresult = Qnil;
|
2581
|
-
|
2582
|
-
if ((argc < 0) || (argc > 0)) {
|
2583
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2584
|
-
}
|
2585
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2586
|
-
if (!SWIG_IsOK(res1)) {
|
2587
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","signature", 1, self ));
|
2588
|
-
}
|
2589
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2590
|
-
result = ((TagLib::FLAC::Properties const *)arg1)->signature();
|
2591
|
-
{
|
2592
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
2593
|
-
}
|
2594
|
-
return vresult;
|
2595
|
-
fail:
|
2596
|
-
return Qnil;
|
2597
|
-
}
|
2598
|
-
|
2599
|
-
|
2600
|
-
static swig_class SwigClassMetadataBlock;
|
2601
|
-
|
2602
|
-
SWIGINTERN void
|
2603
|
-
free_TagLib_FLAC_MetadataBlock(TagLib::FLAC::MetadataBlock *arg1) {
|
2604
|
-
SWIG_RubyRemoveTracking(arg1);
|
2605
|
-
delete arg1;
|
2606
|
-
}
|
2607
|
-
|
2608
|
-
SWIGINTERN VALUE
|
2609
|
-
_wrap_MetadataBlock_code(int argc, VALUE *argv, VALUE self) {
|
2610
|
-
TagLib::FLAC::MetadataBlock *arg1 = (TagLib::FLAC::MetadataBlock *) 0 ;
|
2611
|
-
void *argp1 = 0 ;
|
2612
|
-
int res1 = 0 ;
|
2613
|
-
int result;
|
2614
|
-
VALUE vresult = Qnil;
|
2615
|
-
|
2616
|
-
if ((argc < 0) || (argc > 0)) {
|
2617
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2618
|
-
}
|
2619
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__MetadataBlock, 0 | 0 );
|
2620
|
-
if (!SWIG_IsOK(res1)) {
|
2621
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::MetadataBlock const *","code", 1, self ));
|
2622
|
-
}
|
2623
|
-
arg1 = reinterpret_cast< TagLib::FLAC::MetadataBlock * >(argp1);
|
2624
|
-
result = (int)((TagLib::FLAC::MetadataBlock const *)arg1)->code();
|
2625
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2626
|
-
return vresult;
|
2627
|
-
fail:
|
2628
|
-
return Qnil;
|
2629
|
-
}
|
2630
|
-
|
2631
|
-
|
2632
|
-
SWIGINTERN VALUE
|
2633
|
-
_wrap_MetadataBlock_render(int argc, VALUE *argv, VALUE self) {
|
2634
|
-
TagLib::FLAC::MetadataBlock *arg1 = (TagLib::FLAC::MetadataBlock *) 0 ;
|
2635
|
-
void *argp1 = 0 ;
|
2636
|
-
int res1 = 0 ;
|
2637
|
-
TagLib::ByteVector result;
|
2638
|
-
VALUE vresult = Qnil;
|
2639
|
-
|
2640
|
-
if ((argc < 0) || (argc > 0)) {
|
2641
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2642
|
-
}
|
2643
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__MetadataBlock, 0 | 0 );
|
2644
|
-
if (!SWIG_IsOK(res1)) {
|
2645
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::MetadataBlock const *","render", 1, self ));
|
2646
|
-
}
|
2647
|
-
arg1 = reinterpret_cast< TagLib::FLAC::MetadataBlock * >(argp1);
|
2648
|
-
result = ((TagLib::FLAC::MetadataBlock const *)arg1)->render();
|
2649
|
-
{
|
2650
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
2651
|
-
}
|
2652
|
-
return vresult;
|
2653
|
-
fail:
|
2654
|
-
return Qnil;
|
2655
|
-
}
|
2656
|
-
|
2657
|
-
|
2658
|
-
static swig_class SwigClassPicture;
|
2659
|
-
|
2660
|
-
SWIGINTERN VALUE
|
2661
|
-
_wrap_new_Picture__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2662
|
-
TagLib::FLAC::Picture *result = 0 ;
|
2663
|
-
|
2664
|
-
if ((argc < 0) || (argc > 0)) {
|
2665
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2666
|
-
}
|
2667
|
-
result = (TagLib::FLAC::Picture *)new TagLib::FLAC::Picture();
|
2668
|
-
DATA_PTR(self) = result;
|
2669
|
-
SWIG_RubyAddTracking(result, self);
|
2670
|
-
return self;
|
2671
|
-
fail:
|
2672
|
-
return Qnil;
|
2673
|
-
}
|
2674
|
-
|
2675
|
-
|
2676
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2677
|
-
SWIGINTERN VALUE
|
2678
|
-
_wrap_Picture_allocate(VALUE self) {
|
2679
|
-
#else
|
2680
|
-
SWIGINTERN VALUE
|
2681
|
-
_wrap_Picture_allocate(int argc, VALUE *argv, VALUE self) {
|
2682
|
-
#endif
|
2683
|
-
|
2684
|
-
|
2685
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__FLAC__Picture);
|
2686
|
-
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2687
|
-
rb_obj_call_init(vresult, argc, argv);
|
2688
|
-
#endif
|
2689
|
-
return vresult;
|
2690
|
-
}
|
2691
|
-
|
2692
|
-
|
2693
|
-
SWIGINTERN VALUE
|
2694
|
-
_wrap_new_Picture__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2695
|
-
TagLib::ByteVector *arg1 = 0 ;
|
2696
|
-
TagLib::ByteVector tmp1 ;
|
2697
|
-
TagLib::FLAC::Picture *result = 0 ;
|
2698
|
-
|
2699
|
-
if ((argc < 1) || (argc > 1)) {
|
2700
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2701
|
-
}
|
2702
|
-
{
|
2703
|
-
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2704
|
-
arg1 = &tmp1;
|
2705
|
-
}
|
2706
|
-
result = (TagLib::FLAC::Picture *)new TagLib::FLAC::Picture((TagLib::ByteVector const &)*arg1);
|
2707
|
-
DATA_PTR(self) = result;
|
2708
|
-
SWIG_RubyAddTracking(result, self);
|
2709
|
-
return self;
|
2710
|
-
fail:
|
2711
|
-
return Qnil;
|
2712
|
-
}
|
2713
|
-
|
2714
|
-
|
2715
|
-
SWIGINTERN VALUE _wrap_new_Picture(int nargs, VALUE *args, VALUE self) {
|
2716
|
-
int argc;
|
2717
|
-
VALUE argv[1];
|
2718
|
-
int ii;
|
2719
|
-
|
2720
|
-
argc = nargs;
|
2721
|
-
if (argc > 1) SWIG_fail;
|
2722
|
-
for (ii = 0; (ii < argc); ++ii) {
|
2723
|
-
argv[ii] = args[ii];
|
2724
|
-
}
|
2725
|
-
if (argc == 0) {
|
2726
|
-
return _wrap_new_Picture__SWIG_0(nargs, args, self);
|
2727
|
-
}
|
2728
|
-
if (argc == 1) {
|
2729
|
-
int _v;
|
2730
|
-
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2731
|
-
_v = SWIG_CheckState(res);
|
2732
|
-
if (_v) {
|
2733
|
-
return _wrap_new_Picture__SWIG_1(nargs, args, self);
|
2734
|
-
}
|
2735
|
-
}
|
2736
|
-
|
2737
|
-
fail:
|
2738
|
-
Ruby_Format_OverloadedError( argc, 1, "Picture.new",
|
2739
|
-
" Picture.new()\n"
|
2740
|
-
" Picture.new(TagLib::ByteVector const &data)\n");
|
2741
|
-
|
2742
|
-
return Qnil;
|
2743
|
-
}
|
2744
|
-
|
2745
|
-
|
2746
|
-
SWIGINTERN void
|
2747
|
-
free_TagLib_FLAC_Picture(TagLib::FLAC::Picture *arg1) {
|
2748
|
-
SWIG_RubyRemoveTracking(arg1);
|
2749
|
-
delete arg1;
|
2750
|
-
}
|
2751
|
-
|
2752
|
-
SWIGINTERN VALUE
|
2753
|
-
_wrap_Picture_type(int argc, VALUE *argv, VALUE self) {
|
2754
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2755
|
-
void *argp1 = 0 ;
|
2756
|
-
int res1 = 0 ;
|
2757
|
-
TagLib::FLAC::Picture::Type result;
|
2758
|
-
VALUE vresult = Qnil;
|
2759
|
-
|
2760
|
-
if ((argc < 0) || (argc > 0)) {
|
2761
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2762
|
-
}
|
2763
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2764
|
-
if (!SWIG_IsOK(res1)) {
|
2765
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","type", 1, self ));
|
2766
|
-
}
|
2767
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2768
|
-
result = (TagLib::FLAC::Picture::Type)((TagLib::FLAC::Picture const *)arg1)->type();
|
2769
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2770
|
-
return vresult;
|
2771
|
-
fail:
|
2772
|
-
return Qnil;
|
2773
|
-
}
|
2774
|
-
|
2775
|
-
|
2776
|
-
SWIGINTERN VALUE
|
2777
|
-
_wrap_Picture_typee___(int argc, VALUE *argv, VALUE self) {
|
2778
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2779
|
-
TagLib::FLAC::Picture::Type arg2 ;
|
2780
|
-
void *argp1 = 0 ;
|
2781
|
-
int res1 = 0 ;
|
2782
|
-
int val2 ;
|
2783
|
-
int ecode2 = 0 ;
|
2784
|
-
|
2785
|
-
if ((argc < 1) || (argc > 1)) {
|
2786
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2787
|
-
}
|
2788
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2789
|
-
if (!SWIG_IsOK(res1)) {
|
2790
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setType", 1, self ));
|
2791
|
-
}
|
2792
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2793
|
-
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2794
|
-
if (!SWIG_IsOK(ecode2)) {
|
2795
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture::Type","setType", 2, argv[0] ));
|
2796
|
-
}
|
2797
|
-
arg2 = static_cast< TagLib::FLAC::Picture::Type >(val2);
|
2798
|
-
(arg1)->setType(arg2);
|
2799
|
-
return Qnil;
|
2800
|
-
fail:
|
2801
|
-
return Qnil;
|
2802
|
-
}
|
2803
|
-
|
2804
|
-
|
2805
|
-
SWIGINTERN VALUE
|
2806
|
-
_wrap_Picture_mime_type(int argc, VALUE *argv, VALUE self) {
|
2807
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2808
|
-
void *argp1 = 0 ;
|
2809
|
-
int res1 = 0 ;
|
2810
|
-
TagLib::String result;
|
2811
|
-
VALUE vresult = Qnil;
|
2812
|
-
|
2813
|
-
if ((argc < 0) || (argc > 0)) {
|
2814
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2815
|
-
}
|
2816
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2817
|
-
if (!SWIG_IsOK(res1)) {
|
2818
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","mimeType", 1, self ));
|
2819
|
-
}
|
2820
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2821
|
-
result = ((TagLib::FLAC::Picture const *)arg1)->mimeType();
|
2822
|
-
{
|
2823
|
-
vresult = taglib_string_to_ruby_string(result);
|
2824
|
-
}
|
2825
|
-
return vresult;
|
2826
|
-
fail:
|
2827
|
-
return Qnil;
|
2828
|
-
}
|
2829
|
-
|
2830
|
-
|
2831
|
-
SWIGINTERN VALUE
|
2832
|
-
_wrap_Picture_mime_typee___(int argc, VALUE *argv, VALUE self) {
|
2833
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2834
|
-
TagLib::String *arg2 = 0 ;
|
2835
|
-
void *argp1 = 0 ;
|
2836
|
-
int res1 = 0 ;
|
2837
|
-
TagLib::String tmp2 ;
|
2838
|
-
|
2839
|
-
if ((argc < 1) || (argc > 1)) {
|
2840
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2841
|
-
}
|
2842
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2843
|
-
if (!SWIG_IsOK(res1)) {
|
2844
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setMimeType", 1, self ));
|
2845
|
-
}
|
2846
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2847
|
-
{
|
2848
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
2849
|
-
arg2 = &tmp2;
|
2850
|
-
}
|
2851
|
-
(arg1)->setMimeType((TagLib::String const &)*arg2);
|
2852
|
-
return Qnil;
|
2853
|
-
fail:
|
2854
|
-
return Qnil;
|
2855
|
-
}
|
2856
|
-
|
2857
|
-
|
2858
|
-
SWIGINTERN VALUE
|
2859
|
-
_wrap_Picture_description(int argc, VALUE *argv, VALUE self) {
|
2860
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2861
|
-
void *argp1 = 0 ;
|
2862
|
-
int res1 = 0 ;
|
2863
|
-
TagLib::String result;
|
2864
|
-
VALUE vresult = Qnil;
|
2865
|
-
|
2866
|
-
if ((argc < 0) || (argc > 0)) {
|
2867
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2868
|
-
}
|
2869
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2870
|
-
if (!SWIG_IsOK(res1)) {
|
2871
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","description", 1, self ));
|
2872
|
-
}
|
2873
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2874
|
-
result = ((TagLib::FLAC::Picture const *)arg1)->description();
|
2875
|
-
{
|
2876
|
-
vresult = taglib_string_to_ruby_string(result);
|
2877
|
-
}
|
2878
|
-
return vresult;
|
2879
|
-
fail:
|
2880
|
-
return Qnil;
|
2881
|
-
}
|
2882
|
-
|
2883
|
-
|
2884
|
-
SWIGINTERN VALUE
|
2885
|
-
_wrap_Picture_descriptione___(int argc, VALUE *argv, VALUE self) {
|
2886
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2887
|
-
TagLib::String *arg2 = 0 ;
|
2888
|
-
void *argp1 = 0 ;
|
2889
|
-
int res1 = 0 ;
|
2890
|
-
TagLib::String tmp2 ;
|
2891
|
-
|
2892
|
-
if ((argc < 1) || (argc > 1)) {
|
2893
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2894
|
-
}
|
2895
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2896
|
-
if (!SWIG_IsOK(res1)) {
|
2897
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setDescription", 1, self ));
|
2898
|
-
}
|
2899
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2900
|
-
{
|
2901
|
-
tmp2 = ruby_string_to_taglib_string(argv[0]);
|
2902
|
-
arg2 = &tmp2;
|
2903
|
-
}
|
2904
|
-
(arg1)->setDescription((TagLib::String const &)*arg2);
|
2905
|
-
return Qnil;
|
2906
|
-
fail:
|
2907
|
-
return Qnil;
|
2908
|
-
}
|
2909
|
-
|
2910
|
-
|
2911
|
-
SWIGINTERN VALUE
|
2912
|
-
_wrap_Picture_width(int argc, VALUE *argv, VALUE self) {
|
2913
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2914
|
-
void *argp1 = 0 ;
|
2915
|
-
int res1 = 0 ;
|
2916
|
-
int result;
|
2917
|
-
VALUE vresult = Qnil;
|
2918
|
-
|
2919
|
-
if ((argc < 0) || (argc > 0)) {
|
2920
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2921
|
-
}
|
2922
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2923
|
-
if (!SWIG_IsOK(res1)) {
|
2924
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","width", 1, self ));
|
2925
|
-
}
|
2926
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2927
|
-
result = (int)((TagLib::FLAC::Picture const *)arg1)->width();
|
2928
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2929
|
-
return vresult;
|
2930
|
-
fail:
|
2931
|
-
return Qnil;
|
2932
|
-
}
|
2933
|
-
|
2934
|
-
|
2935
|
-
SWIGINTERN VALUE
|
2936
|
-
_wrap_Picture_widthe___(int argc, VALUE *argv, VALUE self) {
|
2937
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2938
|
-
int arg2 ;
|
2939
|
-
void *argp1 = 0 ;
|
2940
|
-
int res1 = 0 ;
|
2941
|
-
int val2 ;
|
2942
|
-
int ecode2 = 0 ;
|
2943
|
-
|
2944
|
-
if ((argc < 1) || (argc > 1)) {
|
2945
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2946
|
-
}
|
2947
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2948
|
-
if (!SWIG_IsOK(res1)) {
|
2949
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setWidth", 1, self ));
|
2950
|
-
}
|
2951
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2952
|
-
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
2953
|
-
if (!SWIG_IsOK(ecode2)) {
|
2954
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setWidth", 2, argv[0] ));
|
2955
|
-
}
|
2956
|
-
arg2 = static_cast< int >(val2);
|
2957
|
-
(arg1)->setWidth(arg2);
|
2958
|
-
return Qnil;
|
2959
|
-
fail:
|
2960
|
-
return Qnil;
|
2961
|
-
}
|
2962
|
-
|
2963
|
-
|
2964
|
-
SWIGINTERN VALUE
|
2965
|
-
_wrap_Picture_height(int argc, VALUE *argv, VALUE self) {
|
2966
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2967
|
-
void *argp1 = 0 ;
|
2968
|
-
int res1 = 0 ;
|
2969
|
-
int result;
|
2970
|
-
VALUE vresult = Qnil;
|
2971
|
-
|
2972
|
-
if ((argc < 0) || (argc > 0)) {
|
2973
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2974
|
-
}
|
2975
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
2976
|
-
if (!SWIG_IsOK(res1)) {
|
2977
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","height", 1, self ));
|
2978
|
-
}
|
2979
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
2980
|
-
result = (int)((TagLib::FLAC::Picture const *)arg1)->height();
|
2981
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2982
|
-
return vresult;
|
2983
|
-
fail:
|
2984
|
-
return Qnil;
|
2985
|
-
}
|
2986
|
-
|
2987
|
-
|
2988
|
-
SWIGINTERN VALUE
|
2989
|
-
_wrap_Picture_heighte___(int argc, VALUE *argv, VALUE self) {
|
2990
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
2991
|
-
int arg2 ;
|
2992
|
-
void *argp1 = 0 ;
|
2993
|
-
int res1 = 0 ;
|
2994
|
-
int val2 ;
|
2995
|
-
int ecode2 = 0 ;
|
2996
|
-
|
2997
|
-
if ((argc < 1) || (argc > 1)) {
|
2998
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2999
|
-
}
|
3000
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
3001
|
-
if (!SWIG_IsOK(res1)) {
|
3002
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setHeight", 1, self ));
|
3003
|
-
}
|
3004
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3005
|
-
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3006
|
-
if (!SWIG_IsOK(ecode2)) {
|
3007
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setHeight", 2, argv[0] ));
|
3008
|
-
}
|
3009
|
-
arg2 = static_cast< int >(val2);
|
3010
|
-
(arg1)->setHeight(arg2);
|
3011
|
-
return Qnil;
|
3012
|
-
fail:
|
3013
|
-
return Qnil;
|
3014
|
-
}
|
3015
|
-
|
3016
|
-
|
3017
|
-
SWIGINTERN VALUE
|
3018
|
-
_wrap_Picture_color_depth(int argc, VALUE *argv, VALUE self) {
|
3019
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
3020
|
-
void *argp1 = 0 ;
|
3021
|
-
int res1 = 0 ;
|
3022
|
-
int result;
|
3023
|
-
VALUE vresult = Qnil;
|
3024
|
-
|
3025
|
-
if ((argc < 0) || (argc > 0)) {
|
3026
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3027
|
-
}
|
3028
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
3029
|
-
if (!SWIG_IsOK(res1)) {
|
3030
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture const *","colorDepth", 1, self ));
|
3031
|
-
}
|
3032
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3033
|
-
result = (int)((TagLib::FLAC::Picture const *)arg1)->colorDepth();
|
3034
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
3035
|
-
return vresult;
|
3036
|
-
fail:
|
3037
|
-
return Qnil;
|
3038
|
-
}
|
3039
|
-
|
3040
|
-
|
3041
|
-
SWIGINTERN VALUE
|
3042
|
-
_wrap_Picture_color_depthe___(int argc, VALUE *argv, VALUE self) {
|
3043
|
-
TagLib::FLAC::Picture *arg1 = (TagLib::FLAC::Picture *) 0 ;
|
3044
|
-
int arg2 ;
|
3045
|
-
void *argp1 = 0 ;
|
3046
|
-
int res1 = 0 ;
|
3047
|
-
int val2 ;
|
3048
|
-
int ecode2 = 0 ;
|
3049
|
-
|
3050
|
-
if ((argc < 1) || (argc > 1)) {
|
3051
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3052
|
-
}
|
3053
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Picture, 0 | 0 );
|
3054
|
-
if (!SWIG_IsOK(res1)) {
|
3055
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","setColorDepth", 1, self ));
|
3056
|
-
}
|
3057
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3058
|
-
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3059
|
-
if (!SWIG_IsOK(ecode2)) {
|
3060
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setColorDepth", 2, argv[0] ));
|
3061
|
-
}
|
3062
|
-
arg2 = static_cast< int >(val2);
|
3063
|
-
(arg1)->setColorDepth(arg2);
|
3064
|
-
return Qnil;
|
2478
|
+
if (!SWIG_IsOK(res1)) {
|
2479
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","lengthInSeconds", 1, self ));
|
2480
|
+
}
|
2481
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2482
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->lengthInSeconds();
|
2483
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
2484
|
+
return vresult;
|
3065
2485
|
fail:
|
3066
2486
|
return Qnil;
|
3067
2487
|
}
|
3068
2488
|
|
3069
2489
|
|
3070
2490
|
SWIGINTERN VALUE
|
3071
|
-
|
3072
|
-
TagLib::FLAC::
|
2491
|
+
_wrap_Properties_length_in_milliseconds(int argc, VALUE *argv, VALUE self) {
|
2492
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3073
2493
|
void *argp1 = 0 ;
|
3074
2494
|
int res1 = 0 ;
|
3075
2495
|
int result;
|
@@ -3078,12 +2498,12 @@ _wrap_Picture_num_colors(int argc, VALUE *argv, VALUE self) {
|
|
3078
2498
|
if ((argc < 0) || (argc > 0)) {
|
3079
2499
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3080
2500
|
}
|
3081
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2501
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3082
2502
|
if (!SWIG_IsOK(res1)) {
|
3083
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
2503
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","lengthInMilliseconds", 1, self ));
|
3084
2504
|
}
|
3085
|
-
arg1 = reinterpret_cast< TagLib::FLAC::
|
3086
|
-
result = (int)((TagLib::FLAC::
|
2505
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2506
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->lengthInMilliseconds();
|
3087
2507
|
vresult = SWIG_From_int(static_cast< int >(result));
|
3088
2508
|
return vresult;
|
3089
2509
|
fail:
|
@@ -3092,54 +2512,47 @@ fail:
|
|
3092
2512
|
|
3093
2513
|
|
3094
2514
|
SWIGINTERN VALUE
|
3095
|
-
|
3096
|
-
TagLib::FLAC::
|
3097
|
-
int arg2 ;
|
2515
|
+
_wrap_Properties_bitrate(int argc, VALUE *argv, VALUE self) {
|
2516
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3098
2517
|
void *argp1 = 0 ;
|
3099
2518
|
int res1 = 0 ;
|
3100
|
-
int
|
3101
|
-
|
2519
|
+
int result;
|
2520
|
+
VALUE vresult = Qnil;
|
3102
2521
|
|
3103
|
-
if ((argc <
|
3104
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2522
|
+
if ((argc < 0) || (argc > 0)) {
|
2523
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3105
2524
|
}
|
3106
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2525
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3107
2526
|
if (!SWIG_IsOK(res1)) {
|
3108
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
2527
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","bitrate", 1, self ));
|
3109
2528
|
}
|
3110
|
-
arg1 = reinterpret_cast< TagLib::FLAC::
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
}
|
3115
|
-
arg2 = static_cast< int >(val2);
|
3116
|
-
(arg1)->setNumColors(arg2);
|
3117
|
-
return Qnil;
|
2529
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2530
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->bitrate();
|
2531
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
2532
|
+
return vresult;
|
3118
2533
|
fail:
|
3119
2534
|
return Qnil;
|
3120
2535
|
}
|
3121
2536
|
|
3122
2537
|
|
3123
2538
|
SWIGINTERN VALUE
|
3124
|
-
|
3125
|
-
TagLib::FLAC::
|
2539
|
+
_wrap_Properties_sample_rate(int argc, VALUE *argv, VALUE self) {
|
2540
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3126
2541
|
void *argp1 = 0 ;
|
3127
2542
|
int res1 = 0 ;
|
3128
|
-
|
2543
|
+
int result;
|
3129
2544
|
VALUE vresult = Qnil;
|
3130
2545
|
|
3131
2546
|
if ((argc < 0) || (argc > 0)) {
|
3132
2547
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3133
2548
|
}
|
3134
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2549
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3135
2550
|
if (!SWIG_IsOK(res1)) {
|
3136
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
3137
|
-
}
|
3138
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3139
|
-
result = ((TagLib::FLAC::Picture const *)arg1)->data();
|
3140
|
-
{
|
3141
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
2551
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","sampleRate", 1, self ));
|
3142
2552
|
}
|
2553
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2554
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->sampleRate();
|
2555
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
3143
2556
|
return vresult;
|
3144
2557
|
fail:
|
3145
2558
|
return Qnil;
|
@@ -3147,35 +2560,32 @@ fail:
|
|
3147
2560
|
|
3148
2561
|
|
3149
2562
|
SWIGINTERN VALUE
|
3150
|
-
|
3151
|
-
TagLib::FLAC::
|
3152
|
-
TagLib::ByteVector *arg2 = 0 ;
|
2563
|
+
_wrap_Properties_channels(int argc, VALUE *argv, VALUE self) {
|
2564
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3153
2565
|
void *argp1 = 0 ;
|
3154
2566
|
int res1 = 0 ;
|
3155
|
-
|
2567
|
+
int result;
|
2568
|
+
VALUE vresult = Qnil;
|
3156
2569
|
|
3157
|
-
if ((argc <
|
3158
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2570
|
+
if ((argc < 0) || (argc > 0)) {
|
2571
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3159
2572
|
}
|
3160
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2573
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3161
2574
|
if (!SWIG_IsOK(res1)) {
|
3162
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
3163
|
-
}
|
3164
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3165
|
-
{
|
3166
|
-
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
3167
|
-
arg2 = &tmp2;
|
2575
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","channels", 1, self ));
|
3168
2576
|
}
|
3169
|
-
|
3170
|
-
|
2577
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2578
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->channels();
|
2579
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
2580
|
+
return vresult;
|
3171
2581
|
fail:
|
3172
2582
|
return Qnil;
|
3173
2583
|
}
|
3174
2584
|
|
3175
2585
|
|
3176
2586
|
SWIGINTERN VALUE
|
3177
|
-
|
3178
|
-
TagLib::FLAC::
|
2587
|
+
_wrap_Properties_bits_per_sample(int argc, VALUE *argv, VALUE self) {
|
2588
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3179
2589
|
void *argp1 = 0 ;
|
3180
2590
|
int res1 = 0 ;
|
3181
2591
|
int result;
|
@@ -3184,12 +2594,12 @@ _wrap_Picture_code(int argc, VALUE *argv, VALUE self) {
|
|
3184
2594
|
if ((argc < 0) || (argc > 0)) {
|
3185
2595
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3186
2596
|
}
|
3187
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2597
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3188
2598
|
if (!SWIG_IsOK(res1)) {
|
3189
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
2599
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","bitsPerSample", 1, self ));
|
3190
2600
|
}
|
3191
|
-
arg1 = reinterpret_cast< TagLib::FLAC::
|
3192
|
-
result = (int)((TagLib::FLAC::
|
2601
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2602
|
+
result = (int)((TagLib::FLAC::Properties const *)arg1)->bitsPerSample();
|
3193
2603
|
vresult = SWIG_From_int(static_cast< int >(result));
|
3194
2604
|
return vresult;
|
3195
2605
|
fail:
|
@@ -3198,25 +2608,23 @@ fail:
|
|
3198
2608
|
|
3199
2609
|
|
3200
2610
|
SWIGINTERN VALUE
|
3201
|
-
|
3202
|
-
TagLib::FLAC::
|
2611
|
+
_wrap_Properties_sample_frames(int argc, VALUE *argv, VALUE self) {
|
2612
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3203
2613
|
void *argp1 = 0 ;
|
3204
2614
|
int res1 = 0 ;
|
3205
|
-
|
2615
|
+
unsigned long long result;
|
3206
2616
|
VALUE vresult = Qnil;
|
3207
2617
|
|
3208
2618
|
if ((argc < 0) || (argc > 0)) {
|
3209
2619
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3210
2620
|
}
|
3211
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2621
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3212
2622
|
if (!SWIG_IsOK(res1)) {
|
3213
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
3214
|
-
}
|
3215
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Picture * >(argp1);
|
3216
|
-
result = ((TagLib::FLAC::Picture const *)arg1)->render();
|
3217
|
-
{
|
3218
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
2623
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","sampleFrames", 1, self ));
|
3219
2624
|
}
|
2625
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2626
|
+
result = (unsigned long long)((TagLib::FLAC::Properties const *)arg1)->sampleFrames();
|
2627
|
+
vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
|
3220
2628
|
return vresult;
|
3221
2629
|
fail:
|
3222
2630
|
return Qnil;
|
@@ -3224,29 +2632,25 @@ fail:
|
|
3224
2632
|
|
3225
2633
|
|
3226
2634
|
SWIGINTERN VALUE
|
3227
|
-
|
3228
|
-
TagLib::FLAC::
|
3229
|
-
TagLib::ByteVector *arg2 = 0 ;
|
2635
|
+
_wrap_Properties_signature(int argc, VALUE *argv, VALUE self) {
|
2636
|
+
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
3230
2637
|
void *argp1 = 0 ;
|
3231
2638
|
int res1 = 0 ;
|
3232
|
-
TagLib::ByteVector
|
3233
|
-
bool result;
|
2639
|
+
TagLib::ByteVector result;
|
3234
2640
|
VALUE vresult = Qnil;
|
3235
2641
|
|
3236
|
-
if ((argc <
|
3237
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2642
|
+
if ((argc < 0) || (argc > 0)) {
|
2643
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3238
2644
|
}
|
3239
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
2645
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
3240
2646
|
if (!SWIG_IsOK(res1)) {
|
3241
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::
|
2647
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","signature", 1, self ));
|
3242
2648
|
}
|
3243
|
-
arg1 = reinterpret_cast< TagLib::FLAC::
|
2649
|
+
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2650
|
+
result = ((TagLib::FLAC::Properties const *)arg1)->signature();
|
3244
2651
|
{
|
3245
|
-
|
3246
|
-
arg2 = &tmp2;
|
2652
|
+
vresult = taglib_bytevector_to_ruby_string(result);
|
3247
2653
|
}
|
3248
|
-
result = (bool)(arg1)->parse((TagLib::ByteVector const &)*arg2);
|
3249
|
-
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3250
2654
|
return vresult;
|
3251
2655
|
fail:
|
3252
2656
|
return Qnil;
|
@@ -3257,7 +2661,7 @@ static swig_class SwigClassFile;
|
|
3257
2661
|
|
3258
2662
|
SWIGINTERN VALUE
|
3259
2663
|
_wrap_new_File__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3260
|
-
|
2664
|
+
TagLib::FileName arg1 ;
|
3261
2665
|
bool arg2 ;
|
3262
2666
|
TagLib::FLAC::Properties::ReadStyle arg3 ;
|
3263
2667
|
bool val2 ;
|
@@ -3296,7 +2700,7 @@ fail:
|
|
3296
2700
|
|
3297
2701
|
SWIGINTERN VALUE
|
3298
2702
|
_wrap_new_File__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3299
|
-
|
2703
|
+
TagLib::FileName arg1 ;
|
3300
2704
|
bool arg2 ;
|
3301
2705
|
bool val2 ;
|
3302
2706
|
int ecode2 = 0 ;
|
@@ -3327,7 +2731,7 @@ fail:
|
|
3327
2731
|
|
3328
2732
|
SWIGINTERN VALUE
|
3329
2733
|
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
3330
|
-
|
2734
|
+
TagLib::FileName arg1 ;
|
3331
2735
|
TagLib::FLAC::File *result = 0 ;
|
3332
2736
|
|
3333
2737
|
if ((argc < 1) || (argc > 1)) {
|
@@ -3350,7 +2754,7 @@ fail:
|
|
3350
2754
|
|
3351
2755
|
SWIGINTERN VALUE
|
3352
2756
|
_wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
3353
|
-
|
2757
|
+
TagLib::FileName arg1 ;
|
3354
2758
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3355
2759
|
bool arg3 ;
|
3356
2760
|
TagLib::FLAC::Properties::ReadStyle arg4 ;
|
@@ -3397,7 +2801,7 @@ fail:
|
|
3397
2801
|
|
3398
2802
|
SWIGINTERN VALUE
|
3399
2803
|
_wrap_new_File__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
3400
|
-
|
2804
|
+
TagLib::FileName arg1 ;
|
3401
2805
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3402
2806
|
bool arg3 ;
|
3403
2807
|
void *argp2 = 0 ;
|
@@ -3453,7 +2857,7 @@ _wrap_File_allocate(VALUE self) {
|
|
3453
2857
|
|
3454
2858
|
SWIGINTERN VALUE
|
3455
2859
|
_wrap_new_File__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
3456
|
-
|
2860
|
+
TagLib::FileName arg1 ;
|
3457
2861
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3458
2862
|
void *argp2 = 0 ;
|
3459
2863
|
int res2 = 0 ;
|
@@ -4085,6 +3489,35 @@ fail:
|
|
4085
3489
|
}
|
4086
3490
|
|
4087
3491
|
|
3492
|
+
SWIGINTERN VALUE
|
3493
|
+
_wrap_File_remove_picture(int argc, VALUE *argv, VALUE self) {
|
3494
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3495
|
+
TagLib::FLAC::Picture *arg2 = (TagLib::FLAC::Picture *) 0 ;
|
3496
|
+
void *argp1 = 0 ;
|
3497
|
+
int res1 = 0 ;
|
3498
|
+
int res2 = 0 ;
|
3499
|
+
|
3500
|
+
if ((argc < 1) || (argc > 1)) {
|
3501
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3502
|
+
}
|
3503
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3504
|
+
if (!SWIG_IsOK(res1)) {
|
3505
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","removePicture", 1, self ));
|
3506
|
+
}
|
3507
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3508
|
+
res2 = SWIG_ConvertPtr(argv[0], SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_TagLib__FLAC__Picture, SWIG_POINTER_DISOWN | 0 );
|
3509
|
+
if (!SWIG_IsOK(res2)) {
|
3510
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::FLAC::Picture *","removePicture", 2, argv[0] ));
|
3511
|
+
}
|
3512
|
+
SWIG_RubyUnlinkObjects(arg2);
|
3513
|
+
SWIG_RubyRemoveTracking(arg2);
|
3514
|
+
(arg1)->removePicture(arg2);
|
3515
|
+
return Qnil;
|
3516
|
+
fail:
|
3517
|
+
return Qnil;
|
3518
|
+
}
|
3519
|
+
|
3520
|
+
|
4088
3521
|
SWIGINTERN VALUE
|
4089
3522
|
_wrap_File_remove_pictures(int argc, VALUE *argv, VALUE self) {
|
4090
3523
|
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
@@ -4135,6 +3568,173 @@ fail:
|
|
4135
3568
|
}
|
4136
3569
|
|
4137
3570
|
|
3571
|
+
SWIGINTERN VALUE
|
3572
|
+
_wrap_File_strip__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3573
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3574
|
+
int arg2 ;
|
3575
|
+
void *argp1 = 0 ;
|
3576
|
+
int res1 = 0 ;
|
3577
|
+
int val2 ;
|
3578
|
+
int ecode2 = 0 ;
|
3579
|
+
|
3580
|
+
if ((argc < 1) || (argc > 1)) {
|
3581
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3582
|
+
}
|
3583
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3584
|
+
if (!SWIG_IsOK(res1)) {
|
3585
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","strip", 1, self ));
|
3586
|
+
}
|
3587
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3588
|
+
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
3589
|
+
if (!SWIG_IsOK(ecode2)) {
|
3590
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","strip", 2, argv[0] ));
|
3591
|
+
}
|
3592
|
+
arg2 = static_cast< int >(val2);
|
3593
|
+
(arg1)->strip(arg2);
|
3594
|
+
return Qnil;
|
3595
|
+
fail:
|
3596
|
+
return Qnil;
|
3597
|
+
}
|
3598
|
+
|
3599
|
+
|
3600
|
+
SWIGINTERN VALUE
|
3601
|
+
_wrap_File_strip__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
3602
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3603
|
+
void *argp1 = 0 ;
|
3604
|
+
int res1 = 0 ;
|
3605
|
+
|
3606
|
+
if ((argc < 0) || (argc > 0)) {
|
3607
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3608
|
+
}
|
3609
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3610
|
+
if (!SWIG_IsOK(res1)) {
|
3611
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","strip", 1, self ));
|
3612
|
+
}
|
3613
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3614
|
+
(arg1)->strip();
|
3615
|
+
return Qnil;
|
3616
|
+
fail:
|
3617
|
+
return Qnil;
|
3618
|
+
}
|
3619
|
+
|
3620
|
+
|
3621
|
+
SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
3622
|
+
int argc;
|
3623
|
+
VALUE argv[3];
|
3624
|
+
int ii;
|
3625
|
+
|
3626
|
+
argc = nargs + 1;
|
3627
|
+
argv[0] = self;
|
3628
|
+
if (argc > 3) SWIG_fail;
|
3629
|
+
for (ii = 1; (ii < argc); ++ii) {
|
3630
|
+
argv[ii] = args[ii-1];
|
3631
|
+
}
|
3632
|
+
if (argc == 1) {
|
3633
|
+
int _v;
|
3634
|
+
void *vptr = 0;
|
3635
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3636
|
+
_v = SWIG_CheckState(res);
|
3637
|
+
if (_v) {
|
3638
|
+
return _wrap_File_strip__SWIG_1(nargs, args, self);
|
3639
|
+
}
|
3640
|
+
}
|
3641
|
+
if (argc == 2) {
|
3642
|
+
int _v;
|
3643
|
+
void *vptr = 0;
|
3644
|
+
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3645
|
+
_v = SWIG_CheckState(res);
|
3646
|
+
if (_v) {
|
3647
|
+
{
|
3648
|
+
int res = SWIG_AsVal_int(argv[1], NULL);
|
3649
|
+
_v = SWIG_CheckState(res);
|
3650
|
+
}
|
3651
|
+
if (_v) {
|
3652
|
+
return _wrap_File_strip__SWIG_0(nargs, args, self);
|
3653
|
+
}
|
3654
|
+
}
|
3655
|
+
}
|
3656
|
+
|
3657
|
+
fail:
|
3658
|
+
Ruby_Format_OverloadedError( argc, 3, "File.strip",
|
3659
|
+
" void File.strip(int tags)\n"
|
3660
|
+
" void File.strip()\n");
|
3661
|
+
|
3662
|
+
return Qnil;
|
3663
|
+
}
|
3664
|
+
|
3665
|
+
|
3666
|
+
SWIGINTERN VALUE
|
3667
|
+
_wrap_File_xiph_commentq___(int argc, VALUE *argv, VALUE self) {
|
3668
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3669
|
+
void *argp1 = 0 ;
|
3670
|
+
int res1 = 0 ;
|
3671
|
+
bool result;
|
3672
|
+
VALUE vresult = Qnil;
|
3673
|
+
|
3674
|
+
if ((argc < 0) || (argc > 0)) {
|
3675
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3676
|
+
}
|
3677
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3678
|
+
if (!SWIG_IsOK(res1)) {
|
3679
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File const *","hasXiphComment", 1, self ));
|
3680
|
+
}
|
3681
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3682
|
+
result = (bool)((TagLib::FLAC::File const *)arg1)->hasXiphComment();
|
3683
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3684
|
+
return vresult;
|
3685
|
+
fail:
|
3686
|
+
return Qnil;
|
3687
|
+
}
|
3688
|
+
|
3689
|
+
|
3690
|
+
SWIGINTERN VALUE
|
3691
|
+
_wrap_File_id3v1_tagq___(int argc, VALUE *argv, VALUE self) {
|
3692
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3693
|
+
void *argp1 = 0 ;
|
3694
|
+
int res1 = 0 ;
|
3695
|
+
bool result;
|
3696
|
+
VALUE vresult = Qnil;
|
3697
|
+
|
3698
|
+
if ((argc < 0) || (argc > 0)) {
|
3699
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3700
|
+
}
|
3701
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3702
|
+
if (!SWIG_IsOK(res1)) {
|
3703
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File const *","hasID3v1Tag", 1, self ));
|
3704
|
+
}
|
3705
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3706
|
+
result = (bool)((TagLib::FLAC::File const *)arg1)->hasID3v1Tag();
|
3707
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3708
|
+
return vresult;
|
3709
|
+
fail:
|
3710
|
+
return Qnil;
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
|
3714
|
+
SWIGINTERN VALUE
|
3715
|
+
_wrap_File_id3v2_tagq___(int argc, VALUE *argv, VALUE self) {
|
3716
|
+
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3717
|
+
void *argp1 = 0 ;
|
3718
|
+
int res1 = 0 ;
|
3719
|
+
bool result;
|
3720
|
+
VALUE vresult = Qnil;
|
3721
|
+
|
3722
|
+
if ((argc < 0) || (argc > 0)) {
|
3723
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3724
|
+
}
|
3725
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3726
|
+
if (!SWIG_IsOK(res1)) {
|
3727
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File const *","hasID3v2Tag", 1, self ));
|
3728
|
+
}
|
3729
|
+
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3730
|
+
result = (bool)((TagLib::FLAC::File const *)arg1)->hasID3v2Tag();
|
3731
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
3732
|
+
return vresult;
|
3733
|
+
fail:
|
3734
|
+
return Qnil;
|
3735
|
+
}
|
3736
|
+
|
3737
|
+
|
4138
3738
|
SWIGINTERN VALUE
|
4139
3739
|
_wrap_File_close(int argc, VALUE *argv, VALUE self) {
|
4140
3740
|
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
@@ -4165,13 +3765,9 @@ static void *_p_TagLib__FLAC__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM
|
|
4165
3765
|
static void *_p_TagLib__FLAC__PropertiesTo_p_TagLib__AudioProperties(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
4166
3766
|
return (void *)((TagLib::AudioProperties *) ((TagLib::FLAC::Properties *) x));
|
4167
3767
|
}
|
4168
|
-
static void *_p_TagLib__FLAC__PictureTo_p_TagLib__FLAC__MetadataBlock(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
4169
|
-
return (void *)((TagLib::FLAC::MetadataBlock *) ((TagLib::FLAC::Picture *) x));
|
4170
|
-
}
|
4171
3768
|
static swig_type_info _swigt__p_TagLib__AudioProperties = {"_p_TagLib__AudioProperties", "TagLib::AudioProperties *", 0, 0, (void*)0, 0};
|
4172
3769
|
static swig_type_info _swigt__p_TagLib__ByteVector = {"_p_TagLib__ByteVector", "TagLib::ByteVector *", 0, 0, (void*)0, 0};
|
4173
3770
|
static swig_type_info _swigt__p_TagLib__FLAC__File = {"_p_TagLib__FLAC__File", "TagLib::FLAC::File *", 0, 0, (void*)0, 0};
|
4174
|
-
static swig_type_info _swigt__p_TagLib__FLAC__MetadataBlock = {"_p_TagLib__FLAC__MetadataBlock", "TagLib::FLAC::MetadataBlock *", 0, 0, (void*)0, 0};
|
4175
3771
|
static swig_type_info _swigt__p_TagLib__FLAC__Picture = {"_p_TagLib__FLAC__Picture", "TagLib::FLAC::Picture *", 0, 0, (void*)0, 0};
|
4176
3772
|
static swig_type_info _swigt__p_TagLib__FLAC__Properties = {"_p_TagLib__FLAC__Properties", "TagLib::FLAC::Properties *", 0, 0, (void*)0, 0};
|
4177
3773
|
static swig_type_info _swigt__p_TagLib__File = {"_p_TagLib__File", "TagLib::File *", 0, 0, (void*)0, 0};
|
@@ -4191,7 +3787,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
4191
3787
|
&_swigt__p_TagLib__AudioProperties,
|
4192
3788
|
&_swigt__p_TagLib__ByteVector,
|
4193
3789
|
&_swigt__p_TagLib__FLAC__File,
|
4194
|
-
&_swigt__p_TagLib__FLAC__MetadataBlock,
|
4195
3790
|
&_swigt__p_TagLib__FLAC__Picture,
|
4196
3791
|
&_swigt__p_TagLib__FLAC__Properties,
|
4197
3792
|
&_swigt__p_TagLib__File,
|
@@ -4211,7 +3806,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
4211
3806
|
static swig_cast_info _swigc__p_TagLib__AudioProperties[] = { {&_swigt__p_TagLib__AudioProperties, 0, 0, 0}, {&_swigt__p_TagLib__FLAC__Properties, _p_TagLib__FLAC__PropertiesTo_p_TagLib__AudioProperties, 0, 0},{0, 0, 0, 0}};
|
4212
3807
|
static swig_cast_info _swigc__p_TagLib__ByteVector[] = { {&_swigt__p_TagLib__ByteVector, 0, 0, 0},{0, 0, 0, 0}};
|
4213
3808
|
static swig_cast_info _swigc__p_TagLib__FLAC__File[] = { {&_swigt__p_TagLib__FLAC__File, 0, 0, 0},{0, 0, 0, 0}};
|
4214
|
-
static swig_cast_info _swigc__p_TagLib__FLAC__MetadataBlock[] = { {&_swigt__p_TagLib__FLAC__MetadataBlock, 0, 0, 0}, {&_swigt__p_TagLib__FLAC__Picture, _p_TagLib__FLAC__PictureTo_p_TagLib__FLAC__MetadataBlock, 0, 0},{0, 0, 0, 0}};
|
4215
3809
|
static swig_cast_info _swigc__p_TagLib__FLAC__Picture[] = { {&_swigt__p_TagLib__FLAC__Picture, 0, 0, 0},{0, 0, 0, 0}};
|
4216
3810
|
static swig_cast_info _swigc__p_TagLib__FLAC__Properties[] = { {&_swigt__p_TagLib__FLAC__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
4217
3811
|
static swig_cast_info _swigc__p_TagLib__File[] = { {&_swigt__p_TagLib__FLAC__File, _p_TagLib__FLAC__FileTo_p_TagLib__File, 0, 0}, {&_swigt__p_TagLib__File, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -4231,7 +3825,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4231
3825
|
_swigc__p_TagLib__AudioProperties,
|
4232
3826
|
_swigc__p_TagLib__ByteVector,
|
4233
3827
|
_swigc__p_TagLib__FLAC__File,
|
4234
|
-
_swigc__p_TagLib__FLAC__MetadataBlock,
|
4235
3828
|
_swigc__p_TagLib__FLAC__Picture,
|
4236
3829
|
_swigc__p_TagLib__FLAC__Properties,
|
4237
3830
|
_swigc__p_TagLib__File,
|
@@ -4502,89 +4095,33 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4502
4095
|
|
4503
4096
|
SWIG_RubyInitializeTrackings();
|
4504
4097
|
rb_require("taglib_base");
|
4098
|
+
rb_require("taglib_flac_picture");
|
4505
4099
|
|
4506
4100
|
SwigClassProperties.klass = rb_define_class_under(mFLAC, "Properties", ((swig_class *) SWIGTYPE_p_TagLib__AudioProperties->clientdata)->klass);
|
4507
4101
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__Properties, (void *) &SwigClassProperties);
|
4508
4102
|
rb_define_alloc_func(SwigClassProperties.klass, _wrap_Properties_allocate);
|
4509
4103
|
rb_define_method(SwigClassProperties.klass, "initialize", VALUEFUNC(_wrap_new_Properties), -1);
|
4510
|
-
rb_define_method(SwigClassProperties.klass, "
|
4104
|
+
rb_define_method(SwigClassProperties.klass, "length_in_seconds", VALUEFUNC(_wrap_Properties_length_in_seconds), -1);
|
4105
|
+
rb_define_method(SwigClassProperties.klass, "length_in_milliseconds", VALUEFUNC(_wrap_Properties_length_in_milliseconds), -1);
|
4511
4106
|
rb_define_method(SwigClassProperties.klass, "bitrate", VALUEFUNC(_wrap_Properties_bitrate), -1);
|
4512
4107
|
rb_define_method(SwigClassProperties.klass, "sample_rate", VALUEFUNC(_wrap_Properties_sample_rate), -1);
|
4513
4108
|
rb_define_method(SwigClassProperties.klass, "channels", VALUEFUNC(_wrap_Properties_channels), -1);
|
4514
|
-
rb_define_method(SwigClassProperties.klass, "
|
4109
|
+
rb_define_method(SwigClassProperties.klass, "bits_per_sample", VALUEFUNC(_wrap_Properties_bits_per_sample), -1);
|
4110
|
+
rb_define_method(SwigClassProperties.klass, "sample_frames", VALUEFUNC(_wrap_Properties_sample_frames), -1);
|
4515
4111
|
rb_define_method(SwigClassProperties.klass, "signature", VALUEFUNC(_wrap_Properties_signature), -1);
|
4516
4112
|
SwigClassProperties.mark = 0;
|
4517
4113
|
SwigClassProperties.destroy = (void (*)(void *)) free_TagLib_FLAC_Properties;
|
4518
4114
|
SwigClassProperties.trackObjects = 1;
|
4519
4115
|
|
4520
|
-
SwigClassMetadataBlock.klass = rb_define_class_under(mFLAC, "MetadataBlock", rb_cObject);
|
4521
|
-
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__MetadataBlock, (void *) &SwigClassMetadataBlock);
|
4522
|
-
rb_undef_alloc_func(SwigClassMetadataBlock.klass);
|
4523
|
-
rb_define_const(SwigClassMetadataBlock.klass, "StreamInfo", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::StreamInfo)));
|
4524
|
-
rb_define_const(SwigClassMetadataBlock.klass, "Padding", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::Padding)));
|
4525
|
-
rb_define_const(SwigClassMetadataBlock.klass, "Application", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::Application)));
|
4526
|
-
rb_define_const(SwigClassMetadataBlock.klass, "SeekTable", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::SeekTable)));
|
4527
|
-
rb_define_const(SwigClassMetadataBlock.klass, "VorbisComment", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::VorbisComment)));
|
4528
|
-
rb_define_const(SwigClassMetadataBlock.klass, "CueSheet", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::CueSheet)));
|
4529
|
-
rb_define_const(SwigClassMetadataBlock.klass, "Picture", SWIG_From_int(static_cast< int >(TagLib::FLAC::MetadataBlock::Picture)));
|
4530
|
-
rb_define_method(SwigClassMetadataBlock.klass, "code", VALUEFUNC(_wrap_MetadataBlock_code), -1);
|
4531
|
-
rb_define_method(SwigClassMetadataBlock.klass, "render", VALUEFUNC(_wrap_MetadataBlock_render), -1);
|
4532
|
-
SwigClassMetadataBlock.mark = 0;
|
4533
|
-
SwigClassMetadataBlock.destroy = (void (*)(void *)) free_TagLib_FLAC_MetadataBlock;
|
4534
|
-
SwigClassMetadataBlock.trackObjects = 1;
|
4535
|
-
|
4536
|
-
SwigClassPicture.klass = rb_define_class_under(mFLAC, "Picture", ((swig_class *) SWIGTYPE_p_TagLib__FLAC__MetadataBlock->clientdata)->klass);
|
4537
|
-
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__Picture, (void *) &SwigClassPicture);
|
4538
|
-
rb_define_alloc_func(SwigClassPicture.klass, _wrap_Picture_allocate);
|
4539
|
-
rb_define_method(SwigClassPicture.klass, "initialize", VALUEFUNC(_wrap_new_Picture), -1);
|
4540
|
-
rb_define_const(SwigClassPicture.klass, "Other", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Other)));
|
4541
|
-
rb_define_const(SwigClassPicture.klass, "FileIcon", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::FileIcon)));
|
4542
|
-
rb_define_const(SwigClassPicture.klass, "OtherFileIcon", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::OtherFileIcon)));
|
4543
|
-
rb_define_const(SwigClassPicture.klass, "FrontCover", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::FrontCover)));
|
4544
|
-
rb_define_const(SwigClassPicture.klass, "BackCover", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::BackCover)));
|
4545
|
-
rb_define_const(SwigClassPicture.klass, "LeafletPage", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::LeafletPage)));
|
4546
|
-
rb_define_const(SwigClassPicture.klass, "Media", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Media)));
|
4547
|
-
rb_define_const(SwigClassPicture.klass, "LeadArtist", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::LeadArtist)));
|
4548
|
-
rb_define_const(SwigClassPicture.klass, "Artist", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Artist)));
|
4549
|
-
rb_define_const(SwigClassPicture.klass, "Conductor", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Conductor)));
|
4550
|
-
rb_define_const(SwigClassPicture.klass, "Band", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Band)));
|
4551
|
-
rb_define_const(SwigClassPicture.klass, "Composer", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Composer)));
|
4552
|
-
rb_define_const(SwigClassPicture.klass, "Lyricist", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Lyricist)));
|
4553
|
-
rb_define_const(SwigClassPicture.klass, "RecordingLocation", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::RecordingLocation)));
|
4554
|
-
rb_define_const(SwigClassPicture.klass, "DuringRecording", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::DuringRecording)));
|
4555
|
-
rb_define_const(SwigClassPicture.klass, "DuringPerformance", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::DuringPerformance)));
|
4556
|
-
rb_define_const(SwigClassPicture.klass, "MovieScreenCapture", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::MovieScreenCapture)));
|
4557
|
-
rb_define_const(SwigClassPicture.klass, "ColouredFish", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::ColouredFish)));
|
4558
|
-
rb_define_const(SwigClassPicture.klass, "Illustration", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::Illustration)));
|
4559
|
-
rb_define_const(SwigClassPicture.klass, "BandLogo", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::BandLogo)));
|
4560
|
-
rb_define_const(SwigClassPicture.klass, "PublisherLogo", SWIG_From_int(static_cast< int >(TagLib::FLAC::Picture::PublisherLogo)));
|
4561
|
-
rb_define_method(SwigClassPicture.klass, "type", VALUEFUNC(_wrap_Picture_type), -1);
|
4562
|
-
rb_define_method(SwigClassPicture.klass, "type=", VALUEFUNC(_wrap_Picture_typee___), -1);
|
4563
|
-
rb_define_method(SwigClassPicture.klass, "mime_type", VALUEFUNC(_wrap_Picture_mime_type), -1);
|
4564
|
-
rb_define_method(SwigClassPicture.klass, "mime_type=", VALUEFUNC(_wrap_Picture_mime_typee___), -1);
|
4565
|
-
rb_define_method(SwigClassPicture.klass, "description", VALUEFUNC(_wrap_Picture_description), -1);
|
4566
|
-
rb_define_method(SwigClassPicture.klass, "description=", VALUEFUNC(_wrap_Picture_descriptione___), -1);
|
4567
|
-
rb_define_method(SwigClassPicture.klass, "width", VALUEFUNC(_wrap_Picture_width), -1);
|
4568
|
-
rb_define_method(SwigClassPicture.klass, "width=", VALUEFUNC(_wrap_Picture_widthe___), -1);
|
4569
|
-
rb_define_method(SwigClassPicture.klass, "height", VALUEFUNC(_wrap_Picture_height), -1);
|
4570
|
-
rb_define_method(SwigClassPicture.klass, "height=", VALUEFUNC(_wrap_Picture_heighte___), -1);
|
4571
|
-
rb_define_method(SwigClassPicture.klass, "color_depth", VALUEFUNC(_wrap_Picture_color_depth), -1);
|
4572
|
-
rb_define_method(SwigClassPicture.klass, "color_depth=", VALUEFUNC(_wrap_Picture_color_depthe___), -1);
|
4573
|
-
rb_define_method(SwigClassPicture.klass, "num_colors", VALUEFUNC(_wrap_Picture_num_colors), -1);
|
4574
|
-
rb_define_method(SwigClassPicture.klass, "num_colors=", VALUEFUNC(_wrap_Picture_num_colorse___), -1);
|
4575
|
-
rb_define_method(SwigClassPicture.klass, "data", VALUEFUNC(_wrap_Picture_data), -1);
|
4576
|
-
rb_define_method(SwigClassPicture.klass, "data=", VALUEFUNC(_wrap_Picture_datae___), -1);
|
4577
|
-
rb_define_method(SwigClassPicture.klass, "code", VALUEFUNC(_wrap_Picture_code), -1);
|
4578
|
-
rb_define_method(SwigClassPicture.klass, "render", VALUEFUNC(_wrap_Picture_render), -1);
|
4579
|
-
rb_define_method(SwigClassPicture.klass, "parse", VALUEFUNC(_wrap_Picture_parse), -1);
|
4580
|
-
SwigClassPicture.mark = 0;
|
4581
|
-
SwigClassPicture.destroy = (void (*)(void *)) free_TagLib_FLAC_Picture;
|
4582
|
-
SwigClassPicture.trackObjects = 1;
|
4583
|
-
|
4584
4116
|
SwigClassFile.klass = rb_define_class_under(mFLAC, "File", ((swig_class *) SWIGTYPE_p_TagLib__File->clientdata)->klass);
|
4585
4117
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__File, (void *) &SwigClassFile);
|
4586
4118
|
rb_define_alloc_func(SwigClassFile.klass, _wrap_File_allocate);
|
4587
4119
|
rb_define_method(SwigClassFile.klass, "initialize", VALUEFUNC(_wrap_new_File), -1);
|
4120
|
+
rb_define_const(SwigClassFile.klass, "NoTags", SWIG_From_int(static_cast< int >(TagLib::FLAC::File::NoTags)));
|
4121
|
+
rb_define_const(SwigClassFile.klass, "XiphComment", SWIG_From_int(static_cast< int >(TagLib::FLAC::File::XiphComment)));
|
4122
|
+
rb_define_const(SwigClassFile.klass, "ID3v1", SWIG_From_int(static_cast< int >(TagLib::FLAC::File::ID3v1)));
|
4123
|
+
rb_define_const(SwigClassFile.klass, "ID3v2", SWIG_From_int(static_cast< int >(TagLib::FLAC::File::ID3v2)));
|
4124
|
+
rb_define_const(SwigClassFile.klass, "AllTags", SWIG_From_int(static_cast< int >(TagLib::FLAC::File::AllTags)));
|
4588
4125
|
rb_define_method(SwigClassFile.klass, "tag", VALUEFUNC(_wrap_File_tag), -1);
|
4589
4126
|
rb_define_method(SwigClassFile.klass, "audio_properties", VALUEFUNC(_wrap_File_audio_properties), -1);
|
4590
4127
|
rb_define_method(SwigClassFile.klass, "save", VALUEFUNC(_wrap_File_save), -1);
|
@@ -4595,8 +4132,13 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4595
4132
|
rb_define_method(SwigClassFile.klass, "stream_info_data", VALUEFUNC(_wrap_File_stream_info_data), -1);
|
4596
4133
|
rb_define_method(SwigClassFile.klass, "stream_length", VALUEFUNC(_wrap_File_stream_length), -1);
|
4597
4134
|
rb_define_method(SwigClassFile.klass, "picture_list", VALUEFUNC(_wrap_File_picture_list), -1);
|
4135
|
+
rb_define_method(SwigClassFile.klass, "remove_picture", VALUEFUNC(_wrap_File_remove_picture), -1);
|
4598
4136
|
rb_define_method(SwigClassFile.klass, "remove_pictures", VALUEFUNC(_wrap_File_remove_pictures), -1);
|
4599
4137
|
rb_define_method(SwigClassFile.klass, "add_picture", VALUEFUNC(_wrap_File_add_picture), -1);
|
4138
|
+
rb_define_method(SwigClassFile.klass, "strip", VALUEFUNC(_wrap_File_strip), -1);
|
4139
|
+
rb_define_method(SwigClassFile.klass, "xiph_comment?", VALUEFUNC(_wrap_File_xiph_commentq___), -1);
|
4140
|
+
rb_define_method(SwigClassFile.klass, "id3v1_tag?", VALUEFUNC(_wrap_File_id3v1_tagq___), -1);
|
4141
|
+
rb_define_method(SwigClassFile.klass, "id3v2_tag?", VALUEFUNC(_wrap_File_id3v2_tagq___), -1);
|
4600
4142
|
rb_define_method(SwigClassFile.klass, "close", VALUEFUNC(_wrap_File_close), -1);
|
4601
4143
|
SwigClassFile.mark = 0;
|
4602
4144
|
SwigClassFile.destroy = (void (*)(void *)) free_taglib_flac_file;
|