taglib-ruby 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -142,6 +142,19 @@ template <typename T> T SwigValueInit() {
142
142
  # define _SCL_SECURE_NO_DEPRECATE
143
143
  #endif
144
144
 
145
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
146
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
147
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
148
+ #endif
149
+
150
+ /* Intel's compiler complains if a variable which was never initialised is
151
+ * cast to void, which is a common idiom which we use to indicate that we
152
+ * are aware a variable isn't used. So we just silence that warning.
153
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
154
+ */
155
+ #ifdef __INTEL_COMPILER
156
+ # pragma warning disable 592
157
+ #endif
145
158
 
146
159
  /* -----------------------------------------------------------------------------
147
160
  * This section contains generic SWIG labels for method/variable
@@ -251,6 +264,19 @@ template <typename T> T SwigValueInit() {
251
264
  # define _SCL_SECURE_NO_DEPRECATE
252
265
  #endif
253
266
 
267
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
268
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
269
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
270
+ #endif
271
+
272
+ /* Intel's compiler complains if a variable which was never initialised is
273
+ * cast to void, which is a common idiom which we use to indicate that we
274
+ * are aware a variable isn't used. So we just silence that warning.
275
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
276
+ */
277
+ #ifdef __INTEL_COMPILER
278
+ # pragma warning disable 592
279
+ #endif
254
280
 
255
281
  /* -----------------------------------------------------------------------------
256
282
  * swigrun.swg
@@ -658,14 +684,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
658
684
  swig_module_info *iter = start;
659
685
  do {
660
686
  if (iter->size) {
661
- register size_t l = 0;
662
- register size_t r = iter->size - 1;
687
+ size_t l = 0;
688
+ size_t r = iter->size - 1;
663
689
  do {
664
690
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
665
- register size_t i = (l + r) >> 1;
691
+ size_t i = (l + r) >> 1;
666
692
  const char *iname = iter->types[i]->name;
667
693
  if (iname) {
668
- register int compare = strcmp(name, iname);
694
+ int compare = strcmp(name, iname);
669
695
  if (compare == 0) {
670
696
  return iter->types[i];
671
697
  } else if (compare < 0) {
@@ -709,7 +735,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
709
735
  of the str field (the human readable name) */
710
736
  swig_module_info *iter = start;
711
737
  do {
712
- register size_t i = 0;
738
+ size_t i = 0;
713
739
  for (; i < iter->size; ++i) {
714
740
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
715
741
  return iter->types[i];
@@ -728,10 +754,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
728
754
  SWIGRUNTIME char *
729
755
  SWIG_PackData(char *c, void *ptr, size_t sz) {
730
756
  static const char hex[17] = "0123456789abcdef";
731
- register const unsigned char *u = (unsigned char *) ptr;
732
- register const unsigned char *eu = u + sz;
757
+ const unsigned char *u = (unsigned char *) ptr;
758
+ const unsigned char *eu = u + sz;
733
759
  for (; u != eu; ++u) {
734
- register unsigned char uu = *u;
760
+ unsigned char uu = *u;
735
761
  *(c++) = hex[(uu & 0xf0) >> 4];
736
762
  *(c++) = hex[uu & 0xf];
737
763
  }
@@ -743,11 +769,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
743
769
  */
744
770
  SWIGRUNTIME const char *
745
771
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
746
- register unsigned char *u = (unsigned char *) ptr;
747
- register const unsigned char *eu = u + sz;
772
+ unsigned char *u = (unsigned char *) ptr;
773
+ const unsigned char *eu = u + sz;
748
774
  for (; u != eu; ++u) {
749
- register char d = *(c++);
750
- register unsigned char uu;
775
+ char d = *(c++);
776
+ unsigned char uu;
751
777
  if ((d >= '0') && (d <= '9'))
752
778
  uu = ((d - '0') << 4);
753
779
  else if ((d >= 'a') && (d <= 'f'))
@@ -1503,14 +1529,13 @@ SWIG_Ruby_InitRuntime(void)
1503
1529
  SWIGRUNTIME void
1504
1530
  SWIG_Ruby_define_class(swig_type_info *type)
1505
1531
  {
1506
- VALUE klass;
1507
1532
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1508
1533
  sprintf(klass_name, "TYPE%s", type->name);
1509
1534
  if (NIL_P(_cSWIG_Pointer)) {
1510
1535
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1511
1536
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1512
1537
  }
1513
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1538
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1514
1539
  free((void *) klass_name);
1515
1540
  }
1516
1541
 
@@ -1827,7 +1852,7 @@ static VALUE mID3v1;
1827
1852
  #define SWIG_RUBY_THREAD_END_BLOCK
1828
1853
 
1829
1854
 
1830
- #define SWIGVERSION 0x020012
1855
+ #define SWIGVERSION 0x030007
1831
1856
  #define SWIG_VERSION SWIGVERSION
1832
1857
 
1833
1858
 
@@ -1905,7 +1930,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1905
1930
  return result;
1906
1931
  }
1907
1932
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1908
- VALUE e = RARRAY_PTR(ary)[i];
1933
+ VALUE e = rb_ary_entry(ary, i);
1909
1934
  TagLib::String s = ruby_string_to_taglib_string(e);
1910
1935
  result.append(s);
1911
1936
  }
@@ -2010,7 +2035,7 @@ SWIG_ruby_failed(void)
2010
2035
  }
2011
2036
 
2012
2037
 
2013
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2038
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2014
2039
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2015
2040
  {
2016
2041
  VALUE obj = args[0];
@@ -2066,7 +2091,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
2066
2091
  }
2067
2092
 
2068
2093
 
2069
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2094
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2070
2095
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2071
2096
  {
2072
2097
  VALUE obj = args[0];
@@ -2828,7 +2853,7 @@ static swig_cast_info *swig_cast_initial[] = {
2828
2853
  * array with the correct data and linking the correct swig_cast_info
2829
2854
  * structures together.
2830
2855
  *
2831
- * The generated swig_type_info structures are assigned staticly to an initial
2856
+ * The generated swig_type_info structures are assigned statically to an initial
2832
2857
  * array. We just loop through that array, and handle each type individually.
2833
2858
  * First we lookup if this type has been already loaded, and if so, use the
2834
2859
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -2872,7 +2897,7 @@ SWIGRUNTIME void
2872
2897
  SWIG_InitializeModule(void *clientdata) {
2873
2898
  size_t i;
2874
2899
  swig_module_info *module_head, *iter;
2875
- int found, init;
2900
+ int init;
2876
2901
 
2877
2902
  /* check to see if the circular list has been setup, if not, set it up */
2878
2903
  if (swig_module.next==0) {
@@ -2891,22 +2916,18 @@ SWIG_InitializeModule(void *clientdata) {
2891
2916
  /* This is the first module loaded for this interpreter */
2892
2917
  /* so set the swig module into the interpreter */
2893
2918
  SWIG_SetModule(clientdata, &swig_module);
2894
- module_head = &swig_module;
2895
2919
  } else {
2896
2920
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
2897
- found=0;
2898
2921
  iter=module_head;
2899
2922
  do {
2900
2923
  if (iter==&swig_module) {
2901
- found=1;
2902
- break;
2924
+ /* Our module is already in the list, so there's nothing more to do. */
2925
+ return;
2903
2926
  }
2904
2927
  iter=iter->next;
2905
2928
  } while (iter!= module_head);
2906
2929
 
2907
- /* if the is found in the list, then all is done and we may leave */
2908
- if (found) return;
2909
- /* otherwise we must add out module into the list */
2930
+ /* otherwise we must add our module into the list */
2910
2931
  swig_module.next = module_head->next;
2911
2932
  module_head->next = &swig_module;
2912
2933
  }
@@ -1,25 +1,10 @@
1
- %rename("bits_representing_peak") TagLib::ID3v2::PeakVolume::bitsRepresentingPeak;
2
- %rename("peak_volume") TagLib::ID3v2::PeakVolume::peakVolume;
1
+ %rename("bits_representing_peak") TagLib::ID3v2::RelativeVolumeFrame::PeakVolume::bitsRepresentingPeak;
2
+ %rename("peak_volume") TagLib::ID3v2::RelativeVolumeFrame::PeakVolume::peakVolume;
3
3
 
4
4
  %rename("set_volume_adjustment") TagLib::ID3v2::RelativeVolumeFrame::setVolumeAdjustment;
5
5
  %rename("set_volume_adjustment_index") TagLib::ID3v2::RelativeVolumeFrame::setVolumeAdjustmentIndex;
6
6
  %rename("set_peak_volume") TagLib::ID3v2::RelativeVolumeFrame::setPeakVolume;
7
7
 
8
- struct TagLib::ID3v2::PeakVolume {
9
- unsigned char bitsRepresentingPeak;
10
- TagLib::ByteVector peakVolume;
11
- };
12
-
13
- %nestedworkaround TagLib::ID3v2::RelativeVolumeFrame::PeakVolume;
14
-
15
- %{
16
- namespace TagLib {
17
- namespace ID3v2 {
18
- typedef RelativeVolumeFrame::PeakVolume PeakVolume;
19
- }
20
- }
21
- %}
22
-
23
8
  %typemap(out) TagLib::List<TagLib::ID3v2::RelativeVolumeFrame::ChannelType> {
24
9
  VALUE ary = rb_ary_new2($1.size());
25
10
  for (TagLib::List<TagLib::ID3v2::RelativeVolumeFrame::ChannelType>::ConstIterator it = $1.begin();
@@ -30,6 +15,8 @@ namespace TagLib {
30
15
  $result = ary;
31
16
  }
32
17
 
18
+ %flatnested TagLib::ID3v2::RelativeVolumeFrame::PeakVolume;
19
+
33
20
  %include <taglib/relativevolumeframe.h>
34
21
 
35
22
  // vim: set filetype=cpp sw=2 ts=2 expandtab:
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -142,6 +142,19 @@ template <typename T> T SwigValueInit() {
142
142
  # define _SCL_SECURE_NO_DEPRECATE
143
143
  #endif
144
144
 
145
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
146
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
147
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
148
+ #endif
149
+
150
+ /* Intel's compiler complains if a variable which was never initialised is
151
+ * cast to void, which is a common idiom which we use to indicate that we
152
+ * are aware a variable isn't used. So we just silence that warning.
153
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
154
+ */
155
+ #ifdef __INTEL_COMPILER
156
+ # pragma warning disable 592
157
+ #endif
145
158
 
146
159
  /* -----------------------------------------------------------------------------
147
160
  * This section contains generic SWIG labels for method/variable
@@ -251,6 +264,19 @@ template <typename T> T SwigValueInit() {
251
264
  # define _SCL_SECURE_NO_DEPRECATE
252
265
  #endif
253
266
 
267
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
268
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
269
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
270
+ #endif
271
+
272
+ /* Intel's compiler complains if a variable which was never initialised is
273
+ * cast to void, which is a common idiom which we use to indicate that we
274
+ * are aware a variable isn't used. So we just silence that warning.
275
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
276
+ */
277
+ #ifdef __INTEL_COMPILER
278
+ # pragma warning disable 592
279
+ #endif
254
280
 
255
281
  /* -----------------------------------------------------------------------------
256
282
  * swigrun.swg
@@ -658,14 +684,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
658
684
  swig_module_info *iter = start;
659
685
  do {
660
686
  if (iter->size) {
661
- register size_t l = 0;
662
- register size_t r = iter->size - 1;
687
+ size_t l = 0;
688
+ size_t r = iter->size - 1;
663
689
  do {
664
690
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
665
- register size_t i = (l + r) >> 1;
691
+ size_t i = (l + r) >> 1;
666
692
  const char *iname = iter->types[i]->name;
667
693
  if (iname) {
668
- register int compare = strcmp(name, iname);
694
+ int compare = strcmp(name, iname);
669
695
  if (compare == 0) {
670
696
  return iter->types[i];
671
697
  } else if (compare < 0) {
@@ -709,7 +735,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
709
735
  of the str field (the human readable name) */
710
736
  swig_module_info *iter = start;
711
737
  do {
712
- register size_t i = 0;
738
+ size_t i = 0;
713
739
  for (; i < iter->size; ++i) {
714
740
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
715
741
  return iter->types[i];
@@ -728,10 +754,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
728
754
  SWIGRUNTIME char *
729
755
  SWIG_PackData(char *c, void *ptr, size_t sz) {
730
756
  static const char hex[17] = "0123456789abcdef";
731
- register const unsigned char *u = (unsigned char *) ptr;
732
- register const unsigned char *eu = u + sz;
757
+ const unsigned char *u = (unsigned char *) ptr;
758
+ const unsigned char *eu = u + sz;
733
759
  for (; u != eu; ++u) {
734
- register unsigned char uu = *u;
760
+ unsigned char uu = *u;
735
761
  *(c++) = hex[(uu & 0xf0) >> 4];
736
762
  *(c++) = hex[uu & 0xf];
737
763
  }
@@ -743,11 +769,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
743
769
  */
744
770
  SWIGRUNTIME const char *
745
771
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
746
- register unsigned char *u = (unsigned char *) ptr;
747
- register const unsigned char *eu = u + sz;
772
+ unsigned char *u = (unsigned char *) ptr;
773
+ const unsigned char *eu = u + sz;
748
774
  for (; u != eu; ++u) {
749
- register char d = *(c++);
750
- register unsigned char uu;
775
+ char d = *(c++);
776
+ unsigned char uu;
751
777
  if ((d >= '0') && (d <= '9'))
752
778
  uu = ((d - '0') << 4);
753
779
  else if ((d >= 'a') && (d <= 'f'))
@@ -1503,14 +1529,13 @@ SWIG_Ruby_InitRuntime(void)
1503
1529
  SWIGRUNTIME void
1504
1530
  SWIG_Ruby_define_class(swig_type_info *type)
1505
1531
  {
1506
- VALUE klass;
1507
1532
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1508
1533
  sprintf(klass_name, "TYPE%s", type->name);
1509
1534
  if (NIL_P(_cSWIG_Pointer)) {
1510
1535
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1511
1536
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1512
1537
  }
1513
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1538
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1514
1539
  free((void *) klass_name);
1515
1540
  }
1516
1541
 
@@ -1814,10 +1839,10 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1814
1839
  #define SWIGTYPE_p_TagLib__ID3v2__FrameFactory swig_types[9]
1815
1840
  #define SWIGTYPE_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame swig_types[10]
1816
1841
  #define SWIGTYPE_p_TagLib__ID3v2__Header swig_types[11]
1817
- #define SWIGTYPE_p_TagLib__ID3v2__PeakVolume swig_types[12]
1818
- #define SWIGTYPE_p_TagLib__ID3v2__PopularimeterFrame swig_types[13]
1819
- #define SWIGTYPE_p_TagLib__ID3v2__PrivateFrame swig_types[14]
1820
- #define SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame swig_types[15]
1842
+ #define SWIGTYPE_p_TagLib__ID3v2__PopularimeterFrame swig_types[12]
1843
+ #define SWIGTYPE_p_TagLib__ID3v2__PrivateFrame swig_types[13]
1844
+ #define SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame swig_types[14]
1845
+ #define SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume swig_types[15]
1821
1846
  #define SWIGTYPE_p_TagLib__ID3v2__Tag swig_types[16]
1822
1847
  #define SWIGTYPE_p_TagLib__ID3v2__TextIdentificationFrame swig_types[17]
1823
1848
  #define SWIGTYPE_p_TagLib__ID3v2__UniqueFileIdentifierFrame swig_types[18]
@@ -1850,7 +1875,7 @@ static VALUE mID3v2;
1850
1875
  #define SWIG_RUBY_THREAD_END_BLOCK
1851
1876
 
1852
1877
 
1853
- #define SWIGVERSION 0x020012
1878
+ #define SWIGVERSION 0x030007
1854
1879
  #define SWIG_VERSION SWIGVERSION
1855
1880
 
1856
1881
 
@@ -1943,7 +1968,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1943
1968
  return result;
1944
1969
  }
1945
1970
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1946
- VALUE e = RARRAY_PTR(ary)[i];
1971
+ VALUE e = rb_ary_entry(ary, i);
1947
1972
  TagLib::String s = ruby_string_to_taglib_string(e);
1948
1973
  result.append(s);
1949
1974
  }
@@ -2120,7 +2145,7 @@ SWIG_ruby_failed(void)
2120
2145
  }
2121
2146
 
2122
2147
 
2123
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2148
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2124
2149
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2125
2150
  {
2126
2151
  VALUE obj = args[0];
@@ -2172,7 +2197,7 @@ SWIG_From_bool (bool value)
2172
2197
  }
2173
2198
 
2174
2199
 
2175
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2200
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2176
2201
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2177
2202
  {
2178
2203
  VALUE obj = args[0];
@@ -2244,36 +2269,6 @@ SWIG_From_int (int value)
2244
2269
  }
2245
2270
 
2246
2271
 
2247
- SWIGINTERN int
2248
- SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
2249
- {
2250
- unsigned long v;
2251
- int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2252
- if (SWIG_IsOK(res)) {
2253
- if ((v > UCHAR_MAX)) {
2254
- return SWIG_OverflowError;
2255
- } else {
2256
- if (val) *val = static_cast< unsigned char >(v);
2257
- }
2258
- }
2259
- return res;
2260
- }
2261
-
2262
-
2263
- SWIGINTERNINLINE VALUE
2264
- SWIG_From_unsigned_SS_char (unsigned char value)
2265
- {
2266
- return SWIG_From_unsigned_SS_long (value);
2267
- }
2268
-
2269
-
2270
- namespace TagLib {
2271
- namespace ID3v2 {
2272
- typedef RelativeVolumeFrame::PeakVolume PeakVolume;
2273
- }
2274
- }
2275
-
2276
-
2277
2272
  SWIGINTERNINLINE VALUE
2278
2273
  SWIG_From_short (short value)
2279
2274
  {
@@ -2334,7 +2329,7 @@ SWIG_From_float (float value)
2334
2329
  #endif
2335
2330
 
2336
2331
 
2337
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2332
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2338
2333
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
2339
2334
  {
2340
2335
  VALUE obj = args[0];
@@ -2378,6 +2373,29 @@ SWIG_AsVal_float (VALUE obj, float *val)
2378
2373
  return res;
2379
2374
  }
2380
2375
 
2376
+
2377
+ SWIGINTERN int
2378
+ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
2379
+ {
2380
+ unsigned long v;
2381
+ int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2382
+ if (SWIG_IsOK(res)) {
2383
+ if ((v > UCHAR_MAX)) {
2384
+ return SWIG_OverflowError;
2385
+ } else {
2386
+ if (val) *val = static_cast< unsigned char >(v);
2387
+ }
2388
+ }
2389
+ return res;
2390
+ }
2391
+
2392
+
2393
+ SWIGINTERNINLINE VALUE
2394
+ SWIG_From_unsigned_SS_char (unsigned char value)
2395
+ {
2396
+ return SWIG_From_unsigned_SS_long (value);
2397
+ }
2398
+
2381
2399
  static swig_class SwigClassHeader;
2382
2400
 
2383
2401
  SWIGINTERN VALUE
@@ -4272,153 +4290,6 @@ fail:
4272
4290
  }
4273
4291
 
4274
4292
 
4275
- static swig_class SwigClassPeakVolume;
4276
-
4277
- SWIGINTERN VALUE
4278
- _wrap_PeakVolume_bits_representing_peak_set(int argc, VALUE *argv, VALUE self) {
4279
- TagLib::ID3v2::PeakVolume *arg1 = (TagLib::ID3v2::PeakVolume *) 0 ;
4280
- unsigned char arg2 ;
4281
- void *argp1 = 0 ;
4282
- int res1 = 0 ;
4283
- unsigned char val2 ;
4284
- int ecode2 = 0 ;
4285
-
4286
- if ((argc < 1) || (argc > 1)) {
4287
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4288
- }
4289
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 | 0 );
4290
- if (!SWIG_IsOK(res1)) {
4291
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume *","bitsRepresentingPeak", 1, self ));
4292
- }
4293
- arg1 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp1);
4294
- ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2);
4295
- if (!SWIG_IsOK(ecode2)) {
4296
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","bitsRepresentingPeak", 2, argv[0] ));
4297
- }
4298
- arg2 = static_cast< unsigned char >(val2);
4299
- if (arg1) (arg1)->bitsRepresentingPeak = arg2;
4300
- return Qnil;
4301
- fail:
4302
- return Qnil;
4303
- }
4304
-
4305
-
4306
- SWIGINTERN VALUE
4307
- _wrap_PeakVolume_bits_representing_peak_get(int argc, VALUE *argv, VALUE self) {
4308
- TagLib::ID3v2::PeakVolume *arg1 = (TagLib::ID3v2::PeakVolume *) 0 ;
4309
- void *argp1 = 0 ;
4310
- int res1 = 0 ;
4311
- unsigned char result;
4312
- VALUE vresult = Qnil;
4313
-
4314
- if ((argc < 0) || (argc > 0)) {
4315
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4316
- }
4317
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 | 0 );
4318
- if (!SWIG_IsOK(res1)) {
4319
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume *","bitsRepresentingPeak", 1, self ));
4320
- }
4321
- arg1 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp1);
4322
- result = (unsigned char) ((arg1)->bitsRepresentingPeak);
4323
- vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4324
- return vresult;
4325
- fail:
4326
- return Qnil;
4327
- }
4328
-
4329
-
4330
- SWIGINTERN VALUE
4331
- _wrap_PeakVolume_peak_volume_set(int argc, VALUE *argv, VALUE self) {
4332
- TagLib::ID3v2::PeakVolume *arg1 = (TagLib::ID3v2::PeakVolume *) 0 ;
4333
- TagLib::ByteVector *arg2 = (TagLib::ByteVector *) 0 ;
4334
- void *argp1 = 0 ;
4335
- int res1 = 0 ;
4336
- TagLib::ByteVector tmp2 ;
4337
-
4338
- if ((argc < 1) || (argc > 1)) {
4339
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4340
- }
4341
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 | 0 );
4342
- if (!SWIG_IsOK(res1)) {
4343
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume *","peakVolume", 1, self ));
4344
- }
4345
- arg1 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp1);
4346
- {
4347
- tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
4348
- arg2 = &tmp2;
4349
- }
4350
- if (arg1) (arg1)->peakVolume = *arg2;
4351
- return Qnil;
4352
- fail:
4353
- return Qnil;
4354
- }
4355
-
4356
-
4357
- SWIGINTERN VALUE
4358
- _wrap_PeakVolume_peak_volume_get(int argc, VALUE *argv, VALUE self) {
4359
- TagLib::ID3v2::PeakVolume *arg1 = (TagLib::ID3v2::PeakVolume *) 0 ;
4360
- void *argp1 = 0 ;
4361
- int res1 = 0 ;
4362
- TagLib::ByteVector *result = 0 ;
4363
- VALUE vresult = Qnil;
4364
-
4365
- if ((argc < 0) || (argc > 0)) {
4366
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4367
- }
4368
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 | 0 );
4369
- if (!SWIG_IsOK(res1)) {
4370
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume *","peakVolume", 1, self ));
4371
- }
4372
- arg1 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp1);
4373
- result = (TagLib::ByteVector *)& ((arg1)->peakVolume);
4374
- {
4375
- vresult = taglib_bytevector_to_ruby_string(*(result));
4376
- }
4377
- return vresult;
4378
- fail:
4379
- return Qnil;
4380
- }
4381
-
4382
-
4383
- #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
4384
- SWIGINTERN VALUE
4385
- _wrap_PeakVolume_allocate(VALUE self) {
4386
- #else
4387
- SWIGINTERN VALUE
4388
- _wrap_PeakVolume_allocate(int argc, VALUE *argv, VALUE self) {
4389
- #endif
4390
-
4391
-
4392
- VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__ID3v2__PeakVolume);
4393
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
4394
- rb_obj_call_init(vresult, argc, argv);
4395
- #endif
4396
- return vresult;
4397
- }
4398
-
4399
-
4400
- SWIGINTERN VALUE
4401
- _wrap_new_PeakVolume(int argc, VALUE *argv, VALUE self) {
4402
- TagLib::ID3v2::PeakVolume *result = 0 ;
4403
-
4404
- if ((argc < 0) || (argc > 0)) {
4405
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4406
- }
4407
- result = (TagLib::ID3v2::PeakVolume *)new TagLib::ID3v2::PeakVolume();
4408
- DATA_PTR(self) = result;
4409
- SWIG_RubyAddTracking(result, self);
4410
- return self;
4411
- fail:
4412
- return Qnil;
4413
- }
4414
-
4415
-
4416
- SWIGINTERN void
4417
- free_TagLib_ID3v2_PeakVolume(TagLib::ID3v2::PeakVolume *arg1) {
4418
- SWIG_RubyRemoveTracking(arg1);
4419
- delete arg1;
4420
- }
4421
-
4422
4293
  static swig_class SwigClassRelativeVolumeFrame;
4423
4294
 
4424
4295
  SWIGINTERN VALUE
@@ -5080,7 +4951,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE self)
5080
4951
  int res1 = 0 ;
