taglib-ruby 1.1.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/CHANGELOG.md +22 -0
  4. data/README.md +16 -12
  5. data/docs/taglib/mpeg.rb +1 -9
  6. data/ext/extconf_common.rb +21 -12
  7. data/ext/taglib_aiff/taglib_aiff.i +5 -0
  8. data/ext/taglib_aiff/taglib_aiff_wrap.cxx +327 -111
  9. data/ext/taglib_base/includes.i +14 -14
  10. data/ext/taglib_base/taglib_base.i +37 -4
  11. data/ext/taglib_base/taglib_base_wrap.cxx +414 -422
  12. data/ext/taglib_flac/taglib_flac.i +8 -3
  13. data/ext/taglib_flac/taglib_flac_wrap.cxx +356 -406
  14. data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
  15. data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +229 -122
  16. data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +196 -102
  17. data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
  18. data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +727 -568
  19. data/ext/taglib_mp4/taglib_mp4.i +22 -18
  20. data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2141 -1493
  21. data/ext/taglib_mpeg/taglib_mpeg.i +6 -0
  22. data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +546 -379
  23. data/ext/taglib_ogg/taglib_ogg.i +0 -2
  24. data/ext/taglib_ogg/taglib_ogg_wrap.cxx +162 -107
  25. data/ext/taglib_vorbis/taglib_vorbis.i +1 -0
  26. data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +141 -109
  27. data/ext/taglib_wav/taglib_wav.i +6 -2
  28. data/ext/taglib_wav/taglib_wav_wrap.cxx +290 -147
  29. data/lib/taglib/version.rb +3 -3
  30. data/taglib-ruby.gemspec +1 -0
  31. data/tasks/ext.rake +23 -39
  32. data/tasks/swig.rake +14 -4
  33. data/test/id3v2_write_test.rb +1 -1
  34. data/test/wav_examples_test.rb +1 -1
  35. data/test/wav_file_test.rb +1 -1
  36. data/test/wav_file_write_test.rb +6 -6
  37. metadata +4 -3
@@ -1,42 +1,14 @@
1
1
  /* ----------------------------------------------------------------------------
2
- * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
2
+ * This file was automatically generated by SWIG (https://www.swig.org).
3
+ * Version 4.1.1
4
4
  *
5
- * This file is not intended to be easily readable and contains a number of
6
- * coding conventions designed to improve portability and efficiency. Do not make
7
- * changes to this file unless you know what you are doing--modify the SWIG
8
- * interface file instead.
5
+ * Do not make changes to this file unless you know what you are doing - modify
6
+ * the SWIG interface file instead.
9
7
  * ----------------------------------------------------------------------------- */
10
8
 
11
9
 
12
- #ifndef SWIGRUBY
10
+ #define SWIG_VERSION 0x040101
13
11
  #define SWIGRUBY
14
- #endif
15
-
16
-
17
-
18
- #ifdef __cplusplus
19
- /* SwigValueWrapper is described in swig.swg */
20
- template<typename T> class SwigValueWrapper {
21
- struct SwigMovePointer {
22
- T *ptr;
23
- SwigMovePointer(T *p) : ptr(p) { }
24
- ~SwigMovePointer() { delete ptr; }
25
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
26
- } pointer;
27
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
28
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
29
- public:
30
- SwigValueWrapper() : pointer(0) { }
31
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
32
- operator T&() const { return *pointer.ptr; }
33
- T *operator&() { return pointer.ptr; }
34
- };
35
-
36
- template <typename T> T SwigValueInit() {
37
- return T();
38
- }
39
- #endif
40
12
 
41
13
  /* -----------------------------------------------------------------------------
42
14
  * This section contains generic SWIG labels for method/variable
@@ -332,6 +304,8 @@ template <typename T> T SwigValueInit() {
332
304
  #define SWIG_POINTER_DISOWN 0x1
333
305
  #define SWIG_CAST_NEW_MEMORY 0x2
334
306
  #define SWIG_POINTER_NO_NULL 0x4
307
+ #define SWIG_POINTER_CLEAR 0x8
308
+ #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
335
309
 
336
310
  /* Flags for new pointer objects */
337
311
  #define SWIG_POINTER_OWN 0x1