5081
4952
  int val2 ;
5082
4953
  int ecode2 = 0 ;
5083
- TagLib::ID3v2::PeakVolume result;
4954
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume result;
5084
4955
  VALUE vresult = Qnil;
5085
4956
 
5086
4957
  if ((argc < 1) || (argc > 1)) {
@@ -5097,7 +4968,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE self)
5097
4968
  }
5098
4969
  arg2 = static_cast< TagLib::ID3v2::RelativeVolumeFrame::ChannelType >(val2);
5099
4970
  result = ((TagLib::ID3v2::RelativeVolumeFrame const *)arg1)->peakVolume(arg2);
5100
- vresult = SWIG_NewPointerObj((new TagLib::ID3v2::PeakVolume(static_cast< const TagLib::ID3v2::PeakVolume& >(result))), SWIGTYPE_p_TagLib__ID3v2__PeakVolume, SWIG_POINTER_OWN | 0 );
4971
+ 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 );
5101
4972
  return vresult;
5102
4973
  fail:
5103
4974
  return Qnil;
@@ -5109,7 +4980,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE self)
5109
4980
  TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
5110
4981
  void *argp1 = 0 ;
5111
4982
  int res1 = 0 ;
5112
- TagLib::ID3v2::PeakVolume result;
4983
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume result;
5113
4984
  VALUE vresult = Qnil;
5114
4985
 
5115
4986
  if ((argc < 0) || (argc > 0)) {
@@ -5121,7 +4992,7 @@ _wrap_RelativeVolumeFrame_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE self)
5121
4992
  }
5122
4993
  arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
5123
4994
  result = ((TagLib::ID3v2::RelativeVolumeFrame const *)arg1)->peakVolume();
5124
- vresult = SWIG_NewPointerObj((new TagLib::ID3v2::PeakVolume(static_cast< const TagLib::ID3v2::PeakVolume& >(result))), SWIGTYPE_p_TagLib__ID3v2__PeakVolume, SWIG_POINTER_OWN | 0 );
4995
+ 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 );
5125
4996
  return vresult;
5126
4997
  fail:
5127
4998
  return Qnil;
@@ -5166,8 +5037,8 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_peak_volume(int nargs, VALUE *args, V
5166
5037
 
5167
5038
  fail:
5168
5039
  Ruby_Format_OverloadedError( argc, 3, "RelativeVolumeFrame.peak_volume",
5169
- " TagLib::ID3v2::PeakVolume RelativeVolumeFrame.peak_volume(TagLib::ID3v2::RelativeVolumeFrame::ChannelType type)\n"
5170
- " TagLib::ID3v2::PeakVolume RelativeVolumeFrame.peak_volume()\n");
5040
+ " TagLib::ID3v2::RelativeVolumeFrame::PeakVolume RelativeVolumeFrame.peak_volume(TagLib::ID3v2::RelativeVolumeFrame::ChannelType type)\n"
5041
+ " TagLib::ID3v2::RelativeVolumeFrame::PeakVolume RelativeVolumeFrame.peak_volume()\n");
5171
5042
 