@@ -403,7 +377,7 @@ template <typename T> T SwigValueInit() {
403
377
  SWIG errors code.
404
378
 
405
379
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
406
- allows to return the 'cast rank', for example, if you have this
380
+ allows returning the 'cast rank', for example, if you have this
407
381
 
408
382
  int food(double)
409
383
  int fooi(int);
@@ -417,7 +391,13 @@ template <typename T> T SwigValueInit() {
417
391
  */
418
392
 
419
393
  #define SWIG_OK (0)
394
+ /* Runtime errors are < 0 */
420
395
  #define SWIG_ERROR (-1)
396
+ /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
397
+ /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
398
+ /* Errors < -200 are generic runtime specific errors */
399
+ #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
400
+
421
401
  #define SWIG_IsOK(r) (r >= 0)
422
402
  #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
423
403
 
@@ -432,7 +412,7 @@ template <typename T> T SwigValueInit() {
432
412
  #define SWIG_OLDOBJ (SWIG_OK)
433
413
  #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
434
414
  #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
435
- /* Check, add and del mask methods */
415
+ /* Check, add and del object mask methods */
436
416
  #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
437
417
  #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
438
418
  #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
@@ -578,7 +558,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
578
558
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
579
559
  */
580
560
  SWIGRUNTIME swig_cast_info *
581
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
561
+ SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
582
562
  if (ty) {
583
563
  swig_cast_info *iter = ty->cast;
584
564
  while (iter) {
@@ -638,9 +618,9 @@ SWIG_TypeName(const swig_type_info *ty) {
638
618
  SWIGRUNTIME const char *
639
619
  SWIG_TypePrettyName(const swig_type_info *type) {
640
620
  /* The "str" field contains the equivalent pretty names of the
641
- type, separated by vertical-bar characters. We choose
642
- to print the last name, as it is often (?) the most
643
- specific. */
621
+ type, separated by vertical-bar characters. Choose the last
622
+ name. It should be the most specific; a fully resolved name
623
+ but not necessarily with default template parameters expanded. */
644
624
  if (!type) return NULL;
645
625
  if (type->str != NULL) {
646
626
  const char *last_name = type->str;
@@ -860,7 +840,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
860
840
  }
861
841
  #endif
862
842
 
863
- /* Errors in SWIG */
843
+ /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
864
844
  #define SWIG_UnknownError -1
865
845
  #define SWIG_IOError -2
866
846
  #define SWIG_RuntimeError -3
@@ -876,9 +856,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
876
856
  #define SWIG_NullReferenceError -13
877
857
 
878
858
 
859
+ #if __GNUC__ >= 7
860
+ #pragma GCC diagnostic push
861
+ #if defined(__cplusplus)
862
+ #pragma GCC diagnostic ignored "-Wregister"
863
+ #if __GNUC__ >= 10
864
+ #pragma GCC diagnostic ignored "-Wvolatile"
865
+ #if __GNUC__ >= 11
866
+ #pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
867
+ #endif
868
+ #endif
869
+ #endif
870
+ #endif
879
871
 
880
872
  #include <ruby.h>
881
873
 
874
+ #if __GNUC__ >= 7
875
+ #pragma GCC diagnostic pop
876
+ #endif
877
+
882
878
  /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
883
879
  * breaks using rb_intern as an lvalue, as SWIG does. We work around this
884
880
  * issue for now by disabling this.
@@ -1658,6 +1654,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1658
1654
  own->own = 0;
1659
1655
  }
1660
1656
 
1657
+ if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
1658
+ if (!RDATA(obj)->dfree)
1659
+ return SWIG_ERROR_RELEASE_NOT_OWNED;
1660
+ }
1661
+
1661
1662
  /* Check to see if the input object is giving up ownership
1662
1663
  of the underlying C struct or C++ object. If so then we
1663
1664
  need to reset the destructor since the Ruby object no
@@ -1669,7 +1670,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1669
1670
  swig_class *sklass = (swig_class *) ty->clientdata;
1670
1671
  track = sklass->trackObjects;
1671
1672
  }
1672
-
1673
+
1673
1674
  if (track) {
1674
1675
  /* We are tracking objects for this class. Thus we change the destructor
1675
1676
  * to SWIG_RubyRemoveTracking. This allows us to
@@ -1683,6 +1684,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1683
1684
  }
1684
1685
  }
1685
1686
 
1687
+ if (flags & SWIG_POINTER_CLEAR) {
1688
+ DATA_PTR(obj) = 0;
1689
+ }
1690
+
1686
1691
  /* Do type-checking if type info was provided */
1687
1692
  if (ty) {
1688
1693
  if (ty->clientdata) {
@@ -1790,6 +1795,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1790
1795
  {
1791
1796
  /* register a new class */
1792
1797
  VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1798
+ rb_undef_alloc_func(cl);
1793
1799
  /* create and store the structure pointer to a global variable */
1794
1800
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1795
1801
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1820,7 +1826,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1820
1826
  {
1821
1827
  if ( rb_respond_to( proc, swig_arity_id ) )
1822
1828
  {
1823
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1829
+ VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
1824
1830
  int arity = NUM2INT(num);
1825
1831
  if ( arity < 0 && (arity+1) < -minimal ) return 1;
1826
1832
  if ( arity == minimal ) return 1;
@@ -1838,7 +1844,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1838
1844
 
1839
1845
  #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1840
1846
 
1841
- #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1847
+ #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1842
1848
 
1843
1849
 
1844
1850
 
@@ -1853,9 +1859,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1853
1859
  #define SWIGTYPE_p_TagLib__ID3v2__ChapterFrame swig_types[6]
1854
1860
  #define SWIGTYPE_p_TagLib__ID3v2__CommentsFrame swig_types[7]
1855
1861
  #define SWIGTYPE_p_TagLib__ID3v2__ExtendedHeader swig_types[8]
1856
- #define SWIGTYPE_p_TagLib__ID3v2__Footer swig_types[9]
1857
- #define SWIGTYPE_p_TagLib__ID3v2__Frame swig_types[10]
1858
- #define SWIGTYPE_p_TagLib__ID3v2__FrameFactory swig_types[11]
1862
+ #define SWIGTYPE_p_TagLib__ID3v2__Frame swig_types[9]
1863
+ #define SWIGTYPE_p_TagLib__ID3v2__FrameFactory swig_types[10]
1864
+ #define SWIGTYPE_p_TagLib__ID3v2__Frame__Header swig_types[11]
1859
1865
  #define SWIGTYPE_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame swig_types[12]
1860
1866
  #define SWIGTYPE_p_TagLib__ID3v2__Header swig_types[13]
1861
1867
  #define SWIGTYPE_p_TagLib__ID3v2__PopularimeterFrame swig_types[14]
@@ -1874,12 +1880,13 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1874
1880
  #define SWIGTYPE_p_TagLib__ListT_TagLib__ID3v2__Frame_p_t swig_types[27]
1875
1881
  #define SWIGTYPE_p_TagLib__Tag swig_types[28]
1876
1882
  #define SWIGTYPE_p_char swig_types[29]
1877
- #define SWIGTYPE_p_unsigned_char swig_types[30]
1878
- #define SWIGTYPE_p_unsigned_int swig_types[31]
1879
- #define SWIGTYPE_p_unsigned_long swig_types[32]
1880
- #define SWIGTYPE_p_wchar_t swig_types[33]
1881
- static swig_type_info *swig_types[35];
1882
- static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
1883
+ #define SWIGTYPE_p_long_long swig_types[30]
1884
+ #define SWIGTYPE_p_unsigned_char swig_types[31]
1885
+ #define SWIGTYPE_p_unsigned_int swig_types[32]
1886
+ #define SWIGTYPE_p_unsigned_long swig_types[33]
1887
+ #define SWIGTYPE_p_wchar_t swig_types[34]
1888
+ static swig_type_info *swig_types[36];
1889
+ static swig_module_info swig_module = {swig_types, 35, 0, 0, 0, 0};
1883
1890
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1884
1891
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1885
1892
 
@@ -1890,12 +1897,56 @@ static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
1890
1897
 
1891
1898
  static VALUE mID3v2;
1892
1899
 
1893
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1894
- #define SWIG_RUBY_THREAD_END_BLOCK
1900
+ #ifdef __cplusplus
1901
+ #include <utility>
1902
+ /* SwigValueWrapper is described in swig.swg */
1903
+ template<typename T> class SwigValueWrapper {
1904
+ struct SwigSmartPointer {
1905
+ T *ptr;
1906
+ SwigSmartPointer(T *p) : ptr(p) { }
1907
+ ~SwigSmartPointer() { delete ptr; }
1908
+ SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1909
+ void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1910
+ } pointer;
1911
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1912
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1913
+ public:
1914
+ SwigValueWrapper() : pointer(0) { }
1915
+ SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1916
+ #if __cplusplus >=201103L
1917
+ SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1918
+ operator T&&() const { return std::move(*pointer.ptr); }
1919
+ #else
1920
+ operator T&() const { return *pointer.ptr; }
1921
+ #endif
1922
+ T *operator&() const { return pointer.ptr; }
1923
+ static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1924
+ };
1895
1925
 
1926
+ /*
1927
+ * SwigValueInit() is a generic initialisation solution as the following approach:
1928
+ *
1929
+ * T c_result = T();
1930
+ *
1931
+ * doesn't compile for all types for example:
1932
+ *
1933
+ * unsigned int c_result = unsigned int();
1934
+ */
1935
+ template <typename T> T SwigValueInit() {
1936
+ return T();
1937
+ }
1938
+
1939
+ #if __cplusplus >=201103L
1940
+ # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1941
+ #else
1942
+ # define SWIG_STD_MOVE(OBJ) OBJ
1943
+ #endif
1896
1944
 
1897
- #define SWIGVERSION 0x040002
1898
- #define SWIG_VERSION SWIGVERSION
1945
+ #endif
1946
+
1947
+
1948
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1949
+ #define SWIG_RUBY_THREAD_END_BLOCK
1899
1950
 
1900
1951
 
1901
1952
  #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
@@ -1945,34 +1996,26 @@ static VALUE mID3v2;
1945
1996
  #endif
1946
1997
 
1947
1998
  VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
1948
- if (byteVector.isNull()) {
1949
- return Qnil;
1950
- } else {
1951
- return rb_str_new(byteVector.data(), byteVector.size());
1952
- }
1999
+ return rb_str_new(byteVector.data(), byteVector.size());
1953
2000
  }
1954
2001
 
1955
2002
  TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
1956
2003
  if (NIL_P(s)) {
1957
- return TagLib::ByteVector::null;
2004
+ return TagLib::ByteVector();
1958
2005
  } else {
1959
2006
  return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
1960
2007
  }
1961
2008
  }
1962
2009
 
1963
2010
  VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
1964
- if (string.isNull()) {
1965
- return Qnil;
1966
- } else {
1967
- VALUE result = rb_str_new2(string.toCString(true));
1968
- ASSOCIATE_UTF8_ENCODING(result);
1969
- return result;
1970
- }
2011
+ VALUE result = rb_str_new2(string.toCString(true));
2012
+ ASSOCIATE_UTF8_ENCODING(result);
2013
+ return result;
1971
2014
  }
1972
2015
 
1973
2016
  TagLib::String ruby_string_to_taglib_string(VALUE s) {
1974
2017
  if (NIL_P(s)) {
1975
- return TagLib::String::null;
2018
+ return TagLib::String();
1976
2019
  } else {
1977
2020
  return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
1978
2021
  }
@@ -2061,6 +2104,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
2061
2104
  #endif
2062
2105
  }
2063
2106
 
2107
+ VALUE taglib_offset_t_to_ruby_int(TagLib::offset_t off) {
2108
+ #ifdef _WIN32
2109
+ return LL2NUM(off);
2110
+ #else
2111
+ return OFFT2NUM(off);
2112
+ #endif
2113
+ }
2064
2114
 
2065
2115
 
2066
2116
  VALUE taglib_id3v2_frame_to_ruby_object(const TagLib::ID3v2::Frame *frame) {
@@ -2112,6 +2162,26 @@ VALUE taglib_id3v2_framelist_to_ruby_array(TagLib::ID3v2::FrameList *list) {
2112
2162
  }
2113
2163
 
2114
2164
 
2165
+ #include <limits.h>
2166
+ #if !defined(SWIG_NO_LLONG_MAX)
2167
+ # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2168
+ # define LLONG_MAX __LONG_LONG_MAX__
2169
+ # define LLONG_MIN (-LLONG_MAX - 1LL)
2170
+ # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2171
+ # endif
2172
+ #endif
2173
+
2174
+
2175
+ #define SWIG_From_long LONG2NUM
2176
+
2177
+
2178
+ SWIGINTERNINLINE VALUE
2179
+ SWIG_From_int (int value)
2180
+ {
2181
+ return SWIG_From_long (value);
2182
+ }
2183
+
2184
+
2115
2185
  SWIGINTERN swig_type_info*
2116
2186
  SWIG_pchar_descriptor(void)
2117
2187
  {
@@ -2162,19 +2232,6 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2162
2232
 
2163
2233
 
2164
2234
 
2165
- #include <limits.h>
2166
- #if !defined(SWIG_NO_LLONG_MAX)
2167
- # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2168
- # define LLONG_MAX __LONG_LONG_MAX__
2169
- # define LLONG_MIN (-LLONG_MAX - 1LL)
2170
- # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2171
- # endif
2172
- #endif
2173
-
2174
-
2175
- #define SWIG_From_long LONG2NUM
2176
-
2177
-
2178
2235
  SWIGINTERNINLINE VALUE
2179
2236
  SWIG_From_unsigned_SS_long (unsigned long value)
2180
2237
  {
@@ -2196,7 +2253,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
2196
2253
  }
2197
2254
 
2198
2255
 
2199
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2256
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2200
2257
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
2201
2258
  {
2202
2259
  VALUE *args = (VALUE *)arg;
@@ -2249,7 +2306,7 @@ SWIG_From_bool (bool value)
2249
2306
  }
2250
2307
 
2251
2308
 
2252
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2309
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2253
2310
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2254
2311
  {
2255
2312
  VALUE *args = (VALUE *)arg;
@@ -2295,31 +2352,41 @@ SWIG_AsVal_int (VALUE obj, int *val)
2295
2352
  }
2296
2353
 
2297
2354
 
2355
+ #if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
2356
+ # define SWIG_LONG_LONG_AVAILABLE
2357
+ #endif
2358
+
2359
+
2360
+ #ifdef SWIG_LONG_LONG_AVAILABLE
2361
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2362
+ SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
2363
+ {
2364
+ VALUE *args = (VALUE *)arg;
2365
+ VALUE obj = args[0];
2366
+ VALUE type = TYPE(obj);
2367
+ long long *res = (long long *)(args[1]);
2368
+ *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
2369
+ return obj;
2370
+ }
2371
+ /*@SWIG@*/
2372
+
2298
2373
  SWIGINTERN int
2299
- SWIG_AsVal_bool (VALUE obj, bool *val)
2374
+ SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
2300
2375
  {
2301
- if (obj == Qtrue) {
2302
- if (val) *val = true;
2303
- return SWIG_OK;
2304
- } else if (obj == Qfalse) {
2305
- if (val) *val = false;
2306
- return SWIG_OK;
2307
- } else {
2308
- int res = 0;
2309
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2310
- if (val) *val = res ? true : false;
2376
+ VALUE type = TYPE(obj);
2377
+ if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2378
+ long long v;
2379
+ VALUE a[2];
2380
+ a[0] = obj;
2381
+ a[1] = (VALUE)(&v);
2382
+ if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
2383
+ if (val) *val = v;
2311
2384
  return SWIG_OK;
2312
2385
  }
2313
- }
2386
+ }
2314
2387
  return SWIG_TypeError;
2315
2388
  }
2316
-
2317
-
2318
- SWIGINTERNINLINE VALUE
2319
- SWIG_From_int (int value)
2320
- {
2321
- return SWIG_From_long (value);
2322
- }
2389
+ #endif
2323
2390
 
2324
2391
 
2325
2392
  SWIGINTERNINLINE VALUE
@@ -2384,10 +2451,6 @@ inline int SWIG_isfinite_func(T x) {
2384
2451
  # define SWIG_isfinite(X) (SWIG_isfinite_func(X))
2385
2452
  # elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
2386
2453
  # define SWIG_isfinite(X) (__builtin_isfinite(X))
2387
- # elif defined(__clang__) && defined(__has_builtin)
2388
- # if __has_builtin(__builtin_isfinite)
2389
- # define SWIG_isfinite(X) (__builtin_isfinite(X))
2390
- # endif
2391
2454
  # elif defined(_MSC_VER)
2392
2455
  # define SWIG_isfinite(X) (_finite(X))
2393
2456
  # elif defined(__sun) && defined(__SVR4)
@@ -2405,7 +2468,7 @@ inline int SWIG_isfinite_func(T x) {
2405
2468
  #endif
2406
2469
 
2407
2470
 
2408
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2471
+ /*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2409
2472
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2410
2473
  {
2411
2474
  VALUE *args = (VALUE *)arg;
@@ -2473,6 +2536,26 @@ SWIG_From_unsigned_SS_char (unsigned char value)
2473
2536
  return SWIG_From_unsigned_SS_long (value);
2474
2537
  }
2475
2538
 
2539
+
2540
+ SWIGINTERN int
2541
+ SWIG_AsVal_bool (VALUE obj, bool *val)
2542
+ {
2543
+ if (obj == Qtrue) {
2544
+ if (val) *val = true;
2545
+ return SWIG_OK;
2546
+ } else if (obj == Qfalse) {
2547
+ if (val) *val = false;
2548
+ return SWIG_OK;
2549
+ } else {
2550
+ int res = 0;
2551
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2552
+ if (val) *val = res ? true : false;
2553
+ return SWIG_OK;
2554
+ }
2555
+ }
2556
+ return SWIG_TypeError;
2557
+ }
2558
+
2476
2559
  static swig_class SwigClassHeader;
2477
2560
 
2478
2561
  SWIGINTERN VALUE
@@ -2542,7 +2625,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
2542
2625
  return _wrap_new_Header__SWIG_0(nargs, args, self);
2543
2626
  }
2544
2627
  if (argc == 1) {
2545
- int _v;
2628
+ int _v = 0;
2546
2629
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2547
2630
  _v = SWIG_CheckState(res);
2548
2631
  if (_v) {
@@ -3058,6 +3141,32 @@ fail:
3058
3141
  }
3059
3142
 
3060
3143
 
3144
+ SWIGINTERN VALUE
3145
+ _wrap_Frame_to_string_list(int argc, VALUE *argv, VALUE self) {
3146
+ TagLib::ID3v2::Frame *arg1 = (TagLib::ID3v2::Frame *) 0 ;
3147
+ void *argp1 = 0 ;
3148
+ int res1 = 0 ;
3149
+ TagLib::StringList result;
3150
+ VALUE vresult = Qnil;
3151
+
3152
+ if ((argc < 0) || (argc > 0)) {
3153
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3154
+ }
3155
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
3156
+ if (!SWIG_IsOK(res1)) {
3157
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Frame const *","toStringList", 1, self ));
3158
+ }
3159
+ arg1 = reinterpret_cast< TagLib::ID3v2::Frame * >(argp1);
3160
+ result = ((TagLib::ID3v2::Frame const *)arg1)->toStringList();
3161
+ {
3162
+ vresult = taglib_string_list_to_ruby_array(result);
3163
+ }
3164
+ return vresult;
3165
+ fail:
3166
+ return Qnil;
3167
+ }
3168
+
3169
+
3061
3170
  SWIGINTERN VALUE
3062
3171
  _wrap_Frame_render(int argc, VALUE *argv, VALUE self) {
3063
3172
  TagLib::ID3v2::Frame *arg1 = (TagLib::ID3v2::Frame *) 0 ;
@@ -3084,6 +3193,30 @@ fail:
3084
3193
  }
3085
3194
 
3086
3195
 
3196
+ SWIGINTERN VALUE
3197
+ _wrap_Frame_header(int argc, VALUE *argv, VALUE self) {
3198
+ TagLib::ID3v2::Frame *arg1 = (TagLib::ID3v2::Frame *) 0 ;
3199
+ void *argp1 = 0 ;
3200
+ int res1 = 0 ;
3201
+ TagLib::ID3v2::Frame::Header *result = 0 ;
3202
+ VALUE vresult = Qnil;
3203
+
3204
+ if ((argc < 0) || (argc > 0)) {
3205
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3206
+ }
3207
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
3208
+ if (!SWIG_IsOK(res1)) {
3209
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Frame const *","header", 1, self ));
3210
+ }
3211
+ arg1 = reinterpret_cast< TagLib::ID3v2::Frame * >(argp1);
3212
+ result = (TagLib::ID3v2::Frame::Header *)((TagLib::ID3v2::Frame const *)arg1)->header();
3213
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Frame__Header, 0 | 0 );
3214
+ return vresult;
3215
+ fail:
3216
+ return Qnil;
3217
+ }
3218
+
3219
+
3087
3220
  SWIGINTERN VALUE
3088
3221
  _wrap_Frame_text_delimiter(int argc, VALUE *argv, VALUE self) {
3089
3222
  TagLib::String::Type arg1 ;
@@ -3110,6 +3243,54 @@ fail:
3110
3243
  }
3111
3244
 
3112
3245
 
3246
+ SWIGINTERN VALUE
3247
+ _wrap_Frame_key_to_frame_id(int argc, VALUE *argv, VALUE self) {
3248
+ TagLib::String *arg1 = 0 ;
3249
+ TagLib::String tmp1 ;
3250
+ TagLib::ByteVector result;
3251
+ VALUE vresult = Qnil;
3252
+
3253
+ if ((argc < 1) || (argc > 1)) {
3254
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3255
+ }
3256
+ {
3257
+ tmp1 = ruby_string_to_taglib_string(argv[0]);
3258
+ arg1 = &tmp1;
3259
+ }
3260
+ result = TagLib::ID3v2::Frame::keyToFrameID((TagLib::String const &)*arg1);
3261
+ {
3262
+ vresult = taglib_bytevector_to_ruby_string(result);
3263
+ }
3264
+ return vresult;
3265
+ fail:
3266
+ return Qnil;
3267
+ }
3268
+
3269
+
3270
+ SWIGINTERN VALUE
3271
+ _wrap_Frame_frame_idto_key(int argc, VALUE *argv, VALUE self) {
3272
+ TagLib::ByteVector *arg1 = 0 ;
3273
+ TagLib::ByteVector tmp1 ;
3274
+ TagLib::String result;
3275
+ VALUE vresult = Qnil;
3276
+
3277
+ if ((argc < 1) || (argc > 1)) {
3278
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3279
+ }
3280
+ {
3281
+ tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
3282
+ arg1 = &tmp1;
3283
+ }
3284
+ result = TagLib::ID3v2::Frame::frameIDToKey((TagLib::ByteVector const &)*arg1);
3285
+ {
3286
+ vresult = taglib_string_to_ruby_string(result);
3287
+ }
3288
+ return vresult;
3289
+ fail:
3290
+ return Qnil;
3291
+ }
3292
+
3293
+
3113
3294
  static swig_class SwigClassTag;
3114
3295
 
3115
3296
  SWIGINTERN VALUE
@@ -3131,11 +3312,11 @@ fail:
3131
3312
  SWIGINTERN VALUE
3132
3313
  _wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
3133
3314
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3134
- long arg2 ;
3315
+ TagLib::offset_t arg2 ;
3135
3316
  TagLib::ID3v2::FrameFactory *arg3 = (TagLib::ID3v2::FrameFactory *) 0 ;
3136
3317
  void *argp1 = 0 ;
3137
3318
  int res1 = 0 ;
3138
- long val2 ;
3319
+ long long val2 ;
3139
3320
  int ecode2 = 0 ;
3140
3321
  void *argp3 = 0 ;
3141
3322
  int res3 = 0 ;
@@ -3149,11 +3330,11 @@ _wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
3149
3330
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
3150
3331
  }
3151
3332
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3152
- ecode2 = SWIG_AsVal_long(argv[1], &val2);
3333
+ ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
3153
3334
  if (!SWIG_IsOK(ecode2)) {
3154
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Tag", 2, argv[1] ));
3335
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Tag", 2, argv[1] ));
3155
3336
  }
3156
- arg2 = static_cast< long >(val2);
3337
+ arg2 = static_cast< TagLib::offset_t >(val2);
3157
3338
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
3158
3339
  if (!SWIG_IsOK(res3)) {
3159
3340
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","Tag", 3, argv[2] ));
@@ -3186,10 +3367,10 @@ _wrap_Tag_allocate(int argc, VALUE *argv, VALUE self)
3186
3367
  SWIGINTERN VALUE
3187
3368
  _wrap_new_Tag__SWIG_2(int argc, VALUE *argv, VALUE self) {
3188
3369
  TagLib::File *arg1 = (TagLib::File *) 0 ;
3189
- long arg2 ;
3370
+ TagLib::offset_t arg2 ;
3190
3371
  void *argp1 = 0 ;
3191
3372
  int res1 = 0 ;
3192
- long val2 ;
3373
+ long long val2 ;
3193
3374
  int ecode2 = 0 ;
3194
3375
  TagLib::ID3v2::Tag *result = 0 ;
3195
3376
 
@@ -3201,11 +3382,11 @@ _wrap_new_Tag__SWIG_2(int argc, VALUE *argv, VALUE self) {
3201
3382
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
3202
3383
  }
3203
3384
  arg1 = reinterpret_cast< TagLib::File * >(argp1);
3204
- ecode2 = SWIG_AsVal_long(argv[1], &val2);
3385
+ ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
3205
3386
  if (!SWIG_IsOK(ecode2)) {
3206
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Tag", 2, argv[1] ));
3387
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Tag", 2, argv[1] ));
3207
3388
  }
3208
- arg2 = static_cast< long >(val2);
3389
+ arg2 = static_cast< TagLib::offset_t >(val2);
3209
3390
  result = (TagLib::ID3v2::Tag *)new TagLib::ID3v2::Tag(arg1,arg2);
3210
3391
  DATA_PTR(self) = result;
3211
3392
  SWIG_RubyAddTracking(result, self);
@@ -3229,13 +3410,13 @@ SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
3229
3410
  return _wrap_new_Tag__SWIG_0(nargs, args, self);
3230
3411
  }
3231
3412
  if (argc == 2) {
3232
- int _v;
3413
+ int _v = 0;
3233
3414
  void *vptr = 0;
3234
3415
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3235
3416
  _v = SWIG_CheckState(res);
3236
3417
  if (_v) {
3237
3418
  {
3238
- int res = SWIG_AsVal_long(argv[1], NULL);
3419
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
3239
3420
  _v = SWIG_CheckState(res);
3240
3421
  }
3241
3422
  if (_v) {
@@ -3244,13 +3425,13 @@ SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
3244
3425
  }
3245
3426
  }
3246
3427
  if (argc == 3) {
3247
- int _v;
3428
+ int _v = 0;
3248
3429
  void *vptr = 0;
3249
3430
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__File, 0);
3250
3431
  _v = SWIG_CheckState(res);
3251
3432
  if (_v) {
3252
3433
  {
3253
- int res = SWIG_AsVal_long(argv[1], NULL);
3434
+ int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
3254
3435
  _v = SWIG_CheckState(res);
3255
3436
  }
3256
3437
  if (_v) {
@@ -3267,8 +3448,8 @@ SWIGINTERN VALUE _wrap_new_Tag(int nargs, VALUE *args, VALUE self) {
3267
3448
  fail:
3268
3449
  Ruby_Format_OverloadedError( argc, 3, "Tag.new",
3269
3450
  " Tag.new()\n"
3270
- " Tag.new(TagLib::File *file, long tagOffset, TagLib::ID3v2::FrameFactory const *factory)\n"
3271
- " Tag.new(TagLib::File *file, long tagOffset)\n");
3451
+ " Tag.new(TagLib::File *file, TagLib::offset_t tagOffset, TagLib::ID3v2::FrameFactory const *factory)\n"
3452
+ " Tag.new(TagLib::File *file, TagLib::offset_t tagOffset)\n");
3272
3453
 
3273
3454
  return Qnil;
3274
3455
  }
@@ -3725,11 +3906,11 @@ fail:
3725
3906
 
3726
3907
 
3727
3908
  SWIGINTERN VALUE
3728
- _wrap_Tag_footer(int argc, VALUE *argv, VALUE self) {
3909
+ _wrap_Tag_frame_list_map(int argc, VALUE *argv, VALUE self) {
3729
3910
  TagLib::ID3v2::Tag *arg1 = (TagLib::ID3v2::Tag *) 0 ;
3730
3911
  void *argp1 = 0 ;
3731
3912
  int res1 = 0 ;
3732
- TagLib::ID3v2::Footer *result = 0 ;
3913
+ TagLib::ID3v2::FrameListMap *result = 0 ;
3733
3914
  VALUE vresult = Qnil;
3734
3915
 
3735
3916
  if ((argc < 0) || (argc > 0)) {
@@ -3737,35 +3918,11 @@ _wrap_Tag_footer(int argc, VALUE *argv, VALUE self) {
3737
3918
  }
3738
3919
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Tag, 0 | 0 );
3739
3920
  if (!SWIG_IsOK(res1)) {
3740
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Tag const *","footer", 1, self ));
3921
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Tag const *","frameListMap", 1, self ));
3741
3922
  }
3742
3923
  arg1 = reinterpret_cast< TagLib::ID3v2::Tag * >(argp1);
3743
- result = (TagLib::ID3v2::Footer *)((TagLib::ID3v2::Tag const *)arg1)->footer();
3744
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Footer, 0 | 0 );
3745
- return vresult;
3746
- fail:
3747
- return Qnil;
3748
- }
3749
-
3750
-
3751
- SWIGINTERN VALUE
3752
- _wrap_Tag_frame_list_map(int argc, VALUE *argv, VALUE self) {
3753
- TagLib::ID3v2::Tag *arg1 = (TagLib::ID3v2::Tag *) 0 ;
3754
- void *argp1 = 0 ;
3755
- int res1 = 0 ;
3756
- TagLib::ID3v2::FrameListMap *result = 0 ;
3757
- VALUE vresult = Qnil;
3758
-
3759
- if ((argc < 0) || (argc > 0)) {
3760
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3761
- }
3762
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Tag, 0 | 0 );
3763
- if (!SWIG_IsOK(res1)) {
3764
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Tag const *","frameListMap", 1, self ));
3765
- }
3766
- arg1 = reinterpret_cast< TagLib::ID3v2::Tag * >(argp1);
3767
- result = (TagLib::ID3v2::FrameListMap *) &((TagLib::ID3v2::Tag const *)arg1)->frameListMap();
3768
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t, 0 | 0 );
3924
+ result = (TagLib::ID3v2::FrameListMap *) &((TagLib::ID3v2::Tag const *)arg1)->frameListMap();
3925
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t, 0 | 0 );
3769
3926
  return vresult;
3770
3927
  fail:
3771
3928
  return Qnil;
@@ -3842,7 +3999,7 @@ SWIGINTERN VALUE _wrap_Tag_frame_list(int nargs, VALUE *args, VALUE self) {
3842
3999
  argv[ii] = args[ii-1];
3843
4000
  }
3844
4001
  if (argc == 1) {
3845
- int _v;
4002
+ int _v = 0;
3846
4003
  void *vptr = 0;
3847
4004
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__Tag, 0);
3848
4005
  _v = SWIG_CheckState(res);
@@ -3851,7 +4008,7 @@ SWIGINTERN VALUE _wrap_Tag_frame_list(int nargs, VALUE *args, VALUE self) {
3851
4008
  }
3852
4009
  }
3853
4010
  if (argc == 2) {
3854
- int _v;
4011
+ int _v = 0;
3855
4012
  void *vptr = 0;
3856
4013
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__Tag, 0);
3857
4014
  _v = SWIG_CheckState(res);
@@ -3977,15 +4134,15 @@ fail:
3977
4134
 
3978
4135
 
3979
4136
  SWIGINTERN VALUE
3980
- _wrap_FrameFactory_create_frame__SWIG_0(int argc, VALUE *argv, VALUE self) {
4137
+ _wrap_FrameFactory_create_frame(int argc, VALUE *argv, VALUE self) {
3981
4138
  TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
3982
4139
  TagLib::ByteVector *arg2 = 0 ;
3983
- bool arg3 ;
4140
+ TagLib::ID3v2::Header *arg3 = (TagLib::ID3v2::Header *) 0 ;
3984
4141
  void *argp1 = 0 ;
3985
4142
  int res1 = 0 ;
3986
4143
  TagLib::ByteVector tmp2 ;
3987
- bool val3 ;
3988
- int ecode3 = 0 ;
4144
+ void *argp3 = 0 ;
4145
+ int res3 = 0 ;
3989
4146
  TagLib::ID3v2::Frame *result = 0 ;
3990
4147
  VALUE vresult = Qnil;
3991
4148
 
@@ -4001,12 +4158,12 @@ _wrap_FrameFactory_create_frame__SWIG_0(int argc, VALUE *argv, VALUE self) {
4001
4158
  tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
4002
4159
  arg2 = &tmp2;
4003
4160
  }
4004
- ecode3 = SWIG_AsVal_bool(argv[1], &val3);
4005
- if (!SWIG_IsOK(ecode3)) {
4006
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","createFrame", 3, argv[1] ));
4007
- }
4008
- arg3 = static_cast< bool >(val3);
4009
- result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrame((TagLib::ByteVector const &)*arg2,arg3);
4161
+ res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
4162
+ if (!SWIG_IsOK(res3)) {
4163
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","createFrame", 3, argv[1] ));
4164
+ }
4165
+ arg3 = reinterpret_cast< TagLib::ID3v2::Header * >(argp3);
4166
+ result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrame((TagLib::ByteVector const &)*arg2,(TagLib::ID3v2::Header const *)arg3);
4010
4167
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
4011
4168
  return vresult;
4012
4169
  fail:
@@ -4015,15 +4172,14 @@ fail:
4015
4172
 
4016
4173
 
4017
4174
  SWIGINTERN VALUE
4018
- _wrap_FrameFactory_create_frame__SWIG_1(int argc, VALUE *argv, VALUE self) {
4175
+ _wrap_FrameFactory_create_frame_for_property(int argc, VALUE *argv, VALUE self) {
4019
4176
  TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
4020
- TagLib::ByteVector *arg2 = 0 ;
4021
- unsigned int arg3 ;
4177
+ TagLib::String *arg2 = 0 ;
4178
+ TagLib::StringList *arg3 = 0 ;
4022
4179
  void *argp1 = 0 ;
4023
4180
  int res1 = 0 ;
4024
- TagLib::ByteVector tmp2 ;
4025
- unsigned int val3 ;
4026
- int ecode3 = 0 ;
4181
+ TagLib::String tmp2 ;
4182
+ TagLib::StringList tmp3 ;
4027
4183
  TagLib::ID3v2::Frame *result = 0 ;
4028
4184
  VALUE vresult = Qnil;
4029
4185
 
@@ -4032,49 +4188,18 @@ _wrap_FrameFactory_create_frame__SWIG_1(int argc, VALUE *argv, VALUE self) {
4032
4188
  }
4033
4189
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
4034
4190
  if (!SWIG_IsOK(res1)) {
4035
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","createFrame", 1, self ));
4191
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","createFrameForProperty", 1, self ));
4036
4192
  }
4037
4193
  arg1 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp1);
4038
4194
  {
4039
- tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
4195
+ tmp2 = ruby_string_to_taglib_string(argv[0]);
4040
4196
  arg2 = &tmp2;
4041
4197
  }
4042
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
4043
- if (!SWIG_IsOK(ecode3)) {
4044
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","createFrame", 3, argv[1] ));
4045
- }
4046
- arg3 = static_cast< unsigned int >(val3);
4047
- result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrame((TagLib::ByteVector const &)*arg2,arg3);
4048
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
4049
- return vresult;
4050
- fail:
4051
- return Qnil;
4052
- }
4053
-
4054
-
4055
- SWIGINTERN VALUE
4056
- _wrap_FrameFactory_create_frame__SWIG_2(int argc, VALUE *argv, VALUE self) {
4057
- TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
4058
- TagLib::ByteVector *arg2 = 0 ;
4059
- void *argp1 = 0 ;
4060
- int res1 = 0 ;
4061
- TagLib::ByteVector tmp2 ;
4062
- TagLib::ID3v2::Frame *result = 0 ;
4063
- VALUE vresult = Qnil;
4064
-
4065
- if ((argc < 1) || (argc > 1)) {
4066
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4067
- }
4068
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
4069
- if (!SWIG_IsOK(res1)) {
4070
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","createFrame", 1, self ));
4071
- }
4072
- arg1 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp1);
4073
4198
  {
4074
- tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
4075
- arg2 = &tmp2;
4199
+ tmp3 = ruby_array_to_taglib_string_list(argv[1]);
4200
+ arg3 = &tmp3;
4076
4201
  }
4077
- result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrame((TagLib::ByteVector const &)*arg2);
4202
+ result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrameForProperty((TagLib::String const &)*arg2,(TagLib::StringList const &)*arg3);
4078
4203
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
4079
4204
  return vresult;
4080
4205
  fail:
@@ -4082,136 +4207,6 @@ fail:
4082
4207
  }
4083
4208
 
4084
4209
 
4085
- SWIGINTERN VALUE
4086
- _wrap_FrameFactory_create_frame__SWIG_3(int argc, VALUE *argv, VALUE self) {
4087
- TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
4088
- TagLib::ByteVector *arg2 = 0 ;
4089
- TagLib::ID3v2::Header *arg3 = (TagLib::ID3v2::Header *) 0 ;
4090
- void *argp1 = 0 ;
4091
- int res1 = 0 ;
4092
- TagLib::ByteVector tmp2 ;
4093
- void *argp3 = 0 ;
4094
- int res3 = 0 ;
4095
- TagLib::ID3v2::Frame *result = 0 ;
4096
- VALUE vresult = Qnil;
4097
-
4098
- if ((argc < 2) || (argc > 2)) {
4099
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
4100
- }
4101
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
4102
- if (!SWIG_IsOK(res1)) {
4103
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","createFrame", 1, self ));
4104
- }
4105
- arg1 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp1);
4106
- {
4107
- tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
4108
- arg2 = &tmp2;
4109
- }
4110
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
4111
- if (!SWIG_IsOK(res3)) {
4112
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header *","createFrame", 3, argv[1] ));
4113
- }
4114
- arg3 = reinterpret_cast< TagLib::ID3v2::Header * >(argp3);
4115
- result = (TagLib::ID3v2::Frame *)((TagLib::ID3v2::FrameFactory const *)arg1)->createFrame((TagLib::ByteVector const &)*arg2,arg3);
4116
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__Frame, 0 | 0 );
4117
- return vresult;
4118
- fail:
4119
- return Qnil;
4120
- }
4121
-
4122
-
4123
- SWIGINTERN VALUE _wrap_FrameFactory_create_frame(int nargs, VALUE *args, VALUE self) {
4124
- int argc;
4125
- VALUE argv[4];
4126
- int ii;
4127
-
4128
- argc = nargs + 1;
4129
- argv[0] = self;
4130
- if (argc > 4) SWIG_fail;
4131
- for (ii = 1; (ii < argc); ++ii) {
4132
- argv[ii] = args[ii-1];
4133
- }
4134
- if (argc == 2) {
4135
- int _v;
4136
- void *vptr = 0;
4137
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
4138
- _v = SWIG_CheckState(res);
4139
- if (_v) {
4140
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4141
- _v = SWIG_CheckState(res);
4142
- if (_v) {
4143
- return _wrap_FrameFactory_create_frame__SWIG_2(nargs, args, self);
4144
- }
4145
- }
4146
- }
4147
- if (argc == 3) {
4148
- int _v;
4149
- void *vptr = 0;
4150
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
4151
- _v = SWIG_CheckState(res);
4152
- if (_v) {
4153
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4154
- _v = SWIG_CheckState(res);
4155
- if (_v) {
4156
- void *vptr = 0;
4157
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TagLib__ID3v2__Header, 0);
4158
- _v = SWIG_CheckState(res);
4159
- if (_v) {
4160
- return _wrap_FrameFactory_create_frame__SWIG_3(nargs, args, self);
4161
- }
4162
- }
4163
- }
4164
- }
4165
- if (argc == 3) {
4166
- int _v;
4167
- void *vptr = 0;
4168
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
4169
- _v = SWIG_CheckState(res);
4170
- if (_v) {
4171
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4172
- _v = SWIG_CheckState(res);
4173
- if (_v) {
4174
- {
4175
- int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
4176
- _v = SWIG_CheckState(res);
4177
- }
4178
- if (_v) {
4179
- return _wrap_FrameFactory_create_frame__SWIG_1(nargs, args, self);
4180
- }
4181
- }
4182
- }
4183
- }
4184
- if (argc == 3) {
4185
- int _v;
4186
- void *vptr = 0;
4187
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
4188
- _v = SWIG_CheckState(res);
4189
- if (_v) {
4190
- int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
4191
- _v = SWIG_CheckState(res);
4192
- if (_v) {
4193
- {
4194
- int res = SWIG_AsVal_bool(argv[2], NULL);
4195
- _v = SWIG_CheckState(res);
4196
- }
4197
- if (_v) {
4198
- return _wrap_FrameFactory_create_frame__SWIG_0(nargs, args, self);
4199
- }
4200
- }
4201
- }
4202
- }
4203
-
4204
- fail:
4205
- Ruby_Format_OverloadedError( argc, 4, "FrameFactory.create_frame",
4206
- " TagLib::ID3v2::Frame FrameFactory.create_frame(TagLib::ByteVector const &data, bool synchSafeInts)\n"
4207
- " TagLib::ID3v2::Frame FrameFactory.create_frame(TagLib::ByteVector const &data, unsigned int version)\n"
4208
- " TagLib::ID3v2::Frame FrameFactory.create_frame(TagLib::ByteVector const &data)\n"
4209
- " TagLib::ID3v2::Frame * FrameFactory.create_frame(TagLib::ByteVector const &data, TagLib::ID3v2::Header *tagHeader)\n");
4210
-
4211
- return Qnil;
4212
- }
4213
-
4214
-
4215
4210
  SWIGINTERN VALUE
4216
4211
  _wrap_FrameFactory_default_text_encoding(int argc, VALUE *argv, VALUE self) {
4217
4212
  TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
@@ -4265,6 +4260,30 @@ fail:
4265
4260
  }
4266
4261
 
4267
4262
 
4263
+ SWIGINTERN VALUE
4264
+ _wrap_FrameFactory_is_using_default_text_encoding(int argc, VALUE *argv, VALUE self) {
4265
+ TagLib::ID3v2::FrameFactory *arg1 = (TagLib::ID3v2::FrameFactory *) 0 ;
4266
+ void *argp1 = 0 ;
4267
+ int res1 = 0 ;
4268
+ bool result;
4269
+ VALUE vresult = Qnil;
4270
+
4271
+ if ((argc < 0) || (argc > 0)) {
4272
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4273
+ }
4274
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
4275
+ if (!SWIG_IsOK(res1)) {
4276
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","isUsingDefaultTextEncoding", 1, self ));
4277
+ }
4278
+ arg1 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp1);
4279
+ result = (bool)((TagLib::ID3v2::FrameFactory const *)arg1)->isUsingDefaultTextEncoding();
4280
+ vresult = SWIG_From_bool(static_cast< bool >(result));
4281
+ return vresult;
4282
+ fail:
4283
+ return Qnil;
4284
+ }
4285
+
4286
+
4268
4287
  static swig_class SwigClassRelativeVolumeFrame;
4269
4288
 
4270
4289
  SWIGINTERN VALUE
@@ -4334,7 +4353,7 @@ SWIGINTERN VALUE _wrap_new_RelativeVolumeFrame(int nargs, VALUE *args, VALUE sel
4334
4353
  return _wrap_new_RelativeVolumeFrame__SWIG_0(nargs, args, self);
4335
4354
  }
4336
4355
  if (argc == 1) {
4337
- int _v;
4356
+ int _v = 0;
4338
4357
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
4339
4358
  _v = SWIG_CheckState(res);
4340
4359
  if (_v) {
@@ -4416,59 +4435,6 @@ fail:
4416
4435
  }
4417
4436
 
4418
4437
 
4419
- SWIGINTERN VALUE
4420
- _wrap_RelativeVolumeFrame_channel_type(int argc, VALUE *argv, VALUE self) {
4421
- TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
4422
- void *argp1 = 0 ;
4423
- int res1 = 0 ;
4424
- TagLib::ID3v2::RelativeVolumeFrame::ChannelType result;
4425
- VALUE vresult = Qnil;
4426
-
4427
- if ((argc < 0) || (argc > 0)) {
4428
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4429
- }
4430
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0 | 0 );
4431
- if (!SWIG_IsOK(res1)) {
4432
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame const *","channelType", 1, self ));
4433
- }
4434
- arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
4435
- result = (TagLib::ID3v2::RelativeVolumeFrame::ChannelType)((TagLib::ID3v2::RelativeVolumeFrame const *)arg1)->channelType();
4436
- vresult = SWIG_From_int(static_cast< int >(result));
4437
- return vresult;
4438
- fail:
4439
- return Qnil;
4440
- }
4441
-
4442
-
4443
- SWIGINTERN VALUE
4444
- _wrap_RelativeVolumeFrame_channel_typee___(int argc, VALUE *argv, VALUE self) {
4445
- TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
4446
- TagLib::ID3v2::RelativeVolumeFrame::ChannelType arg2 ;
4447
- void *argp1 = 0 ;
4448
- int res1 = 0 ;
4449
- int val2 ;
4450
- int ecode2 = 0 ;
4451
-
4452
- if ((argc < 1) || (argc > 1)) {
4453
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4454
- }
4455
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0 | 0 );
4456
- if (!SWIG_IsOK(res1)) {
4457
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame *","setChannelType", 1, self ));
4458
- }
4459
- arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
4460
- ecode2 = SWIG_AsVal_int(argv[0], &val2);
4461
- if (!SWIG_IsOK(ecode2)) {
4462
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::ChannelType","setChannelType", 2, argv[0] ));
4463
- }
4464
- arg2 = static_cast< TagLib::ID3v2::RelativeVolumeFrame::ChannelType >(val2);
4465
- (arg1)->setChannelType(arg2);
4466
- return Qnil;
4467
- fail:
4468
- return Qnil;
4469
- }
4470
-
4471
-
4472
4438
  SWIGINTERN VALUE
4473
4439
  _wrap_RelativeVolumeFrame_volume_adjustment_index__SWIG_0(int argc, VALUE *argv, VALUE self) {
4474
4440
  TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
@@ -4537,7 +4503,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_volume_adjustment_index(int nargs, VA
4537
4503
  argv[ii] = args[ii-1];
4538
4504
  }
4539
4505
  if (argc == 1) {
4540
- int _v;
4506
+ int _v = 0;
4541
4507
  void *vptr = 0;
4542
4508
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4543
4509
  _v = SWIG_CheckState(res);
@@ -4546,7 +4512,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_volume_adjustment_index(int nargs, VA
4546
4512
  }
4547
4513
  }
4548
4514
  if (argc == 2) {
4549
- int _v;
4515
+ int _v = 0;
4550
4516
  void *vptr = 0;
4551
4517
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4552
4518
  _v = SWIG_CheckState(res);
@@ -4648,7 +4614,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_volume_adjustment_index(int nargs
4648
4614
  argv[ii] = args[ii-1];
4649
4615
  }
4650
4616
  if (argc == 2) {
4651
- int _v;
4617
+ int _v = 0;
4652
4618
  void *vptr = 0;
4653
4619
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4654
4620
  _v = SWIG_CheckState(res);
@@ -4663,7 +4629,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_volume_adjustment_index(int nargs
4663
4629
  }
4664
4630
  }
4665
4631
  if (argc == 3) {
4666
- int _v;
4632
+ int _v = 0;
4667
4633
  void *vptr = 0;
4668
4634
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4669
4635
  _v = SWIG_CheckState(res);
@@ -4761,7 +4727,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_volume_adjustment(int nargs, VALUE *a
4761
4727
  argv[ii] = args[ii-1];
4762
4728
  }
4763
4729
  if (argc == 1) {
4764
- int _v;
4730
+ int _v = 0;
4765
4731
  void *vptr = 0;
4766
4732
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4767
4733
  _v = SWIG_CheckState(res);
@@ -4770,7 +4736,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_volume_adjustment(int nargs, VALUE *a
4770
4736
  }
4771
4737
  }
4772
4738
  if (argc == 2) {
4773
- int _v;
4739
+ int _v = 0;
4774
4740
  void *vptr = 0;
4775
4741
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4776
4742
  _v = SWIG_CheckState(res);
@@ -4872,7 +4838,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_volume_adjustment(int nargs, VALU
4872
4838
  argv[ii] = args[ii-1];
4873
4839
  }
4874
4840
  if (argc == 2) {
4875
- int _v;
4841
+ int _v = 0;
4876
4842
  void *vptr = 0;
4877
4843
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4878
4844
  _v = SWIG_CheckState(res);
@@ -4887,7 +4853,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_volume_adjustment(int nargs, VALU
4887
4853
  }
4888
4854
  }
4889
4855
  if (argc == 3) {
4890
- int _v;
4856
+ int _v = 0;
4891
4857
  void *vptr = 0;
4892
4858
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4893
4859
  _v = SWIG_CheckState(res);
@@ -4942,7 +4908,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE self)
4942
4908
  }
4943
4909
  arg2 = static_cast< TagLib::ID3v2::RelativeVolumeFrame::ChannelType >(val2);
4944
4910
  result = ((TagLib::ID3v2::RelativeVolumeFrame const *)arg1)->peakVolume(arg2);
4945
- vresult = SWIG_NewPointerObj((new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume(static_cast< const TagLib::ID3v2::RelativeVolumeFrame::PeakVolume& >(result))), SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, SWIG_POINTER_OWN | 0 );
4911
+ vresult = SWIG_NewPointerObj((new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume(result)), SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, SWIG_POINTER_OWN | 0 );
4946
4912
  return vresult;
4947
4913
  fail:
4948
4914
  return Qnil;
@@ -4966,7 +4932,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE self)
4966
4932
  }
4967
4933
  arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
4968
4934
  result = ((TagLib::ID3v2::RelativeVolumeFrame const *)arg1)->peakVolume();
4969
- vresult = SWIG_NewPointerObj((new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume(static_cast< const TagLib::ID3v2::RelativeVolumeFrame::PeakVolume& >(result))), SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, SWIG_POINTER_OWN | 0 );
4935
+ vresult = SWIG_NewPointerObj((new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume(result)), SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, SWIG_POINTER_OWN | 0 );
4970
4936
  return vresult;
4971
4937
  fail:
4972
4938
  return Qnil;
@@ -4985,7 +4951,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_peak_volume(int nargs, VALUE *args, V
4985
4951
  argv[ii] = args[ii-1];
4986
4952
  }
4987
4953
  if (argc == 1) {
4988
- int _v;
4954
+ int _v = 0;
4989
4955
  void *vptr = 0;
4990
4956
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
4991
4957
  _v = SWIG_CheckState(res);
@@ -4994,7 +4960,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_peak_volume(int nargs, VALUE *args, V
4994
4960
  }
4995
4961
  }
4996
4962
  if (argc == 2) {
4997
- int _v;
4963
+ int _v = 0;
4998
4964
  void *vptr = 0;
4999
4965
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
5000
4966
  _v = SWIG_CheckState(res);
@@ -5025,7 +4991,7 @@ _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE s
5025
4991
  TagLib::ID3v2::RelativeVolumeFrame::ChannelType arg3 ;
5026
4992
  void *argp1 = 0 ;
5027
4993
  int res1 = 0 ;
5028
- void *argp2 ;
4994
+ void *argp2 = 0 ;
5029
4995
  int res2 = 0 ;
5030
4996
  int val3 ;
5031
4997
  int ecode3 = 0 ;
@@ -5064,7 +5030,7 @@ _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE s
5064
5030
  TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg2 = 0 ;
5065
5031
  void *argp1 = 0 ;
5066
5032
  int res1 = 0 ;
5067
- void *argp2 ;
5033
+ void *argp2 = 0 ;
5068
5034
  int res2 = 0 ;
5069
5035
 
5070
5036
  if ((argc < 1) || (argc > 1)) {
@@ -5102,7 +5068,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_peak_volume(int nargs, VALUE *arg
5102
5068
  argv[ii] = args[ii-1];
5103
5069
  }
5104
5070
  if (argc == 2) {
5105
- int _v;
5071
+ int _v = 0;
5106
5072
  void *vptr = 0;
5107
5073
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
5108
5074
  _v = SWIG_CheckState(res);
@@ -5116,7 +5082,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_peak_volume(int nargs, VALUE *arg
5116
5082
  }
5117
5083
  }
5118
5084
  if (argc == 3) {
5119
- int _v;
5085
+ int _v = 0;
5120
5086
  void *vptr = 0;
5121
5087
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, 0);
5122
5088
  _v = SWIG_CheckState(res);
@@ -5200,37 +5166,6 @@ fail:
5200
5166
 
5201
5167
  static swig_class SwigClassPeakVolume;
5202
5168
 
5203
- SWIGINTERN VALUE
5204
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5205
- _wrap_PeakVolume_allocate(VALUE self)
5206
- #else
5207
- _wrap_PeakVolume_allocate(int argc, VALUE *argv, VALUE self)
5208
- #endif
5209
- {
5210
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume);
5211
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5212
- rb_obj_call_init(vresult, argc, argv);
5213
- #endif
5214
- return vresult;
5215
- }
5216
-
5217
-
5218
- SWIGINTERN VALUE
5219
- _wrap_new_PeakVolume(int argc, VALUE *argv, VALUE self) {
5220
- TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *result = 0 ;
5221
-
5222
- if ((argc < 0) || (argc > 0)) {
5223
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5224
- }
5225
- result = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *)new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume();
5226
- DATA_PTR(self) = result;
5227
- SWIG_RubyAddTracking(result, self);
5228
- return self;
5229
- fail:
5230
- return Qnil;
5231
- }
5232
-
5233
-
5234
5169
  SWIGINTERN VALUE
5235
5170
  _wrap_PeakVolume_bits_representing_peak_set(int argc, VALUE *argv, VALUE self) {
5236
5171
  TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *) 0 ;
@@ -5319,33 +5254,112 @@ _wrap_PeakVolume_peak_volume_get(int argc, VALUE *argv, VALUE self) {
5319
5254
  TagLib::ByteVector *result = 0 ;
5320
5255
  VALUE vresult = Qnil;
5321
5256
 
5322
- if ((argc < 0) || (argc > 0)) {
5323
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5324
- }
5325
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5326
- if (!SWIG_IsOK(res1)) {
5327
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","peakVolume", 1, self ));
5257
+ if ((argc < 0) || (argc > 0)) {
5258
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5259
+ }
5260
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5261
+ if (!SWIG_IsOK(res1)) {
5262
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","peakVolume", 1, self ));
5263
+ }
5264
+ arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5265
+ result = (TagLib::ByteVector *)& ((arg1)->peakVolume);
5266
+ {
5267
+ vresult = taglib_bytevector_to_ruby_string(*(result));
5268
+ }
5269
+ return vresult;
5270
+ fail:
5271
+ return Qnil;
5272
+ }
5273
+
5274
+
5275
+ SWIGINTERN VALUE
5276
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5277
+ _wrap_PeakVolume_allocate(VALUE self)
5278
+ #else
5279
+ _wrap_PeakVolume_allocate(int argc, VALUE *argv, VALUE self)
5280
+ #endif
5281
+ {
5282
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume);
5283
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5284
+ rb_obj_call_init(vresult, argc, argv);
5285
+ #endif
5286
+ return vresult;
5287
+ }
5288
+
5289
+
5290
+ SWIGINTERN VALUE
5291
+ _wrap_new_PeakVolume(int argc, VALUE *argv, VALUE self) {
5292
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *result = 0 ;
5293
+
5294
+ if ((argc < 0) || (argc > 0)) {
5295
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5296
+ }
5297
+ result = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *)new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume();
5298
+ DATA_PTR(self) = result;
5299
+ SWIG_RubyAddTracking(result, self);
5300
+ return self;
5301
+ fail:
5302
+ return Qnil;
5303
+ }
5304
+
5305
+
5306
+ SWIGINTERN void
5307
+ free_TagLib_ID3v2_RelativeVolumeFrame_PeakVolume(void *self) {
5308
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *)self;
5309
+ SWIG_RubyRemoveTracking(arg1);
5310
+ delete arg1;
5311
+ }
5312
+
5313
+ static swig_class SwigClassAttachedPictureFrame;
5314
+
5315
+ SWIGINTERN VALUE
5316
+ _wrap_AttachedPictureFrame_type_to_string(int argc, VALUE *argv, VALUE self) {
5317
+ TagLib::ID3v2::AttachedPictureFrame::Type arg1 ;
5318
+ int val1 ;
5319
+ int ecode1 = 0 ;
5320
+ TagLib::String result;
5321
+ VALUE vresult = Qnil;
5322
+
5323
+ if ((argc < 1) || (argc > 1)) {
5324
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5325
+ }
5326
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
5327
+ if (!SWIG_IsOK(ecode1)) {
5328
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::ID3v2::AttachedPictureFrame::Type","TagLib::ID3v2::AttachedPictureFrame::typeToString", 1, argv[0] ));
5329
+ }
5330
+ arg1 = static_cast< TagLib::ID3v2::AttachedPictureFrame::Type >(val1);
5331
+ result = TagLib::ID3v2::AttachedPictureFrame::typeToString(arg1);
5332
+ {
5333
+ vresult = taglib_string_to_ruby_string(result);
5334
+ }
5335
+ return vresult;
5336
+ fail:
5337
+ return Qnil;
5338
+ }
5339
+
5340
+
5341
+ SWIGINTERN VALUE
5342
+ _wrap_AttachedPictureFrame_type_from_string(int argc, VALUE *argv, VALUE self) {
5343
+ TagLib::String *arg1 = 0 ;
5344
+ TagLib::String tmp1 ;
5345
+ TagLib::ID3v2::AttachedPictureFrame::Type result;
5346
+ VALUE vresult = Qnil;
5347
+
5348
+ if ((argc < 1) || (argc > 1)) {
5349
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5328
5350
  }
5329
- arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5330
- result = (TagLib::ByteVector *)& ((arg1)->peakVolume);
5331
5351
  {
5332
- vresult = taglib_bytevector_to_ruby_string(*(result));
5352
+ tmp1 = ruby_string_to_taglib_string(argv[0]);
5353
+ arg1 = &tmp1;
5333
5354
  }
5355
+ result = (TagLib::ID3v2::AttachedPictureFrame::Type)TagLib::ID3v2::AttachedPictureFrame::typeFromString((TagLib::String const &)*arg1);
5356
+ vresult = SWIG_From_int(static_cast< int >(result));
5334
5357
  return vresult;
5335
5358
  fail:
5336
5359
  return Qnil;
5337
5360
  }
5338
5361
 
5339
5362
 
5340
- SWIGINTERN void
5341
- free_TagLib_ID3v2_RelativeVolumeFrame_PeakVolume(void *self) {
5342
- TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *)self;
5343
- SWIG_RubyRemoveTracking(arg1);
5344
- delete arg1;
5345
- }
5346
-
5347
- static swig_class SwigClassAttachedPictureFrame;
5348
-
5349
5363
  SWIGINTERN VALUE
5350
5364
  _wrap_new_AttachedPictureFrame__SWIG_0(int argc, VALUE *argv, VALUE self) {
5351
5365
  TagLib::ID3v2::AttachedPictureFrame *result = 0 ;
@@ -5413,7 +5427,7 @@ SWIGINTERN VALUE _wrap_new_AttachedPictureFrame(int nargs, VALUE *args, VALUE se
5413
5427
  return _wrap_new_AttachedPictureFrame__SWIG_0(nargs, args, self);
5414
5428
  }
5415
5429
  if (argc == 1) {
5416
- int _v;
5430
+ int _v = 0;
5417
5431
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
5418
5432
  _v = SWIG_CheckState(res);
5419
5433
  if (_v) {
@@ -5463,6 +5477,32 @@ fail:
5463
5477
  }
5464
5478
 
5465
5479
 
5480
+ SWIGINTERN VALUE
5481
+ _wrap_AttachedPictureFrame_to_string_list(int argc, VALUE *argv, VALUE self) {
5482
+ TagLib::ID3v2::AttachedPictureFrame *arg1 = (TagLib::ID3v2::AttachedPictureFrame *) 0 ;
5483
+ void *argp1 = 0 ;
5484
+ int res1 = 0 ;
5485
+ TagLib::StringList result;
5486
+ VALUE vresult = Qnil;
5487
+
5488
+ if ((argc < 0) || (argc > 0)) {
5489
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5490
+ }
5491
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__AttachedPictureFrame, 0 | 0 );
5492
+ if (!SWIG_IsOK(res1)) {
5493
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::AttachedPictureFrame const *","toStringList", 1, self ));
5494
+ }
5495
+ arg1 = reinterpret_cast< TagLib::ID3v2::AttachedPictureFrame * >(argp1);
5496
+ result = ((TagLib::ID3v2::AttachedPictureFrame const *)arg1)->toStringList();
5497
+ {
5498
+ vresult = taglib_string_list_to_ruby_array(result);
5499
+ }
5500
+ return vresult;
5501
+ fail:
5502
+ return Qnil;
5503
+ }
5504
+
5505
+
5466
5506
  SWIGINTERN VALUE
5467
5507
  _wrap_AttachedPictureFrame_text_encoding(int argc, VALUE *argv, VALUE self) {
5468
5508
  TagLib::ID3v2::AttachedPictureFrame *arg1 = (TagLib::ID3v2::AttachedPictureFrame *) 0 ;
@@ -5786,7 +5826,7 @@ _wrap_new_ChapterFrame__SWIG_1(int argc, VALUE *argv, VALUE self) {
5786
5826
  int ecode4 = 0 ;
5787
5827
  unsigned int val5 ;
5788
5828
  int ecode5 = 0 ;
5789
- void *argp6 ;
5829
+ void *argp6 = 0 ;
5790
5830
  int res6 = 0 ;
5791
5831
  TagLib::ID3v2::ChapterFrame *result = 0 ;
5792
5832
 
@@ -5914,7 +5954,7 @@ SWIGINTERN VALUE _wrap_new_ChapterFrame(int nargs, VALUE *args, VALUE self) {
5914
5954
  argv[ii] = args[ii];
5915
5955
  }
5916
5956
  if (argc == 2) {
5917
- int _v;
5957
+ int _v = 0;
5918
5958
  void *vptr = 0;
5919
5959
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__Header, 0);
5920
5960
  _v = SWIG_CheckState(res);
@@ -5927,7 +5967,7 @@ SWIGINTERN VALUE _wrap_new_ChapterFrame(int nargs, VALUE *args, VALUE self) {
5927
5967
  }
5928
5968
  }
5929
5969
  if (argc == 5) {
5930
- int _v;
5970
+ int _v = 0;
5931
5971
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
5932
5972
  _v = SWIG_CheckState(res);
5933
5973
  if (_v) {
@@ -5959,7 +5999,7 @@ SWIGINTERN VALUE _wrap_new_ChapterFrame(int nargs, VALUE *args, VALUE self) {
5959
5999
  }
5960
6000
  }
5961
6001
  if (argc == 6) {
5962
- int _v;
6002
+ int _v = 0;
5963
6003
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
5964
6004
  _v = SWIG_CheckState(res);
5965
6005
  if (_v) {
@@ -6380,7 +6420,7 @@ SWIGINTERN VALUE _wrap_ChapterFrame_embedded_frame_list(int nargs, VALUE *args,
6380
6420
  argv[ii] = args[ii-1];
6381
6421
  }
6382
6422
  if (argc == 1) {
6383
- int _v;
6423
+ int _v = 0;
6384
6424
  void *vptr = 0;
6385
6425
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__ChapterFrame, 0);
6386
6426
  _v = SWIG_CheckState(res);
@@ -6389,7 +6429,7 @@ SWIGINTERN VALUE _wrap_ChapterFrame_embedded_frame_list(int nargs, VALUE *args,
6389
6429
  }
6390
6430
  }
6391
6431
  if (argc == 2) {
6392
- int _v;
6432
+ int _v = 0;
6393
6433
  void *vptr = 0;
6394
6434
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__ChapterFrame, 0);
6395
6435
  _v = SWIG_CheckState(res);
@@ -6518,7 +6558,7 @@ SWIGINTERN VALUE _wrap_ChapterFrame_remove_embedded_frame(int nargs, VALUE *args
6518
6558
  argv[ii] = args[ii-1];
6519
6559
  }
6520
6560
  if (argc == 2) {
6521
- int _v;
6561
+ int _v = 0;
6522
6562
  void *vptr = 0;
6523
6563
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__ChapterFrame, 0);
6524
6564
  _v = SWIG_CheckState(res);
@@ -6532,7 +6572,7 @@ SWIGINTERN VALUE _wrap_ChapterFrame_remove_embedded_frame(int nargs, VALUE *args
6532
6572
  }
6533
6573
  }
6534
6574
  if (argc == 3) {
6535
- int _v;
6575
+ int _v = 0;
6536
6576
  void *vptr = 0;
6537
6577
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__ChapterFrame, 0);
6538
6578
  _v = SWIG_CheckState(res);
@@ -6737,7 +6777,7 @@ SWIGINTERN VALUE _wrap_new_CommentsFrame(int nargs, VALUE *args, VALUE self) {
6737
6777
  return _wrap_new_CommentsFrame__SWIG_1(nargs, args, self);
6738
6778
  }
6739
6779
  if (argc == 1) {
6740
- int _v;
6780
+ int _v = 0;
6741
6781
  {
6742
6782
  int res = SWIG_AsVal_int(argv[0], NULL);
6743
6783
  _v = SWIG_CheckState(res);
@@ -6747,7 +6787,7 @@ SWIGINTERN VALUE _wrap_new_CommentsFrame(int nargs, VALUE *args, VALUE self) {
6747
6787
  }
6748
6788
  }
6749
6789
  if (argc == 1) {
6750
- int _v;
6790
+ int _v = 0;
6751
6791
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6752
6792
  _v = SWIG_CheckState(res);
6753
6793
  if (_v) {
@@ -7109,7 +7149,7 @@ SWIGINTERN VALUE _wrap_new_GeneralEncapsulatedObjectFrame(int nargs, VALUE *args
7109
7149
  return _wrap_new_GeneralEncapsulatedObjectFrame__SWIG_0(nargs, args, self);
7110
7150
  }
7111
7151
  if (argc == 1) {
7112
- int _v;
7152
+ int _v = 0;
7113
7153
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
7114
7154
  _v = SWIG_CheckState(res);
7115
7155
  if (_v) {
@@ -7159,6 +7199,32 @@ fail:
7159
7199
  }
7160
7200
 
7161
7201
 
7202
+ SWIGINTERN VALUE
7203
+ _wrap_GeneralEncapsulatedObjectFrame_to_string_list(int argc, VALUE *argv, VALUE self) {
7204
+ TagLib::ID3v2::GeneralEncapsulatedObjectFrame *arg1 = (TagLib::ID3v2::GeneralEncapsulatedObjectFrame *) 0 ;
7205
+ void *argp1 = 0 ;
7206
+ int res1 = 0 ;
7207
+ TagLib::StringList result;
7208
+ VALUE vresult = Qnil;
7209
+
7210
+ if ((argc < 0) || (argc > 0)) {
7211
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7212
+ }
7213
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame, 0 | 0 );
7214
+ if (!SWIG_IsOK(res1)) {
7215
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::GeneralEncapsulatedObjectFrame const *","toStringList", 1, self ));
7216
+ }
7217
+ arg1 = reinterpret_cast< TagLib::ID3v2::GeneralEncapsulatedObjectFrame * >(argp1);
7218
+ result = ((TagLib::ID3v2::GeneralEncapsulatedObjectFrame const *)arg1)->toStringList();
7219
+ {
7220
+ vresult = taglib_string_list_to_ruby_array(result);
7221
+ }
7222
+ return vresult;
7223
+ fail:
7224
+ return Qnil;
7225
+ }
7226
+
7227
+
7162
7228
  SWIGINTERN VALUE
7163
7229
  _wrap_GeneralEncapsulatedObjectFrame_text_encoding(int argc, VALUE *argv, VALUE self) {
7164
7230
  TagLib::ID3v2::GeneralEncapsulatedObjectFrame *arg1 = (TagLib::ID3v2::GeneralEncapsulatedObjectFrame *) 0 ;
@@ -7493,7 +7559,7 @@ SWIGINTERN VALUE _wrap_new_PopularimeterFrame(int nargs, VALUE *args, VALUE self
7493
7559
  return _wrap_new_PopularimeterFrame__SWIG_0(nargs, args, self);
7494
7560
  }
7495
7561
  if (argc == 1) {
7496
- int _v;
7562
+ int _v = 0;
7497
7563
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
7498
7564
  _v = SWIG_CheckState(res);
7499
7565
  if (_v) {
@@ -7543,6 +7609,32 @@ fail:
7543
7609
  }
7544
7610
 
7545
7611
 
7612
+ SWIGINTERN VALUE
7613
+ _wrap_PopularimeterFrame_to_string_list(int argc, VALUE *argv, VALUE self) {
7614
+ TagLib::ID3v2::PopularimeterFrame *arg1 = (TagLib::ID3v2::PopularimeterFrame *) 0 ;
7615
+ void *argp1 = 0 ;
7616
+ int res1 = 0 ;
7617
+ TagLib::StringList result;
7618
+ VALUE vresult = Qnil;
7619
+
7620
+ if ((argc < 0) || (argc > 0)) {
7621
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7622
+ }
7623
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__PopularimeterFrame, 0 | 0 );
7624
+ if (!SWIG_IsOK(res1)) {
7625
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::PopularimeterFrame const *","toStringList", 1, self ));
7626
+ }
7627
+ arg1 = reinterpret_cast< TagLib::ID3v2::PopularimeterFrame * >(argp1);
7628
+ result = ((TagLib::ID3v2::PopularimeterFrame const *)arg1)->toStringList();
7629
+ {
7630
+ vresult = taglib_string_list_to_ruby_array(result);
7631
+ }
7632
+ return vresult;
7633
+ fail:
7634
+ return Qnil;
7635
+ }
7636
+
7637
+
7546
7638
  SWIGINTERN VALUE
7547
7639
  _wrap_PopularimeterFrame_email(int argc, VALUE *argv, VALUE self) {
7548
7640
  TagLib::ID3v2::PopularimeterFrame *arg1 = (TagLib::ID3v2::PopularimeterFrame *) 0 ;
@@ -7771,7 +7863,7 @@ SWIGINTERN VALUE _wrap_new_PrivateFrame(int nargs, VALUE *args, VALUE self) {
7771
7863
  return _wrap_new_PrivateFrame__SWIG_0(nargs, args, self);
7772
7864
  }
7773
7865
  if (argc == 1) {
7774
- int _v;
7866
+ int _v = 0;
7775
7867
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
7776
7868
  _v = SWIG_CheckState(res);
7777
7869
  if (_v) {
@@ -7966,7 +8058,7 @@ _wrap_new_TableOfContentsFrame__SWIG_1(int argc, VALUE *argv, VALUE self) {
7966
8058
  TagLib::ID3v2::FrameList *arg3 = 0 ;
7967
8059
  TagLib::ByteVector tmp1 ;
7968
8060
  TagLib::ByteVectorList tmp2 ;
7969
- void *argp3 ;
8061
+ void *argp3 = 0 ;
7970
8062
  int res3 = 0 ;
7971
8063
  TagLib::ID3v2::TableOfContentsFrame *result = 0 ;
7972
8064
 
@@ -8074,7 +8166,7 @@ SWIGINTERN VALUE _wrap_new_TableOfContentsFrame(int nargs, VALUE *args, VALUE se
8074
8166
  argv[ii] = args[ii];
8075
8167
  }
8076
8168
  if (argc == 1) {
8077
- int _v;
8169
+ int _v = 0;
8078
8170
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
8079
8171
  _v = SWIG_CheckState(res);
8080
8172
  if (_v) {
@@ -8082,7 +8174,7 @@ SWIGINTERN VALUE _wrap_new_TableOfContentsFrame(int nargs, VALUE *args, VALUE se
8082
8174
  }
8083
8175
  }
8084
8176
  if (argc == 2) {
8085
- int _v;
8177
+ int _v = 0;
8086
8178
  void *vptr = 0;
8087
8179
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__Header, 0);
8088
8180
  _v = SWIG_CheckState(res);
@@ -8095,7 +8187,7 @@ SWIGINTERN VALUE _wrap_new_TableOfContentsFrame(int nargs, VALUE *args, VALUE se
8095
8187
  }
8096
8188
  }
8097
8189
  if (argc == 2) {
8098
- int _v;
8190
+ int _v = 0;
8099
8191
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
8100
8192
  _v = SWIG_CheckState(res);
8101
8193
  if (_v) {
@@ -8108,7 +8200,7 @@ SWIGINTERN VALUE _wrap_new_TableOfContentsFrame(int nargs, VALUE *args, VALUE se
8108
8200
  }
8109
8201
  }
8110
8202
  if (argc == 3) {
8111
- int _v;
8203
+ int _v = 0;
8112
8204
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
8113
8205
  _v = SWIG_CheckState(res);
8114
8206
  if (_v) {
@@ -8532,7 +8624,7 @@ SWIGINTERN VALUE _wrap_TableOfContentsFrame_embedded_frame_list(int nargs, VALUE
8532
8624
  argv[ii] = args[ii-1];
8533
8625
  }
8534
8626
  if (argc == 1) {
8535
- int _v;
8627
+ int _v = 0;
8536
8628
  void *vptr = 0;
8537
8629
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__TableOfContentsFrame, 0);
8538
8630
  _v = SWIG_CheckState(res);
@@ -8541,7 +8633,7 @@ SWIGINTERN VALUE _wrap_TableOfContentsFrame_embedded_frame_list(int nargs, VALUE
8541
8633
  }
8542
8634
  }
8543
8635
  if (argc == 2) {
8544
- int _v;
8636
+ int _v = 0;
8545
8637
  void *vptr = 0;
8546
8638
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__TableOfContentsFrame, 0);
8547
8639
  _v = SWIG_CheckState(res);
@@ -8670,7 +8762,7 @@ SWIGINTERN VALUE _wrap_TableOfContentsFrame_remove_embedded_frame(int nargs, VAL
8670
8762
  argv[ii] = args[ii-1];
8671
8763
  }
8672
8764
  if (argc == 2) {
8673
- int _v;
8765
+ int _v = 0;
8674
8766
  void *vptr = 0;
8675
8767
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__TableOfContentsFrame, 0);
8676
8768
  _v = SWIG_CheckState(res);
@@ -8684,7 +8776,7 @@ SWIGINTERN VALUE _wrap_TableOfContentsFrame_remove_embedded_frame(int nargs, VAL
8684
8776
  }
8685
8777
  }
8686
8778
  if (argc == 3) {
8687
- int _v;
8779
+ int _v = 0;
8688
8780
  void *vptr = 0;
8689
8781
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ID3v2__TableOfContentsFrame, 0);
8690
8782
  _v = SWIG_CheckState(res);
@@ -8991,6 +9083,32 @@ fail:
8991
9083
  }
8992
9084
 
8993
9085
 
9086
+ SWIGINTERN VALUE
9087
+ _wrap_TextIdentificationFrame_to_string_list(int argc, VALUE *argv, VALUE self) {
9088
+ TagLib::ID3v2::TextIdentificationFrame *arg1 = (TagLib::ID3v2::TextIdentificationFrame *) 0 ;
9089
+ void *argp1 = 0 ;
9090
+ int res1 = 0 ;
9091
+ TagLib::StringList result;
9092
+ VALUE vresult = Qnil;
9093
+
9094
+ if ((argc < 0) || (argc > 0)) {
9095
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9096
+ }
9097
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__TextIdentificationFrame, 0 | 0 );
9098
+ if (!SWIG_IsOK(res1)) {
9099
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::TextIdentificationFrame const *","toStringList", 1, self ));
9100
+ }
9101
+ arg1 = reinterpret_cast< TagLib::ID3v2::TextIdentificationFrame * >(argp1);
9102
+ result = ((TagLib::ID3v2::TextIdentificationFrame const *)arg1)->toStringList();
9103
+ {
9104
+ vresult = taglib_string_list_to_ruby_array(result);
9105
+ }
9106
+ return vresult;
9107
+ fail:
9108
+ return Qnil;
9109
+ }
9110
+
9111
+
8994
9112
  SWIGINTERN VALUE
8995
9113
  _wrap_TextIdentificationFrame_text_encoding(int argc, VALUE *argv, VALUE self) {
8996
9114
  TagLib::ID3v2::TextIdentificationFrame *arg1 = (TagLib::ID3v2::TextIdentificationFrame *) 0 ;
@@ -9227,7 +9345,7 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
9227
9345
  return _wrap_new_UserTextIdentificationFrame__SWIG_1(nargs, args, self);
9228
9346
  }
9229
9347
  if (argc == 1) {
9230
- int _v;
9348
+ int _v = 0;
9231
9349
  {
9232
9350
  int res = SWIG_AsVal_int(argv[0], NULL);
9233
9351
  _v = SWIG_CheckState(res);
@@ -9237,7 +9355,7 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
9237
9355
  }
9238
9356
  }
9239
9357
  if (argc == 1) {
9240
- int _v;
9358
+ int _v = 0;
9241
9359
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9242
9360
  _v = SWIG_CheckState(res);
9243
9361
  if (_v) {
@@ -9245,7 +9363,7 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
9245
9363
  }
9246
9364
  }
9247
9365
  if (argc == 2) {
9248
- int _v;
9366
+ int _v = 0;
9249
9367
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9250
9368
  _v = SWIG_CheckState(res);
9251
9369
  if (_v) {
@@ -9258,7 +9376,7 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
9258
9376
  }
9259
9377
  }
9260
9378
  if (argc == 3) {
9261
- int _v;
9379
+ int _v = 0;
9262
9380
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9263
9381
  _v = SWIG_CheckState(res);
9264
9382
  if (_v) {
@@ -9289,6 +9407,13 @@ fail:
9289
9407
  }
9290
9408
 
9291
9409
 
9410
+ SWIGINTERN void
9411
+ free_TagLib_ID3v2_UserTextIdentificationFrame(void *self) {
9412
+ TagLib::ID3v2::UserTextIdentificationFrame *arg1 = (TagLib::ID3v2::UserTextIdentificationFrame *)self;
9413
+ SWIG_RubyRemoveTracking(arg1);
9414
+ delete arg1;
9415
+ }
9416
+
9292
9417
  SWIGINTERN VALUE
9293
9418
  _wrap_UserTextIdentificationFrame_to_string(int argc, VALUE *argv, VALUE self) {
9294
9419
  TagLib::ID3v2::UserTextIdentificationFrame *arg1 = (TagLib::ID3v2::UserTextIdentificationFrame *) 0 ;
@@ -9368,32 +9493,6 @@ fail:
9368
9493
  }
9369
9494
 
9370
9495
 
9371
- SWIGINTERN VALUE
9372
- _wrap_UserTextIdentificationFrame_field_list(int argc, VALUE *argv, VALUE self) {
9373
- TagLib::ID3v2::UserTextIdentificationFrame *arg1 = (TagLib::ID3v2::UserTextIdentificationFrame *) 0 ;
9374
- void *argp1 = 0 ;
9375
- int res1 = 0 ;
9376
- TagLib::StringList result;
9377
- VALUE vresult = Qnil;
9378
-
9379
- if ((argc < 0) || (argc > 0)) {
9380
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9381
- }
9382
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__UserTextIdentificationFrame, 0 | 0 );
9383
- if (!SWIG_IsOK(res1)) {
9384
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::UserTextIdentificationFrame const *","fieldList", 1, self ));
9385
- }
9386
- arg1 = reinterpret_cast< TagLib::ID3v2::UserTextIdentificationFrame * >(argp1);
9387
- result = ((TagLib::ID3v2::UserTextIdentificationFrame const *)arg1)->fieldList();
9388
- {
9389
- vresult = taglib_string_list_to_ruby_array(result);
9390
- }
9391
- return vresult;
9392
- fail:
9393
- return Qnil;
9394
- }
9395
-
9396
-
9397
9496
  SWIGINTERN VALUE
9398
9497
  _wrap_UserTextIdentificationFrame_texte___(int argc, VALUE *argv, VALUE self) {
9399
9498
  TagLib::ID3v2::UserTextIdentificationFrame *arg1 = (TagLib::ID3v2::UserTextIdentificationFrame *) 0 ;
@@ -9471,14 +9570,14 @@ _wrap_UserTextIdentificationFrame_find(int argc, VALUE *argv, VALUE self) {
9471
9570
  }
9472
9571
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__ID3v2__Tag, 0 | 0 );
9473
9572
  if (!SWIG_IsOK(res1)) {
9474
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Tag *","TagLib::ID3v2::UserTextIdentificationFrame::find", 1, argv[0] ));
9573
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Tag const *","TagLib::ID3v2::UserTextIdentificationFrame::find", 1, argv[0] ));
9475
9574
  }
9476
9575
  arg1 = reinterpret_cast< TagLib::ID3v2::Tag * >(argp1);
9477
9576
  {
9478
9577
  tmp2 = ruby_string_to_taglib_string(argv[1]);
9479
9578
  arg2 = &tmp2;
9480
9579
  }
9481
- result = (TagLib::ID3v2::UserTextIdentificationFrame *)TagLib::ID3v2::UserTextIdentificationFrame::find(arg1,(TagLib::String const &)*arg2);
9580
+ result = (TagLib::ID3v2::UserTextIdentificationFrame *)TagLib::ID3v2::UserTextIdentificationFrame::find((TagLib::ID3v2::Tag const *)arg1,(TagLib::String const &)*arg2);
9482
9581
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TagLib__ID3v2__UserTextIdentificationFrame, 0 | 0 );
9483
9582
  return vresult;
9484
9583
  fail:
@@ -9486,13 +9585,54 @@ fail:
9486
9585
  }
9487
9586
 
9488
9587
 
9489
- SWIGINTERN void
9490
- free_TagLib_ID3v2_UserTextIdentificationFrame(void *self) {
9491
- TagLib::ID3v2::UserTextIdentificationFrame *arg1 = (TagLib::ID3v2::UserTextIdentificationFrame *)self;
9492
- SWIG_RubyRemoveTracking(arg1);
9493
- delete arg1;
9588
+ SWIGINTERN VALUE
9589
+ _wrap_UserTextIdentificationFrame_key_to_txxx(int argc, VALUE *argv, VALUE self) {
9590
+ TagLib::String *arg1 = 0 ;
9591
+ TagLib::String tmp1 ;
9592
+ TagLib::String result;
9593
+ VALUE vresult = Qnil;
9594
+
9595
+ if ((argc < 1) || (argc > 1)) {
9596
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9597
+ }
9598
+ {
9599
+ tmp1 = ruby_string_to_taglib_string(argv[0]);
9600
+ arg1 = &tmp1;
9601
+ }
9602
+ result = TagLib::ID3v2::UserTextIdentificationFrame::keyToTXXX((TagLib::String const &)*arg1);
9603
+ {
9604
+ vresult = taglib_string_to_ruby_string(result);
9605
+ }
9606
+ return vresult;
9607
+ fail:
9608
+ return Qnil;
9609
+ }
9610
+
9611
+
9612
+ SWIGINTERN VALUE
9613
+ _wrap_UserTextIdentificationFrame_txxx_to_key(int argc, VALUE *argv, VALUE self) {
9614
+ TagLib::String *arg1 = 0 ;
9615
+ TagLib::String tmp1 ;
9616
+ TagLib::String result;
9617
+ VALUE vresult = Qnil;
9618
+
9619
+ if ((argc < 1) || (argc > 1)) {
9620
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9621
+ }
9622
+ {
9623
+ tmp1 = ruby_string_to_taglib_string(argv[0]);
9624
+ arg1 = &tmp1;
9625
+ }
9626
+ result = TagLib::ID3v2::UserTextIdentificationFrame::txxxToKey((TagLib::String const &)*arg1);
9627
+ {
9628
+ vresult = taglib_string_to_ruby_string(result);
9629
+ }
9630
+ return vresult;
9631
+ fail:
9632
+ return Qnil;
9494
9633
  }
9495
9634
 
9635
+
9496
9636
  static swig_class SwigClassUniqueFileIdentifierFrame;
9497
9637
 
9498
9638
  SWIGINTERN VALUE
@@ -9571,7 +9711,7 @@ SWIGINTERN VALUE _wrap_new_UniqueFileIdentifierFrame(int nargs, VALUE *args, VAL
9571
9711
  argv[ii] = args[ii];
9572
9712
  }
9573
9713
  if (argc == 1) {
9574
- int _v;
9714
+ int _v = 0;
9575
9715
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9576
9716
  _v = SWIG_CheckState(res);
9577
9717
  if (_v) {
@@ -9579,7 +9719,7 @@ SWIGINTERN VALUE _wrap_new_UniqueFileIdentifierFrame(int nargs, VALUE *args, VAL
9579
9719
  }
9580
9720
  }
9581
9721
  if (argc == 2) {
9582
- int _v;
9722
+ int _v = 0;
9583
9723
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9584
9724
  _v = SWIG_CheckState(res);
9585
9725
  if (_v) {
@@ -9930,7 +10070,7 @@ SWIGINTERN VALUE _wrap_new_UnsynchronizedLyricsFrame(int nargs, VALUE *args, VAL
9930
10070
  return _wrap_new_UnsynchronizedLyricsFrame__SWIG_1(nargs, args, self);
9931
10071
  }
9932
10072
  if (argc == 1) {
9933
- int _v;
10073
+ int _v = 0;
9934
10074
  {
9935
10075
  int res = SWIG_AsVal_int(argv[0], NULL);
9936
10076
  _v = SWIG_CheckState(res);
@@ -9940,7 +10080,7 @@ SWIGINTERN VALUE _wrap_new_UnsynchronizedLyricsFrame(int nargs, VALUE *args, VAL
9940
10080
  }
9941
10081
  }
9942
10082
  if (argc == 1) {
9943
- int _v;
10083
+ int _v = 0;
9944
10084
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
9945
10085
  _v = SWIG_CheckState(res);
9946
10086
  if (_v) {
@@ -10448,7 +10588,7 @@ SWIGINTERN VALUE _wrap_new_UserUrlLinkFrame(int nargs, VALUE *args, VALUE self)
10448
10588
  return _wrap_new_UserUrlLinkFrame__SWIG_1(nargs, args, self);
10449
10589
  }
10450
10590
  if (argc == 1) {
10451
- int _v;
10591
+ int _v = 0;
10452
10592
  {
10453
10593
  int res = SWIG_AsVal_int(argv[0], NULL);
10454
10594
  _v = SWIG_CheckState(res);
@@ -10458,7 +10598,7 @@ SWIGINTERN VALUE _wrap_new_UserUrlLinkFrame(int nargs, VALUE *args, VALUE self)
10458
10598
  }
10459
10599
  }
10460
10600
  if (argc == 1) {
10461
- int _v;
10601
+ int _v = 0;
10462
10602
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
10463
10603
  _v = SWIG_CheckState(res);
10464
10604
  if (_v) {
@@ -10618,67 +10758,67 @@ fail:
10618
10758
 
10619
10759
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
10620
10760
 
10621
- static void *_p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__UrlLinkFrame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10622
- return (void *)((TagLib::ID3v2::UrlLinkFrame *) ((TagLib::ID3v2::UserUrlLinkFrame *) x));
10623
- }
10624
- static void *_p_TagLib__ID3v2__TableOfContentsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10625
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::TableOfContentsFrame *) x));
10761
+ static void *_p_TagLib__ID3v2__AttachedPictureFrameV22To_p_TagLib__ID3v2__AttachedPictureFrame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10762
+ return (void *)((TagLib::ID3v2::AttachedPictureFrame *) ((TagLib::ID3v2::AttachedPictureFrameV22 *) x));
10626
10763
  }
10627
- static void *_p_TagLib__ID3v2__CommentsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10628
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::CommentsFrame *) x));
10764
+ static void *_p_TagLib__ID3v2__AttachedPictureFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10765
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::AttachedPictureFrame *) x));
10629
10766
  }
10630
10767
  static void *_p_TagLib__ID3v2__AttachedPictureFrameV22To_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10631
10768
  return (void *)((TagLib::ID3v2::Frame *) (TagLib::ID3v2::AttachedPictureFrame *) ((TagLib::ID3v2::AttachedPictureFrameV22 *) x));
10632
10769
  }
10633
- static void *_p_TagLib__ID3v2__UrlLinkFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10634
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UrlLinkFrame *) x));
10635
- }
10636
- static void *_p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10637
- return (void *)((TagLib::ID3v2::Frame *) (TagLib::ID3v2::UrlLinkFrame *) ((TagLib::ID3v2::UserUrlLinkFrame *) x));
10638
- }
10639
- static void *_p_TagLib__ID3v2__UniqueFileIdentifierFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10640
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UniqueFileIdentifierFrame *) x));
10641
- }
10642
- static void *_p_TagLib__ID3v2__PopularimeterFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10643
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::PopularimeterFrame *) x));
10644
- }
10645
10770
  static void *_p_TagLib__ID3v2__ChapterFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10646
10771
  return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::ChapterFrame *) x));
10647
10772
  }
10648
- static void *_p_TagLib__ID3v2__UnsynchronizedLyricsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10649
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UnsynchronizedLyricsFrame *) x));
10773
+ static void *_p_TagLib__ID3v2__CommentsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10774
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::CommentsFrame *) x));
10650
10775
  }
10651
10776
  static void *_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10652
10777
  return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::GeneralEncapsulatedObjectFrame *) x));
10653
10778
  }
10779
+ static void *_p_TagLib__ID3v2__PopularimeterFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10780
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::PopularimeterFrame *) x));
10781
+ }
10654
10782
  static void *_p_TagLib__ID3v2__PrivateFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10655
10783
  return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::PrivateFrame *) x));
10656
10784
  }
10657
- static void *_p_TagLib__ID3v2__AttachedPictureFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10658
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::AttachedPictureFrame *) x));
10659
- }
10660
10785
  static void *_p_TagLib__ID3v2__RelativeVolumeFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10661
10786
  return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::RelativeVolumeFrame *) x));
10662
10787
  }
10788
+ static void *_p_TagLib__ID3v2__TableOfContentsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10789
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::TableOfContentsFrame *) x));
10790
+ }
10791
+ static void *_p_TagLib__ID3v2__TextIdentificationFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10792
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::TextIdentificationFrame *) x));
10793
+ }
10794
+ static void *_p_TagLib__ID3v2__UniqueFileIdentifierFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10795
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UniqueFileIdentifierFrame *) x));
10796
+ }
10663
10797
  static void *_p_TagLib__ID3v2__UnknownFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10664
10798
  return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UnknownFrame *) x));
10665
10799
  }
10800
+ static void *_p_TagLib__ID3v2__UnsynchronizedLyricsFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10801
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UnsynchronizedLyricsFrame *) x));
10802
+ }
10803
+ static void *_p_TagLib__ID3v2__UrlLinkFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10804
+ return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::UrlLinkFrame *) x));
10805
+ }
10666
10806
  static void *_p_TagLib__ID3v2__UserTextIdentificationFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10667
10807
  return (void *)((TagLib::ID3v2::Frame *) (TagLib::ID3v2::TextIdentificationFrame *) ((TagLib::ID3v2::UserTextIdentificationFrame *) x));
10668
10808
  }
10669
- static void *_p_TagLib__ID3v2__TextIdentificationFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10670
- return (void *)((TagLib::ID3v2::Frame *) ((TagLib::ID3v2::TextIdentificationFrame *) x));
10671
- }
10672
- static void *_p_TagLib__ID3v2__TagTo_p_TagLib__Tag(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10673
- return (void *)((TagLib::Tag *) ((TagLib::ID3v2::Tag *) x));
10809
+ static void *_p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__Frame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10810
+ return (void *)((TagLib::ID3v2::Frame *) (TagLib::ID3v2::UrlLinkFrame *) ((TagLib::ID3v2::UserUrlLinkFrame *) x));
10674
10811
  }
10675
10812
  static void *_p_TagLib__ID3v2__UserTextIdentificationFrameTo_p_TagLib__ID3v2__TextIdentificationFrame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10676
10813
  return (void *)((TagLib::ID3v2::TextIdentificationFrame *) ((TagLib::ID3v2::UserTextIdentificationFrame *) x));
10677
10814
  }
10678
- static void *_p_TagLib__ID3v2__AttachedPictureFrameV22To_p_TagLib__ID3v2__AttachedPictureFrame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10679
- return (void *)((TagLib::ID3v2::AttachedPictureFrame *) ((TagLib::ID3v2::AttachedPictureFrameV22 *) x));
10815
+ static void *_p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__UrlLinkFrame(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10816
+ return (void *)((TagLib::ID3v2::UrlLinkFrame *) ((TagLib::ID3v2::UserUrlLinkFrame *) x));
10680
10817
  }
10681
- static swig_type_info _swigt__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t = {"_p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t", "Map< TagLib::ByteVector,TagLib::List< TagLib::ID3v2::Frame * > > *|TagLib::ID3v2::FrameListMap *", 0, 0, (void*)0, 0};
10818
+ static void *_p_TagLib__ID3v2__TagTo_p_TagLib__Tag(void *x, int *SWIGUNUSEDPARM(newmemory)) {
10819
+ return (void *)((TagLib::Tag *) ((TagLib::ID3v2::Tag *) x));
10820
+ }
10821
+ static swig_type_info _swigt__p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t = {"_p_MapT_TagLib__ByteVector_TagLib__ListT_TagLib__ID3v2__Frame_p_t_t", "TagLib::ID3v2::FrameListMap *|Map< TagLib::ByteVector,TagLib::List< TagLib::ID3v2::Frame * > > *", 0, 0, (void*)0, 0};
10682
10822
  static swig_type_info _swigt__p_TagLib__ByteVector = {"_p_TagLib__ByteVector", "TagLib::ByteVector *", 0, 0, (void*)0, 0};
10683
10823
  static swig_type_info _swigt__p_TagLib__ByteVectorList = {"_p_TagLib__ByteVectorList", "TagLib::ByteVectorList *", 0, 0, (void*)0, 0};
10684
10824
  static swig_type_info _swigt__p_TagLib__File = {"_p_TagLib__File", "TagLib::File *", 0, 0, (void*)0, 0};
@@ -10687,9 +10827,9 @@ static swig_type_info _swigt__p_TagLib__ID3v2__AttachedPictureFrameV22 = {"_p_Ta
10687
10827
  static swig_type_info _swigt__p_TagLib__ID3v2__ChapterFrame = {"_p_TagLib__ID3v2__ChapterFrame", "TagLib::ID3v2::ChapterFrame *", 0, 0, (void*)0, 0};
10688
10828
  static swig_type_info _swigt__p_TagLib__ID3v2__CommentsFrame = {"_p_TagLib__ID3v2__CommentsFrame", "TagLib::ID3v2::CommentsFrame *", 0, 0, (void*)0, 0};
10689
10829
  static swig_type_info _swigt__p_TagLib__ID3v2__ExtendedHeader = {"_p_TagLib__ID3v2__ExtendedHeader", "TagLib::ID3v2::ExtendedHeader *", 0, 0, (void*)0, 0};
10690
- static swig_type_info _swigt__p_TagLib__ID3v2__Footer = {"_p_TagLib__ID3v2__Footer", "TagLib::ID3v2::Footer *", 0, 0, (void*)0, 0};
10691
10830
  static swig_type_info _swigt__p_TagLib__ID3v2__Frame = {"_p_TagLib__ID3v2__Frame", "TagLib::ID3v2::Frame *", 0, 0, (void*)0, 0};
10692
10831
  static swig_type_info _swigt__p_TagLib__ID3v2__FrameFactory = {"_p_TagLib__ID3v2__FrameFactory", "TagLib::ID3v2::FrameFactory *", 0, 0, (void*)0, 0};
10832
+ static swig_type_info _swigt__p_TagLib__ID3v2__Frame__Header = {"_p_TagLib__ID3v2__Frame__Header", "TagLib::ID3v2::Frame::Header *", 0, 0, (void*)0, 0};
10693
10833
  static swig_type_info _swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame = {"_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame", "TagLib::ID3v2::GeneralEncapsulatedObjectFrame *", 0, 0, (void*)0, 0};
10694
10834
  static swig_type_info _swigt__p_TagLib__ID3v2__Header = {"_p_TagLib__ID3v2__Header", "TagLib::ID3v2::Header *", 0, 0, (void*)0, 0};
10695
10835
  static swig_type_info _swigt__p_TagLib__ID3v2__PopularimeterFrame = {"_p_TagLib__ID3v2__PopularimeterFrame", "TagLib::ID3v2::PopularimeterFrame *", 0, 0, (void*)0, 0};
@@ -10708,8 +10848,9 @@ static swig_type_info _swigt__p_TagLib__ID3v2__UserUrlLinkFrame = {"_p_TagLib__I
10708
10848
  static swig_type_info _swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t = {"_p_TagLib__ListT_TagLib__ID3v2__Frame_p_t", "TagLib::ID3v2::FrameList *|TagLib::List< TagLib::ID3v2::Frame * > *", 0, 0, (void*)0, 0};
10709
10849
  static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
10710
10850
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
10851
+ static swig_type_info _swigt__p_long_long = {"_p_long_long", "TagLib::offset_t *|long long *", 0, 0, (void*)0, 0};
10711
10852
  static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
10712
- static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
10853
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
10713
10854
  static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
10714
10855
  static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
10715
10856
 
@@ -10723,9 +10864,9 @@ static swig_type_info *swig_type_initial[] = {
10723
10864
  &_swigt__p_TagLib__ID3v2__ChapterFrame,
10724
10865
  &_swigt__p_TagLib__ID3v2__CommentsFrame,
10725
10866
  &_swigt__p_TagLib__ID3v2__ExtendedHeader,
10726
- &_swigt__p_TagLib__ID3v2__Footer,
10727
10867
  &_swigt__p_TagLib__ID3v2__Frame,
10728
10868
  &_swigt__p_TagLib__ID3v2__FrameFactory,
10869
+ &_swigt__p_TagLib__ID3v2__Frame__Header,
10729
10870
  &_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame,
10730
10871
  &_swigt__p_TagLib__ID3v2__Header,
10731
10872
  &_swigt__p_TagLib__ID3v2__PopularimeterFrame,
@@ -10744,6 +10885,7 @@ static swig_type_info *swig_type_initial[] = {
10744
10885
  &_swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t,
10745
10886
  &_swigt__p_TagLib__Tag,
10746
10887
  &_swigt__p_char,
10888
+ &_swigt__p_long_long,
10747
10889
  &_swigt__p_unsigned_char,
10748
10890
  &_swigt__p_unsigned_int,
10749
10891
  &_swigt__p_unsigned_long,
@@ -10759,9 +10901,9 @@ static swig_cast_info _swigc__p_TagLib__ID3v2__AttachedPictureFrameV22[] = { {&
10759
10901
  static swig_cast_info _swigc__p_TagLib__ID3v2__ChapterFrame[] = { {&_swigt__p_TagLib__ID3v2__ChapterFrame, 0, 0, 0},{0, 0, 0, 0}};
10760
10902
  static swig_cast_info _swigc__p_TagLib__ID3v2__CommentsFrame[] = { {&_swigt__p_TagLib__ID3v2__CommentsFrame, 0, 0, 0},{0, 0, 0, 0}};
10761
10903
  static swig_cast_info _swigc__p_TagLib__ID3v2__ExtendedHeader[] = { {&_swigt__p_TagLib__ID3v2__ExtendedHeader, 0, 0, 0},{0, 0, 0, 0}};
10762
- static swig_cast_info _swigc__p_TagLib__ID3v2__Footer[] = { {&_swigt__p_TagLib__ID3v2__Footer, 0, 0, 0},{0, 0, 0, 0}};
10763
- static swig_cast_info _swigc__p_TagLib__ID3v2__Frame[] = { {&_swigt__p_TagLib__ID3v2__Frame, 0, 0, 0}, {&_swigt__p_TagLib__ID3v2__TableOfContentsFrame, _p_TagLib__ID3v2__TableOfContentsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__CommentsFrame, _p_TagLib__ID3v2__CommentsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__AttachedPictureFrameV22, _p_TagLib__ID3v2__AttachedPictureFrameV22To_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UrlLinkFrame, _p_TagLib__ID3v2__UrlLinkFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UserUrlLinkFrame, _p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UniqueFileIdentifierFrame, _p_TagLib__ID3v2__UniqueFileIdentifierFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__PopularimeterFrame, _p_TagLib__ID3v2__PopularimeterFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__ChapterFrame, _p_TagLib__ID3v2__ChapterFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UnsynchronizedLyricsFrame, _p_TagLib__ID3v2__UnsynchronizedLyricsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame, _p_TagLib__ID3v2__GeneralEncapsulatedObjectFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__PrivateFrame, _p_TagLib__ID3v2__PrivateFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__AttachedPictureFrame, _p_TagLib__ID3v2__AttachedPictureFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__RelativeVolumeFrame, _p_TagLib__ID3v2__RelativeVolumeFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UnknownFrame, _p_TagLib__ID3v2__UnknownFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame, _p_TagLib__ID3v2__UserTextIdentificationFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__TextIdentificationFrame, _p_TagLib__ID3v2__TextIdentificationFrameTo_p_TagLib__ID3v2__Frame, 0, 0},{0, 0, 0, 0}};
10904
+ static swig_cast_info _swigc__p_TagLib__ID3v2__Frame[] = { {&_swigt__p_TagLib__ID3v2__Frame, 0, 0, 0}, {&_swigt__p_TagLib__ID3v2__AttachedPictureFrame, _p_TagLib__ID3v2__AttachedPictureFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__AttachedPictureFrameV22, _p_TagLib__ID3v2__AttachedPictureFrameV22To_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__ChapterFrame, _p_TagLib__ID3v2__ChapterFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__CommentsFrame, _p_TagLib__ID3v2__CommentsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame, _p_TagLib__ID3v2__GeneralEncapsulatedObjectFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__PopularimeterFrame, _p_TagLib__ID3v2__PopularimeterFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__PrivateFrame, _p_TagLib__ID3v2__PrivateFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__RelativeVolumeFrame, _p_TagLib__ID3v2__RelativeVolumeFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__TableOfContentsFrame, _p_TagLib__ID3v2__TableOfContentsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__TextIdentificationFrame, _p_TagLib__ID3v2__TextIdentificationFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UniqueFileIdentifierFrame, _p_TagLib__ID3v2__UniqueFileIdentifierFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UnknownFrame, _p_TagLib__ID3v2__UnknownFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UnsynchronizedLyricsFrame, _p_TagLib__ID3v2__UnsynchronizedLyricsFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UrlLinkFrame, _p_TagLib__ID3v2__UrlLinkFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame, _p_TagLib__ID3v2__UserTextIdentificationFrameTo_p_TagLib__ID3v2__Frame, 0, 0}, {&_swigt__p_TagLib__ID3v2__UserUrlLinkFrame, _p_TagLib__ID3v2__UserUrlLinkFrameTo_p_TagLib__ID3v2__Frame, 0, 0},{0, 0, 0, 0}};
10764
10905
  static swig_cast_info _swigc__p_TagLib__ID3v2__FrameFactory[] = { {&_swigt__p_TagLib__ID3v2__FrameFactory, 0, 0, 0},{0, 0, 0, 0}};
10906
+ static swig_cast_info _swigc__p_TagLib__ID3v2__Frame__Header[] = { {&_swigt__p_TagLib__ID3v2__Frame__Header, 0, 0, 0},{0, 0, 0, 0}};
10765
10907
  static swig_cast_info _swigc__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame[] = { {&_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame, 0, 0, 0},{0, 0, 0, 0}};
10766
10908
  static swig_cast_info _swigc__p_TagLib__ID3v2__Header[] = { {&_swigt__p_TagLib__ID3v2__Header, 0, 0, 0},{0, 0, 0, 0}};
10767
10909
  static swig_cast_info _swigc__p_TagLib__ID3v2__PopularimeterFrame[] = { {&_swigt__p_TagLib__ID3v2__PopularimeterFrame, 0, 0, 0},{0, 0, 0, 0}};
@@ -10778,8 +10920,9 @@ static swig_cast_info _swigc__p_TagLib__ID3v2__UrlLinkFrame[] = { {&_swigt__p_T
10778
10920
  static swig_cast_info _swigc__p_TagLib__ID3v2__UserTextIdentificationFrame[] = { {&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame, 0, 0, 0},{0, 0, 0, 0}};
10779
10921
  static swig_cast_info _swigc__p_TagLib__ID3v2__UserUrlLinkFrame[] = { {&_swigt__p_TagLib__ID3v2__UserUrlLinkFrame, 0, 0, 0},{0, 0, 0, 0}};
10780
10922
  static swig_cast_info _swigc__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t[] = { {&_swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t, 0, 0, 0},{0, 0, 0, 0}};
10781
- 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}};
10923
+ static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0}, {&_swigt__p_TagLib__ID3v2__Tag, _p_TagLib__ID3v2__TagTo_p_TagLib__Tag, 0, 0},{0, 0, 0, 0}};
10782
10924
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
10925
+ static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
10783
10926
  static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
10784
10927
  static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
10785
10928
  static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -10795,9 +10938,9 @@ static swig_cast_info *swig_cast_initial[] = {
10795
10938
  _swigc__p_TagLib__ID3v2__ChapterFrame,
10796
10939
  _swigc__p_TagLib__ID3v2__CommentsFrame,
10797
10940
  _swigc__p_TagLib__ID3v2__ExtendedHeader,
10798
- _swigc__p_TagLib__ID3v2__Footer,
10799
10941
  _swigc__p_TagLib__ID3v2__Frame,
10800
10942
  _swigc__p_TagLib__ID3v2__FrameFactory,
10943
+ _swigc__p_TagLib__ID3v2__Frame__Header,
10801
10944
  _swigc__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame,
10802
10945
  _swigc__p_TagLib__ID3v2__Header,
10803
10946
  _swigc__p_TagLib__ID3v2__PopularimeterFrame,
@@ -10816,6 +10959,7 @@ static swig_cast_info *swig_cast_initial[] = {
10816
10959
  _swigc__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t,
10817
10960
  _swigc__p_TagLib__Tag,
10818
10961
  _swigc__p_char,
10962
+ _swigc__p_long_long,
10819
10963
  _swigc__p_unsigned_char,
10820
10964
  _swigc__p_unsigned_int,
10821
10965
  _swigc__p_unsigned_long,
@@ -10877,9 +11021,12 @@ extern "C" {
10877
11021
  #define SWIGRUNTIME_DEBUG
10878
11022
  #endif
10879
11023
 
11024
+ #ifndef SWIG_INIT_CLIENT_DATA_TYPE
11025
+ #define SWIG_INIT_CLIENT_DATA_TYPE void *
11026
+ #endif
10880
11027
 
10881
11028
  SWIGRUNTIME void
10882
- SWIG_InitializeModule(void *clientdata) {
11029
+ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
10883
11030
  size_t i;
10884
11031
  swig_module_info *module_head, *iter;
10885
11032
  int init;
@@ -11076,6 +11223,8 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11076
11223
 
11077
11224
  SWIG_RubyInitializeTrackings();
11078
11225
  rb_require("taglib_base");
11226
+ rb_define_const(mID3v2, "V3", SWIG_From_int(static_cast< int >(TagLib::ID3v2::v3)));
11227
+ rb_define_const(mID3v2, "V4", SWIG_From_int(static_cast< int >(TagLib::ID3v2::v4)));
11079
11228
 
11080
11229
  SwigClassHeader.klass = rb_define_class_under(mID3v2, "Header", rb_cObject);
11081
11230
  SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__Header, (void *) &SwigClassHeader);
@@ -11107,8 +11256,12 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11107
11256
  rb_define_method(SwigClassFrame.klass, "data=", VALUEFUNC(_wrap_Frame_datae___), -1);
11108
11257
  rb_define_method(SwigClassFrame.klass, "text=", VALUEFUNC(_wrap_Frame_texte___), -1);
11109
11258
  rb_define_method(SwigClassFrame.klass, "to_string", VALUEFUNC(_wrap_Frame_to_string), -1);
11259
+ rb_define_method(SwigClassFrame.klass, "to_string_list", VALUEFUNC(_wrap_Frame_to_string_list), -1);
11110
11260
  rb_define_method(SwigClassFrame.klass, "render", VALUEFUNC(_wrap_Frame_render), -1);
11261
+ rb_define_method(SwigClassFrame.klass, "header", VALUEFUNC(_wrap_Frame_header), -1);
11111
11262
  rb_define_singleton_method(SwigClassFrame.klass, "text_delimiter", VALUEFUNC(_wrap_Frame_text_delimiter), -1);
11263
+ rb_define_singleton_method(SwigClassFrame.klass, "key_to_frame_id", VALUEFUNC(_wrap_Frame_key_to_frame_id), -1);
11264
+ rb_define_singleton_method(SwigClassFrame.klass, "frame_idto_key", VALUEFUNC(_wrap_Frame_frame_idto_key), -1);
11112
11265
  SwigClassFrame.mark = 0;
11113
11266
  SwigClassFrame.destroy = (void (*)(void *)) free_TagLib_ID3v2_Frame;
11114
11267
  SwigClassFrame.trackObjects = 1;
@@ -11134,7 +11287,6 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11134
11287
  rb_define_method(SwigClassTag.klass, "empty?", VALUEFUNC(_wrap_Tag_emptyq___), -1);
11135
11288
  rb_define_method(SwigClassTag.klass, "header", VALUEFUNC(_wrap_Tag_header), -1);
11136
11289
  rb_define_method(SwigClassTag.klass, "extended_header", VALUEFUNC(_wrap_Tag_extended_header), -1);
11137
- rb_define_method(SwigClassTag.klass, "footer", VALUEFUNC(_wrap_Tag_footer), -1);
11138
11290
  rb_define_method(SwigClassTag.klass, "frame_list_map", VALUEFUNC(_wrap_Tag_frame_list_map), -1);
11139
11291
  rb_define_method(SwigClassTag.klass, "frame_list", VALUEFUNC(_wrap_Tag_frame_list), -1);
11140
11292
  rb_define_method(SwigClassTag.klass, "add_frame", VALUEFUNC(_wrap_Tag_add_frame), -1);
@@ -11149,8 +11301,10 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11149
11301
  rb_undef_alloc_func(SwigClassFrameFactory.klass);
11150
11302
  rb_define_singleton_method(SwigClassFrameFactory.klass, "instance", VALUEFUNC(_wrap_FrameFactory_instance), -1);
11151
11303
  rb_define_method(SwigClassFrameFactory.klass, "create_frame", VALUEFUNC(_wrap_FrameFactory_create_frame), -1);
11304
+ rb_define_method(SwigClassFrameFactory.klass, "create_frame_for_property", VALUEFUNC(_wrap_FrameFactory_create_frame_for_property), -1);
11152
11305
  rb_define_method(SwigClassFrameFactory.klass, "default_text_encoding", VALUEFUNC(_wrap_FrameFactory_default_text_encoding), -1);
11153
11306
  rb_define_method(SwigClassFrameFactory.klass, "default_text_encoding=", VALUEFUNC(_wrap_FrameFactory_default_text_encodinge___), -1);
11307
+ rb_define_method(SwigClassFrameFactory.klass, "is_using_default_text_encoding", VALUEFUNC(_wrap_FrameFactory_is_using_default_text_encoding), -1);
11154
11308
  SwigClassFrameFactory.mark = 0;
11155
11309
  SwigClassFrameFactory.trackObjects = 1;
11156
11310
 
@@ -11169,8 +11323,6 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11169
11323
  rb_define_const(SwigClassRelativeVolumeFrame.klass, "Subwoofer", SWIG_From_int(static_cast< int >(TagLib::ID3v2::RelativeVolumeFrame::Subwoofer)));
11170
11324
  rb_define_method(SwigClassRelativeVolumeFrame.klass, "to_string", VALUEFUNC(_wrap_RelativeVolumeFrame_to_string), -1);
11171
11325
  rb_define_method(SwigClassRelativeVolumeFrame.klass, "channels", VALUEFUNC(_wrap_RelativeVolumeFrame_channels), -1);
11172
- rb_define_method(SwigClassRelativeVolumeFrame.klass, "channel_type", VALUEFUNC(_wrap_RelativeVolumeFrame_channel_type), -1);
11173
- rb_define_method(SwigClassRelativeVolumeFrame.klass, "channel_type=", VALUEFUNC(_wrap_RelativeVolumeFrame_channel_typee___), -1);
11174
11326
  rb_define_method(SwigClassRelativeVolumeFrame.klass, "volume_adjustment_index", VALUEFUNC(_wrap_RelativeVolumeFrame_volume_adjustment_index), -1);
11175
11327
  rb_define_method(SwigClassRelativeVolumeFrame.klass, "set_volume_adjustment_index", VALUEFUNC(_wrap_RelativeVolumeFrame_set_volume_adjustment_index), -1);
11176
11328
  rb_define_method(SwigClassRelativeVolumeFrame.klass, "volume_adjustment", VALUEFUNC(_wrap_RelativeVolumeFrame_volume_adjustment), -1);
@@ -11220,7 +11372,10 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11220
11372
  rb_define_const(SwigClassAttachedPictureFrame.klass, "Illustration", SWIG_From_int(static_cast< int >(TagLib::ID3v2::AttachedPictureFrame::Illustration)));
11221
11373
  rb_define_const(SwigClassAttachedPictureFrame.klass, "BandLogo", SWIG_From_int(static_cast< int >(TagLib::ID3v2::AttachedPictureFrame::BandLogo)));
11222
11374
  rb_define_const(SwigClassAttachedPictureFrame.klass, "PublisherLogo", SWIG_From_int(static_cast< int >(TagLib::ID3v2::AttachedPictureFrame::PublisherLogo)));
11375
+ rb_define_singleton_method(SwigClassAttachedPictureFrame.klass, "type_to_string", VALUEFUNC(_wrap_AttachedPictureFrame_type_to_string), -1);
11376
+ rb_define_singleton_method(SwigClassAttachedPictureFrame.klass, "type_from_string", VALUEFUNC(_wrap_AttachedPictureFrame_type_from_string), -1);
11223
11377
  rb_define_method(SwigClassAttachedPictureFrame.klass, "to_string", VALUEFUNC(_wrap_AttachedPictureFrame_to_string), -1);
11378
+ rb_define_method(SwigClassAttachedPictureFrame.klass, "to_string_list", VALUEFUNC(_wrap_AttachedPictureFrame_to_string_list), -1);
11224
11379
  rb_define_method(SwigClassAttachedPictureFrame.klass, "text_encoding", VALUEFUNC(_wrap_AttachedPictureFrame_text_encoding), -1);
11225
11380
  rb_define_method(SwigClassAttachedPictureFrame.klass, "text_encoding=", VALUEFUNC(_wrap_AttachedPictureFrame_text_encodinge___), -1);
11226
11381
  rb_define_method(SwigClassAttachedPictureFrame.klass, "mime_type", VALUEFUNC(_wrap_AttachedPictureFrame_mime_type), -1);
@@ -11290,6 +11445,7 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11290
11445
  rb_define_alloc_func(SwigClassGeneralEncapsulatedObjectFrame.klass, _wrap_GeneralEncapsulatedObjectFrame_allocate);
11291
11446
  rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "initialize", VALUEFUNC(_wrap_new_GeneralEncapsulatedObjectFrame), -1);
11292
11447
  rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "to_string", VALUEFUNC(_wrap_GeneralEncapsulatedObjectFrame_to_string), -1);
11448
+ rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "to_string_list", VALUEFUNC(_wrap_GeneralEncapsulatedObjectFrame_to_string_list), -1);
11293
11449
  rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "text_encoding", VALUEFUNC(_wrap_GeneralEncapsulatedObjectFrame_text_encoding), -1);
11294
11450
  rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "text_encoding=", VALUEFUNC(_wrap_GeneralEncapsulatedObjectFrame_text_encodinge___), -1);
11295
11451
  rb_define_method(SwigClassGeneralEncapsulatedObjectFrame.klass, "mime_type", VALUEFUNC(_wrap_GeneralEncapsulatedObjectFrame_mime_type), -1);
@@ -11309,6 +11465,7 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11309
11465
  rb_define_alloc_func(SwigClassPopularimeterFrame.klass, _wrap_PopularimeterFrame_allocate);
11310
11466
  rb_define_method(SwigClassPopularimeterFrame.klass, "initialize", VALUEFUNC(_wrap_new_PopularimeterFrame), -1);
11311
11467
  rb_define_method(SwigClassPopularimeterFrame.klass, "to_string", VALUEFUNC(_wrap_PopularimeterFrame_to_string), -1);
11468
+ rb_define_method(SwigClassPopularimeterFrame.klass, "to_string_list", VALUEFUNC(_wrap_PopularimeterFrame_to_string_list), -1);
11312
11469
  rb_define_method(SwigClassPopularimeterFrame.klass, "email", VALUEFUNC(_wrap_PopularimeterFrame_email), -1);
11313
11470
  rb_define_method(SwigClassPopularimeterFrame.klass, "email=", VALUEFUNC(_wrap_PopularimeterFrame_emaile___), -1);
11314
11471
  rb_define_method(SwigClassPopularimeterFrame.klass, "rating", VALUEFUNC(_wrap_PopularimeterFrame_rating), -1);
@@ -11366,6 +11523,7 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11366
11523
  rb_define_method(SwigClassTextIdentificationFrame.klass, "field_list=", VALUEFUNC(_wrap_TextIdentificationFrame_field_liste___), -1);
11367
11524
  rb_define_method(SwigClassTextIdentificationFrame.klass, "text=", VALUEFUNC(_wrap_TextIdentificationFrame_texte___), -1);
11368
11525
  rb_define_method(SwigClassTextIdentificationFrame.klass, "to_string", VALUEFUNC(_wrap_TextIdentificationFrame_to_string), -1);
11526
+ rb_define_method(SwigClassTextIdentificationFrame.klass, "to_string_list", VALUEFUNC(_wrap_TextIdentificationFrame_to_string_list), -1);
11369
11527
  rb_define_method(SwigClassTextIdentificationFrame.klass, "text_encoding", VALUEFUNC(_wrap_TextIdentificationFrame_text_encoding), -1);
11370
11528
  rb_define_method(SwigClassTextIdentificationFrame.klass, "text_encoding=", VALUEFUNC(_wrap_TextIdentificationFrame_text_encodinge___), -1);
11371
11529
  rb_define_method(SwigClassTextIdentificationFrame.klass, "field_list", VALUEFUNC(_wrap_TextIdentificationFrame_field_list), -1);
@@ -11380,10 +11538,11 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
11380
11538
  rb_define_method(SwigClassUserTextIdentificationFrame.klass, "to_string", VALUEFUNC(_wrap_UserTextIdentificationFrame_to_string), -1);
11381
11539
  rb_define_method(SwigClassUserTextIdentificationFrame.klass, "description", VALUEFUNC(_wrap_UserTextIdentificationFrame_description), -1);
11382
11540
  rb_define_method(SwigClassUserTextIdentificationFrame.klass, "description=", VALUEFUNC(_wrap_UserTextIdentificationFrame_descriptione___), -1);
11383
- rb_define_method(SwigClassUserTextIdentificationFrame.klass, "field_list", VALUEFUNC(_wrap_UserTextIdentificationFrame_field_list), -1);
11384
11541
  rb_define_method(SwigClassUserTextIdentificationFrame.klass, "text=", VALUEFUNC(_wrap_UserTextIdentificationFrame_texte___), -1);
11385
11542
  rb_define_method(SwigClassUserTextIdentificationFrame.klass, "field_list=", VALUEFUNC(_wrap_UserTextIdentificationFrame_field_liste___), -1);
11386
11543
  rb_define_singleton_method(SwigClassUserTextIdentificationFrame.klass, "find", VALUEFUNC(_wrap_UserTextIdentificationFrame_find), -1);
11544
+ rb_define_singleton_method(SwigClassUserTextIdentificationFrame.klass, "key_to_txxx", VALUEFUNC(_wrap_UserTextIdentificationFrame_key_to_txxx), -1);
11545
+ rb_define_singleton_method(SwigClassUserTextIdentificationFrame.klass, "txxx_to_key", VALUEFUNC(_wrap_UserTextIdentificationFrame_txxx_to_key), -1);
11387
11546
  SwigClassUserTextIdentificationFrame.mark = 0;
11388
11547
  SwigClassUserTextIdentificationFrame.destroy = (void (*)(void *)) free_TagLib_ID3v2_UserTextIdentificationFrame;
11389
11548
  SwigClassUserTextIdentificationFrame.trackObjects = 1;