5172
5043
  return Qnil;
5173
5044
  }
@@ -5176,7 +5047,7 @@ fail:
5176
5047
  SWIGINTERN VALUE
5177
5048
  _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE self) {
5178
5049
  TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
5179
- TagLib::ID3v2::PeakVolume *arg2 = 0 ;
5050
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg2 = 0 ;
5180
5051
  TagLib::ID3v2::RelativeVolumeFrame::ChannelType arg3 ;
5181
5052
  void *argp1 = 0 ;
5182
5053
  int res1 = 0 ;
@@ -5193,20 +5064,20 @@ _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_0(int argc, VALUE *argv, VALUE s
5193
5064
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame *","setPeakVolume", 1, self ));
5194
5065
  }
5195
5066
  arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
5196
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 );
5067
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 );
5197
5068
  if (!SWIG_IsOK(res2)) {
5198
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume const &","setPeakVolume", 2, argv[0] ));
5069
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &","setPeakVolume", 2, argv[0] ));
5199
5070
  }
5200
5071
  if (!argp2) {
5201
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ID3v2::PeakVolume const &","setPeakVolume", 2, argv[0]));
5072
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &","setPeakVolume", 2, argv[0]));
5202
5073
  }
5203
- arg2 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp2);
5074
+ arg2 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp2);
5204
5075
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
5205
5076
  if (!SWIG_IsOK(ecode3)) {
5206
5077
  SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::ChannelType","setPeakVolume", 3, argv[1] ));
5207
5078
  }
5208
5079
  arg3 = static_cast< TagLib::ID3v2::RelativeVolumeFrame::ChannelType >(val3);
5209
- (arg1)->setPeakVolume((TagLib::ID3v2::PeakVolume const &)*arg2,arg3);
5080
+ (arg1)->setPeakVolume((TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &)*arg2,arg3);
5210
5081
  return Qnil;
5211
5082
  fail:
5212
5083
  return Qnil;
@@ -5216,7 +5087,7 @@ fail:
5216
5087
  SWIGINTERN VALUE
5217
5088
  _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE self) {
5218
5089
  TagLib::ID3v2::RelativeVolumeFrame *arg1 = (TagLib::ID3v2::RelativeVolumeFrame *) 0 ;
5219
- TagLib::ID3v2::PeakVolume *arg2 = 0 ;
5090
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg2 = 0 ;
5220
5091
  void *argp1 = 0 ;
5221
5092
  int res1 = 0 ;
5222
5093
  void *argp2 ;
@@ -5230,15 +5101,15 @@ _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_1(int argc, VALUE *argv, VALUE s
5230
5101
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame *","setPeakVolume", 1, self ));
5231
5102
  }
5232
5103
  arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame * >(argp1);
5233
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0 );
5104
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 );
5234
5105
  if (!SWIG_IsOK(res2)) {
5235
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::PeakVolume const &","setPeakVolume", 2, argv[0] ));
5106
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &","setPeakVolume", 2, argv[0] ));
5236
5107
  }
5237
5108
  if (!argp2) {
5238
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ID3v2::PeakVolume const &","setPeakVolume", 2, argv[0]));
5109
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &","setPeakVolume", 2, argv[0]));
5239
5110
  }
5240
- arg2 = reinterpret_cast< TagLib::ID3v2::PeakVolume * >(argp2);
5241
- (arg1)->setPeakVolume((TagLib::ID3v2::PeakVolume const &)*arg2);
5111
+ arg2 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp2);
5112
+ (arg1)->setPeakVolume((TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &)*arg2);
5242
5113
  return Qnil;
5243
5114
  fail:
5244
5115
  return Qnil;
@@ -5263,7 +5134,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_peak_volume(int nargs, VALUE *arg
5263
5134
  _v = SWIG_CheckState(res);
5264
5135
  if (_v) {
5265
5136
  void *vptr = 0;
5266
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0);
5137
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0);
5267
5138
  _v = SWIG_CheckState(res);
5268
5139
  if (_v) {
5269
5140
  return _wrap_RelativeVolumeFrame_set_peak_volume__SWIG_1(nargs, args, self);
@@ -5277,7 +5148,7 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_peak_volume(int nargs, VALUE *arg
5277
5148
  _v = SWIG_CheckState(res);
5278
5149
  if (_v) {
5279
5150
  void *vptr = 0;
5280
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__PeakVolume, 0);
5151
+ int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0);
5281
5152
  _v = SWIG_CheckState(res);
5282
5153
  if (_v) {
5283
5154
  {
@@ -5293,8 +5164,8 @@ SWIGINTERN VALUE _wrap_RelativeVolumeFrame_set_peak_volume(int nargs, VALUE *arg
5293
5164
 
5294
5165
  fail:
5295
5166
  Ruby_Format_OverloadedError( argc, 4, "RelativeVolumeFrame.set_peak_volume",
5296
- " void RelativeVolumeFrame.set_peak_volume(TagLib::ID3v2::PeakVolume const &peak, TagLib::ID3v2::RelativeVolumeFrame::ChannelType type)\n"
5297
- " void RelativeVolumeFrame.set_peak_volume(TagLib::ID3v2::PeakVolume const &peak)\n");
5167
+ " void RelativeVolumeFrame.set_peak_volume(TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &peak, TagLib::ID3v2::RelativeVolumeFrame::ChannelType type)\n"
5168
+ " void RelativeVolumeFrame.set_peak_volume(TagLib::ID3v2::RelativeVolumeFrame::PeakVolume const &peak)\n");
5298
5169
 
5299
5170
  return Qnil;
5300
5171
  }
@@ -5353,6 +5224,153 @@ fail:
5353
5224
  }
5354
5225
 
5355
5226
 
5227
+ static swig_class SwigClassPeakVolume;
5228
+
5229
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
5230
+ SWIGINTERN VALUE
5231
+ _wrap_PeakVolume_allocate(VALUE self) {
5232
+ #else
5233
+ SWIGINTERN VALUE
5234
+ _wrap_PeakVolume_allocate(int argc, VALUE *argv, VALUE self) {
5235
+ #endif
5236
+
5237
+
5238
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume);
5239
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
5240
+ rb_obj_call_init(vresult, argc, argv);
5241
+ #endif
5242
+ return vresult;
5243
+ }
5244
+
5245
+
5246
+ SWIGINTERN VALUE
5247
+ _wrap_new_PeakVolume(int argc, VALUE *argv, VALUE self) {
5248
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *result = 0 ;
5249
+
5250
+ if ((argc < 0) || (argc > 0)) {
5251
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5252
+ }
5253
+ result = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *)new TagLib::ID3v2::RelativeVolumeFrame::PeakVolume();
5254
+ DATA_PTR(self) = result;
5255
+ SWIG_RubyAddTracking(result, self);
5256
+ return self;
5257
+ fail:
5258
+ return Qnil;
5259
+ }
5260
+
5261
+
5262
+ SWIGINTERN VALUE
5263
+ _wrap_PeakVolume_bits_representing_peak_set(int argc, VALUE *argv, VALUE self) {
5264
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *) 0 ;
5265
+ unsigned char arg2 ;
5266
+ void *argp1 = 0 ;
5267
+ int res1 = 0 ;
5268
+ unsigned char val2 ;
5269
+ int ecode2 = 0 ;
5270
+
5271
+ if ((argc < 1) || (argc > 1)) {
5272
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5273
+ }
5274
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5275
+ if (!SWIG_IsOK(res1)) {
5276
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","bitsRepresentingPeak", 1, self ));
5277
+ }
5278
+ arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5279
+ ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2);
5280
+ if (!SWIG_IsOK(ecode2)) {
5281
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","bitsRepresentingPeak", 2, argv[0] ));
5282
+ }
5283
+ arg2 = static_cast< unsigned char >(val2);
5284
+ if (arg1) (arg1)->bitsRepresentingPeak = arg2;
5285
+ return Qnil;
5286
+ fail:
5287
+ return Qnil;
5288
+ }
5289
+
5290
+
5291
+ SWIGINTERN VALUE
5292
+ _wrap_PeakVolume_bits_representing_peak_get(int argc, VALUE *argv, VALUE self) {
5293
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *) 0 ;
5294
+ void *argp1 = 0 ;
5295
+ int res1 = 0 ;
5296
+ unsigned char result;
5297
+ VALUE vresult = Qnil;
5298
+
5299
+ if ((argc < 0) || (argc > 0)) {
5300
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5301
+ }
5302
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5303
+ if (!SWIG_IsOK(res1)) {
5304
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","bitsRepresentingPeak", 1, self ));
5305
+ }
5306
+ arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5307
+ result = (unsigned char) ((arg1)->bitsRepresentingPeak);
5308
+ vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
5309
+ return vresult;
5310
+ fail:
5311
+ return Qnil;
5312
+ }
5313
+
5314
+
5315
+ SWIGINTERN VALUE
5316
+ _wrap_PeakVolume_peak_volume_set(int argc, VALUE *argv, VALUE self) {
5317
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *) 0 ;
5318
+ TagLib::ByteVector *arg2 = (TagLib::ByteVector *) 0 ;
5319
+ void *argp1 = 0 ;
5320
+ int res1 = 0 ;
5321
+ TagLib::ByteVector tmp2 ;
5322
+
5323
+ if ((argc < 1) || (argc > 1)) {
5324
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5325
+ }
5326
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5327
+ if (!SWIG_IsOK(res1)) {
5328
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","peakVolume", 1, self ));
5329
+ }
5330
+ arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5331
+ {
5332
+ tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
5333
+ arg2 = &tmp2;
5334
+ }
5335
+ if (arg1) (arg1)->peakVolume = *arg2;
5336
+ return Qnil;
5337
+ fail:
5338
+ return Qnil;
5339
+ }
5340
+
5341
+
5342
+ SWIGINTERN VALUE
5343
+ _wrap_PeakVolume_peak_volume_get(int argc, VALUE *argv, VALUE self) {
5344
+ TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1 = (TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *) 0 ;
5345
+ void *argp1 = 0 ;
5346
+ int res1 = 0 ;
5347
+ TagLib::ByteVector *result = 0 ;
5348
+ VALUE vresult = Qnil;
5349
+
5350
+ if ((argc < 0) || (argc > 0)) {
5351
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5352
+ }
5353
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0 | 0 );
5354
+ if (!SWIG_IsOK(res1)) {
5355
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *","peakVolume", 1, self ));
5356
+ }
5357
+ arg1 = reinterpret_cast< TagLib::ID3v2::RelativeVolumeFrame::PeakVolume * >(argp1);
5358
+ result = (TagLib::ByteVector *)& ((arg1)->peakVolume);
5359
+ {
5360
+ vresult = taglib_bytevector_to_ruby_string(*(result));
5361
+ }
5362
+ return vresult;
5363
+ fail:
5364
+ return Qnil;
5365
+ }
5366
+
5367
+
5368
+ SWIGINTERN void
5369
+ free_TagLib_ID3v2_RelativeVolumeFrame_PeakVolume(TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *arg1) {
5370
+ SWIG_RubyRemoveTracking(arg1);
5371
+ delete arg1;
5372
+ }
5373
+
5356
5374
  static swig_class SwigClassAttachedPictureFrame;
5357
5375
 
5358
5376
  SWIGINTERN VALUE
@@ -8809,10 +8827,10 @@ static swig_type_info _swigt__p_TagLib__ID3v2__Frame = {"_p_TagLib__ID3v2__Frame
8809
8827
  static swig_type_info _swigt__p_TagLib__ID3v2__FrameFactory = {"_p_TagLib__ID3v2__FrameFactory", "TagLib::ID3v2::FrameFactory *", 0, 0, (void*)0, 0};
8810
8828
  static swig_type_info _swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame = {"_p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame", "TagLib::ID3v2::GeneralEncapsulatedObjectFrame *", 0, 0, (void*)0, 0};
8811
8829
  static swig_type_info _swigt__p_TagLib__ID3v2__Header = {"_p_TagLib__ID3v2__Header", "TagLib::ID3v2::Header *", 0, 0, (void*)0, 0};
8812
- static swig_type_info _swigt__p_TagLib__ID3v2__PeakVolume = {"_p_TagLib__ID3v2__PeakVolume", "TagLib::ID3v2::PeakVolume *", 0, 0, (void*)0, 0};
8813
8830
  static swig_type_info _swigt__p_TagLib__ID3v2__PopularimeterFrame = {"_p_TagLib__ID3v2__PopularimeterFrame", "TagLib::ID3v2::PopularimeterFrame *", 0, 0, (void*)0, 0};
8814
8831
  static swig_type_info _swigt__p_TagLib__ID3v2__PrivateFrame = {"_p_TagLib__ID3v2__PrivateFrame", "TagLib::ID3v2::PrivateFrame *", 0, 0, (void*)0, 0};
8815
8832
  static swig_type_info _swigt__p_TagLib__ID3v2__RelativeVolumeFrame = {"_p_TagLib__ID3v2__RelativeVolumeFrame", "TagLib::ID3v2::RelativeVolumeFrame *", 0, 0, (void*)0, 0};
8833
+ static swig_type_info _swigt__p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume = {"_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume", "TagLib::ID3v2::RelativeVolumeFrame::PeakVolume *", 0, 0, (void*)0, 0};
8816
8834
  static swig_type_info _swigt__p_TagLib__ID3v2__Tag = {"_p_TagLib__ID3v2__Tag", "TagLib::ID3v2::Tag *", 0, 0, (void*)0, 0};
8817
8835
  static swig_type_info _swigt__p_TagLib__ID3v2__TextIdentificationFrame = {"_p_TagLib__ID3v2__TextIdentificationFrame", "TagLib::ID3v2::TextIdentificationFrame *", 0, 0, (void*)0, 0};
8818
8836
  static swig_type_info _swigt__p_TagLib__ID3v2__UniqueFileIdentifierFrame = {"_p_TagLib__ID3v2__UniqueFileIdentifierFrame", "TagLib::ID3v2::UniqueFileIdentifierFrame *", 0, 0, (void*)0, 0};
@@ -8843,10 +8861,10 @@ static swig_type_info *swig_type_initial[] = {
8843
8861
  &_swigt__p_TagLib__ID3v2__FrameFactory,
8844
8862
  &_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame,
8845
8863
  &_swigt__p_TagLib__ID3v2__Header,
8846
- &_swigt__p_TagLib__ID3v2__PeakVolume,
8847
8864
  &_swigt__p_TagLib__ID3v2__PopularimeterFrame,
8848
8865
  &_swigt__p_TagLib__ID3v2__PrivateFrame,
8849
8866
  &_swigt__p_TagLib__ID3v2__RelativeVolumeFrame,
8867
+ &_swigt__p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume,
8850
8868
  &_swigt__p_TagLib__ID3v2__Tag,
8851
8869
  &_swigt__p_TagLib__ID3v2__TextIdentificationFrame,
8852
8870
  &_swigt__p_TagLib__ID3v2__UniqueFileIdentifierFrame,
@@ -8877,10 +8895,10 @@ static swig_cast_info _swigc__p_TagLib__ID3v2__Frame[] = { {&_swigt__p_TagLib__
8877
8895
  static swig_cast_info _swigc__p_TagLib__ID3v2__FrameFactory[] = { {&_swigt__p_TagLib__ID3v2__FrameFactory, 0, 0, 0},{0, 0, 0, 0}};
8878
8896
  static swig_cast_info _swigc__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame[] = { {&_swigt__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame, 0, 0, 0},{0, 0, 0, 0}};
8879
8897
  static swig_cast_info _swigc__p_TagLib__ID3v2__Header[] = { {&_swigt__p_TagLib__ID3v2__Header, 0, 0, 0},{0, 0, 0, 0}};
8880
- static swig_cast_info _swigc__p_TagLib__ID3v2__PeakVolume[] = { {&_swigt__p_TagLib__ID3v2__PeakVolume, 0, 0, 0},{0, 0, 0, 0}};
8881
8898
  static swig_cast_info _swigc__p_TagLib__ID3v2__PopularimeterFrame[] = { {&_swigt__p_TagLib__ID3v2__PopularimeterFrame, 0, 0, 0},{0, 0, 0, 0}};
8882
8899
  static swig_cast_info _swigc__p_TagLib__ID3v2__PrivateFrame[] = { {&_swigt__p_TagLib__ID3v2__PrivateFrame, 0, 0, 0},{0, 0, 0, 0}};
8883
8900
  static swig_cast_info _swigc__p_TagLib__ID3v2__RelativeVolumeFrame[] = { {&_swigt__p_TagLib__ID3v2__RelativeVolumeFrame, 0, 0, 0},{0, 0, 0, 0}};
8901
+ static swig_cast_info _swigc__p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume[] = { {&_swigt__p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, 0, 0, 0},{0, 0, 0, 0}};
8884
8902
  static swig_cast_info _swigc__p_TagLib__ID3v2__Tag[] = { {&_swigt__p_TagLib__ID3v2__Tag, 0, 0, 0},{0, 0, 0, 0}};
8885
8903
  static swig_cast_info _swigc__p_TagLib__ID3v2__TextIdentificationFrame[] = { {&_swigt__p_TagLib__ID3v2__TextIdentificationFrame, 0, 0, 0}, {&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame, _p_TagLib__ID3v2__UserTextIdentificationFrameTo_p_TagLib__ID3v2__TextIdentificationFrame, 0, 0},{0, 0, 0, 0}};
8886
8904
  static swig_cast_info _swigc__p_TagLib__ID3v2__UniqueFileIdentifierFrame[] = { {&_swigt__p_TagLib__ID3v2__UniqueFileIdentifierFrame, 0, 0, 0},{0, 0, 0, 0}};
@@ -8911,10 +8929,10 @@ static swig_cast_info *swig_cast_initial[] = {
8911
8929
  _swigc__p_TagLib__ID3v2__FrameFactory,
8912
8930
  _swigc__p_TagLib__ID3v2__GeneralEncapsulatedObjectFrame,
8913
8931
  _swigc__p_TagLib__ID3v2__Header,
8914
- _swigc__p_TagLib__ID3v2__PeakVolume,
8915
8932
  _swigc__p_TagLib__ID3v2__PopularimeterFrame,
8916
8933
  _swigc__p_TagLib__ID3v2__PrivateFrame,
8917
8934
  _swigc__p_TagLib__ID3v2__RelativeVolumeFrame,
8935
+ _swigc__p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume,
8918
8936
  _swigc__p_TagLib__ID3v2__Tag,
8919
8937
  _swigc__p_TagLib__ID3v2__TextIdentificationFrame,
8920
8938
  _swigc__p_TagLib__ID3v2__UniqueFileIdentifierFrame,
@@ -8949,7 +8967,7 @@ static swig_cast_info *swig_cast_initial[] = {
8949
8967
  * array with the correct data and linking the correct swig_cast_info
8950
8968
  * structures together.
8951
8969
  *
8952
- * The generated swig_type_info structures are assigned staticly to an initial
8970
+ * The generated swig_type_info structures are assigned statically to an initial
8953
8971
  * array. We just loop through that array, and handle each type individually.
8954
8972
  * First we lookup if this type has been already loaded, and if so, use the
8955
8973
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -8993,7 +9011,7 @@ SWIGRUNTIME void
8993
9011
  SWIG_InitializeModule(void *clientdata) {
8994
9012
  size_t i;
8995
9013
  swig_module_info *module_head, *iter;
8996
- int found, init;
9014
+ int init;
8997
9015
 
8998
9016
  /* check to see if the circular list has been setup, if not, set it up */
8999
9017
  if (swig_module.next==0) {
@@ -9012,22 +9030,18 @@ SWIG_InitializeModule(void *clientdata) {
9012
9030
  /* This is the first module loaded for this interpreter */
9013
9031
  /* so set the swig module into the interpreter */
9014
9032
  SWIG_SetModule(clientdata, &swig_module);
9015
- module_head = &swig_module;
9016
9033
  } else {
9017
9034
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
9018
- found=0;
9019
9035
  iter=module_head;
9020
9036
  do {
9021
9037
  if (iter==&swig_module) {
9022
- found=1;
9023
- break;
9038
+ /* Our module is already in the list, so there's nothing more to do. */
9039
+ return;
9024
9040
  }
9025
9041
  iter=iter->next;
9026
9042
  } while (iter!= module_head);
9027
9043
 
9028
- /* if the is found in the list, then all is done and we may leave */
9029
- if (found) return;
9030
- /* otherwise we must add out module into the list */
9044
+ /* otherwise we must add our module into the list */
9031
9045
  swig_module.next = module_head->next;
9032
9046
  module_head->next = &swig_module;
9033
9047
  }
@@ -9271,18 +9285,6 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
9271
9285
  SwigClassFrameFactory.mark = 0;
9272
9286
  SwigClassFrameFactory.trackObjects = 1;
9273
9287
 
9274
- SwigClassPeakVolume.klass = rb_define_class_under(mID3v2, "PeakVolume", rb_cObject);
9275
- SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__PeakVolume, (void *) &SwigClassPeakVolume);
9276
- rb_define_alloc_func(SwigClassPeakVolume.klass, _wrap_PeakVolume_allocate);
9277
- rb_define_method(SwigClassPeakVolume.klass, "initialize", VALUEFUNC(_wrap_new_PeakVolume), -1);
9278
- rb_define_method(SwigClassPeakVolume.klass, "bits_representing_peak=", VALUEFUNC(_wrap_PeakVolume_bits_representing_peak_set), -1);
9279
- rb_define_method(SwigClassPeakVolume.klass, "bits_representing_peak", VALUEFUNC(_wrap_PeakVolume_bits_representing_peak_get), -1);
9280
- rb_define_method(SwigClassPeakVolume.klass, "peak_volume=", VALUEFUNC(_wrap_PeakVolume_peak_volume_set), -1);
9281
- rb_define_method(SwigClassPeakVolume.klass, "peak_volume", VALUEFUNC(_wrap_PeakVolume_peak_volume_get), -1);
9282
- SwigClassPeakVolume.mark = 0;
9283
- SwigClassPeakVolume.destroy = (void (*)(void *)) free_TagLib_ID3v2_PeakVolume;
9284
- SwigClassPeakVolume.trackObjects = 1;
9285
-
9286
9288
  SwigClassRelativeVolumeFrame.klass = rb_define_class_under(mID3v2, "RelativeVolumeFrame", ((swig_class *) SWIGTYPE_p_TagLib__ID3v2__Frame->clientdata)->klass);
9287
9289
  SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame, (void *) &SwigClassRelativeVolumeFrame);
9288
9290
  rb_define_alloc_func(SwigClassRelativeVolumeFrame.klass, _wrap_RelativeVolumeFrame_allocate);
@@ -9312,6 +9314,18 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
9312
9314
  SwigClassRelativeVolumeFrame.destroy = (void (*)(void *)) free_TagLib_ID3v2_RelativeVolumeFrame;
9313
9315
  SwigClassRelativeVolumeFrame.trackObjects = 1;
9314
9316
 
9317
+ SwigClassPeakVolume.klass = rb_define_class_under(mID3v2, "PeakVolume", rb_cObject);
9318
+ SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__RelativeVolumeFrame__PeakVolume, (void *) &SwigClassPeakVolume);
9319
+ rb_define_alloc_func(SwigClassPeakVolume.klass, _wrap_PeakVolume_allocate);
9320
+ rb_define_method(SwigClassPeakVolume.klass, "initialize", VALUEFUNC(_wrap_new_PeakVolume), -1);
9321
+ rb_define_method(SwigClassPeakVolume.klass, "bits_representing_peak=", VALUEFUNC(_wrap_PeakVolume_bits_representing_peak_set), -1);
9322
+ rb_define_method(SwigClassPeakVolume.klass, "bits_representing_peak", VALUEFUNC(_wrap_PeakVolume_bits_representing_peak_get), -1);
9323
+ rb_define_method(SwigClassPeakVolume.klass, "peak_volume=", VALUEFUNC(_wrap_PeakVolume_peak_volume_set), -1);
9324
+ rb_define_method(SwigClassPeakVolume.klass, "peak_volume", VALUEFUNC(_wrap_PeakVolume_peak_volume_get), -1);
9325
+ SwigClassPeakVolume.mark = 0;
9326
+ SwigClassPeakVolume.destroy = (void (*)(void *)) free_TagLib_ID3v2_RelativeVolumeFrame_PeakVolume;
9327
+ SwigClassPeakVolume.trackObjects = 1;
9328
+
9315
9329
  SwigClassAttachedPictureFrame.klass = rb_define_class_under(mID3v2, "AttachedPictureFrame", ((swig_class *) SWIGTYPE_p_TagLib__ID3v2__Frame->clientdata)->klass);
9316
9330
  SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__AttachedPictureFrame, (void *) &SwigClassAttachedPictureFrame);
9317
9331
  rb_define_alloc_func(SwigClassAttachedPictureFrame.klass, _wrap_AttachedPictureFrame_allocate);