taglib-ruby 0.5.2-x86-mingw32 → 0.6.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -1
- data/CHANGES.md +11 -0
- data/LICENSE.txt +0 -2
- data/README.md +7 -9
- data/docs/taglib/base.rb +35 -7
- data/docs/taglib/id3v2.rb +37 -5
- data/docs/taglib/mp4.rb +267 -0
- data/docs/taglib/mpeg.rb +23 -8
- data/ext/taglib_base/includes.i +2 -2
- data/ext/taglib_base/taglib_base.i +3 -0
- data/ext/taglib_base/taglib_base_wrap.cxx +11 -12
- data/ext/taglib_flac/extconf.rb +4 -0
- data/ext/taglib_flac/taglib_flac_wrap.cxx +21 -25
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +4 -8
- data/ext/taglib_id3v2/taglib_id3v2.i +3 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +528 -69
- data/ext/taglib_mp4/extconf.rb +4 -0
- data/ext/taglib_mp4/taglib_mp4.i +225 -0
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +4830 -0
- data/ext/taglib_mpeg/taglib_mpeg.i +15 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +174 -88
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +2 -6
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +8 -12
- data/lib/libtag.dll +0 -0
- data/lib/taglib.rb +1 -0
- data/lib/taglib/mp4.rb +33 -0
- data/lib/taglib/version.rb +2 -2
- data/lib/taglib_base.so +0 -0
- data/lib/taglib_flac.so +0 -0
- data/lib/taglib_id3v1.so +0 -0
- data/lib/taglib_id3v2.so +0 -0
- data/lib/taglib_mp4.so +0 -0
- data/lib/taglib_mpeg.so +0 -0
- data/lib/taglib_ogg.so +0 -0
- data/lib/taglib_vorbis.so +0 -0
- data/taglib-ruby.gemspec +19 -3
- data/tasks/ext.rake +3 -0
- data/tasks/swig.rake +6 -1
- data/test/base_test.rb +11 -0
- data/test/data/Makefile +5 -2
- data/test/data/flac-create.cpp +2 -22
- data/test/data/get_picture_data.cpp +22 -0
- data/test/data/mp4-create.cpp +38 -0
- data/test/data/mp4.m4a +0 -0
- data/test/fileref_write_test.rb +9 -0
- data/test/flac_file_test.rb +2 -1
- data/test/id3v2_header_test.rb +61 -0
- data/test/id3v2_write_test.rb +17 -0
- data/test/mp4_file_test.rb +51 -0
- data/test/mp4_file_write_test.rb +66 -0
- data/test/mp4_items_test.rb +183 -0
- metadata +84 -7
data/docs/taglib/mpeg.rb
CHANGED
@@ -64,14 +64,29 @@ module TagLib::MPEG
|
|
64
64
|
|
65
65
|
# Save the file and the associated tags.
|
66
66
|
#
|
67
|
-
# @
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
67
|
+
# @overload save(tags=TagLib::MPEG::File::AllTags, strip_others=true)
|
68
|
+
#
|
69
|
+
# @param [Integer] tags
|
70
|
+
# The tag types to save (see constants), e.g.
|
71
|
+
# {TagLib::MPEG::File::ID3v2}. To specify more than one tag type,
|
72
|
+
# or them together using `|`, e.g.
|
73
|
+
# `TagLib::MPEG::File::ID3v1 | TagLib::MPEG::File::ID3v2`.
|
74
|
+
# @param [Boolean] strip_others
|
75
|
+
# true if tag types other than the specified ones should be
|
76
|
+
# stripped from the file
|
77
|
+
#
|
78
|
+
# @overload save(tags, strip_others, id3v2_version)
|
79
|
+
#
|
80
|
+
# @param [Integer] id3v2_version
|
81
|
+
# 3 if the saved ID3v2 tag should be in version ID3v2.3, or 4 if
|
82
|
+
# it should use ID3v2.4
|
83
|
+
#
|
84
|
+
# This overload can only be called if the extension was compiled
|
85
|
+
# against TagLib >= 1.8. Otherwise it will raise an ArgumentError.
|
86
|
+
# So either check the version using {TagLib::TAGLIB_MAJOR_VERSION}
|
87
|
+
# and {TagLib::TAGLIB_MINOR_VERSION} or be prepared to rescue the
|
88
|
+
# ArgumentError.
|
89
|
+
#
|
75
90
|
# @return [Boolean] whether saving was successful
|
76
91
|
def save(tags=TagLib::MPEG::File::AllTags, strip_others=true)
|
77
92
|
end
|
data/ext/taglib_base/includes.i
CHANGED
@@ -42,7 +42,7 @@ TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
|
42
42
|
if (NIL_P(s)) {
|
43
43
|
return TagLib::ByteVector::null;
|
44
44
|
} else {
|
45
|
-
return TagLib::ByteVector(RSTRING_PTR(s), RSTRING_LEN(s));
|
45
|
+
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
@@ -60,7 +60,7 @@ TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
|
60
60
|
if (NIL_P(s)) {
|
61
61
|
return TagLib::String::null;
|
62
62
|
} else {
|
63
|
-
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(s)), TagLib::String::UTF8);
|
63
|
+
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
|
@@ -26,6 +26,9 @@ namespace TagLib {
|
|
26
26
|
typedef unsigned long ulong;
|
27
27
|
}
|
28
28
|
|
29
|
+
%constant int TAGLIB_MAJOR_VERSION = TAGLIB_MAJOR_VERSION;
|
30
|
+
%constant int TAGLIB_MINOR_VERSION = TAGLIB_MINOR_VERSION;
|
31
|
+
%constant int TAGLIB_PATCH_VERSION = TAGLIB_PATCH_VERSION;
|
29
32
|
|
30
33
|
// Rename setters to Ruby convention (combining SWIG rename functions
|
31
34
|
// does not seem to be possible, thus resort to some magic)
|
@@ -1886,7 +1886,7 @@ TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
|
1886
1886
|
if (NIL_P(s)) {
|
1887
1887
|
return TagLib::ByteVector::null;
|
1888
1888
|
} else {
|
1889
|
-
return TagLib::ByteVector(RSTRING_PTR(s), RSTRING_LEN(s));
|
1889
|
+
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1890
1890
|
}
|
1891
1891
|
}
|
1892
1892
|
|
@@ -1904,7 +1904,7 @@ TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
|
1904
1904
|
if (NIL_P(s)) {
|
1905
1905
|
return TagLib::String::null;
|
1906
1906
|
} else {
|
1907
|
-
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(s)), TagLib::String::UTF8);
|
1907
|
+
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1908
1908
|
}
|
1909
1909
|
}
|
1910
1910
|
|
@@ -2019,11 +2019,7 @@ SWIGINTERN int
|
|
2019
2019
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
2020
2020
|
{
|
2021
2021
|
if (TYPE(obj) == T_STRING) {
|
2022
|
-
#if defined(StringValuePtr)
|
2023
2022
|
char *cstr = StringValuePtr(obj);
|
2024
|
-
#else
|
2025
|
-
char *cstr = STR2CSTR(obj);
|
2026
|
-
#endif
|
2027
2023
|
size_t size = RSTRING_LEN(obj) + 1;
|
2028
2024
|
if (cptr) {
|
2029
2025
|
if (alloc) {
|
@@ -4135,12 +4131,12 @@ _wrap_new_FileRef__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
4135
4131
|
}
|
4136
4132
|
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
4137
4133
|
if (!SWIG_IsOK(ecode2)) {
|
4138
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","
|
4134
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","FileRef", 2, argv[1] ));
|
4139
4135
|
}
|
4140
4136
|
arg2 = static_cast< bool >(val2);
|
4141
4137
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4142
4138
|
if (!SWIG_IsOK(ecode3)) {
|
4143
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","
|
4139
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","FileRef", 3, argv[2] ));
|
4144
4140
|
}
|
4145
4141
|
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
4146
4142
|
result = (TagLib::FileRef *)new TagLib::FileRef(arg1,arg2,arg3);
|
@@ -4171,7 +4167,7 @@ _wrap_new_FileRef__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
4171
4167
|
}
|
4172
4168
|
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
4173
4169
|
if (!SWIG_IsOK(ecode2)) {
|
4174
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","
|
4170
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","FileRef", 2, argv[1] ));
|
4175
4171
|
}
|
4176
4172
|
arg2 = static_cast< bool >(val2);
|
4177
4173
|
result = (TagLib::FileRef *)new TagLib::FileRef(arg1,arg2);
|
@@ -4218,7 +4214,7 @@ _wrap_new_FileRef__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
|
4218
4214
|
}
|
4219
4215
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
4220
4216
|
if (!SWIG_IsOK(res1)) {
|
4221
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","
|
4217
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","FileRef", 1, argv[0] ));
|
4222
4218
|
}
|
4223
4219
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
4224
4220
|
result = (TagLib::FileRef *)new TagLib::FileRef(arg1);
|
@@ -4259,10 +4255,10 @@ _wrap_new_FileRef__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
|
4259
4255
|
}
|
4260
4256
|
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__FileRef, 0 );
|
4261
4257
|
if (!SWIG_IsOK(res1)) {
|
4262
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FileRef const &","
|
4258
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FileRef const &","FileRef", 1, argv[0] ));
|
4263
4259
|
}
|
4264
4260
|
if (!argp1) {
|
4265
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::FileRef const &","
|
4261
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::FileRef const &","FileRef", 1, argv[0]));
|
4266
4262
|
}
|
4267
4263
|
arg1 = reinterpret_cast< TagLib::FileRef * >(argp1);
|
4268
4264
|
result = (TagLib::FileRef *)new TagLib::FileRef((TagLib::FileRef const &)*arg1);
|
@@ -5074,6 +5070,9 @@ SWIGEXPORT void Init_taglib_base(void) {
|
|
5074
5070
|
SwigClassString.mark = 0;
|
5075
5071
|
SwigClassString.destroy = (void (*)(void *)) free_TagLib_String;
|
5076
5072
|
SwigClassString.trackObjects = 1;
|
5073
|
+
rb_define_const(mTagLib, "TAGLIB_MAJOR_VERSION", SWIG_From_int(static_cast< int >(TAGLIB_MAJOR_VERSION)));
|
5074
|
+
rb_define_const(mTagLib, "TAGLIB_MINOR_VERSION", SWIG_From_int(static_cast< int >(TAGLIB_MINOR_VERSION)));
|
5075
|
+
rb_define_const(mTagLib, "TAGLIB_PATCH_VERSION", SWIG_From_int(static_cast< int >(TAGLIB_PATCH_VERSION)));
|
5077
5076
|
|
5078
5077
|
SwigClassTag.klass = rb_define_class_under(mTagLib, "Tag", rb_cObject);
|
5079
5078
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__Tag, (void *) &SwigClassTag);
|
@@ -1894,7 +1894,7 @@ TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
|
1894
1894
|
if (NIL_P(s)) {
|
1895
1895
|
return TagLib::ByteVector::null;
|
1896
1896
|
} else {
|
1897
|
-
return TagLib::ByteVector(RSTRING_PTR(s), RSTRING_LEN(s));
|
1897
|
+
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1898
1898
|
}
|
1899
1899
|
}
|
1900
1900
|
|
@@ -1912,7 +1912,7 @@ TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
|
1912
1912
|
if (NIL_P(s)) {
|
1913
1913
|
return TagLib::String::null;
|
1914
1914
|
} else {
|
1915
|
-
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(s)), TagLib::String::UTF8);
|
1915
|
+
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1916
1916
|
}
|
1917
1917
|
}
|
1918
1918
|
|
@@ -2076,11 +2076,7 @@ SWIGINTERN int
|
|
2076
2076
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
2077
2077
|
{
|
2078
2078
|
if (TYPE(obj) == T_STRING) {
|
2079
|
-
#if defined(StringValuePtr)
|
2080
2079
|
char *cstr = StringValuePtr(obj);
|
2081
|
-
#else
|
2082
|
-
char *cstr = STR2CSTR(obj);
|
2083
|
-
#endif
|
2084
2080
|
size_t size = RSTRING_LEN(obj) + 1;
|
2085
2081
|
if (cptr) {
|
2086
2082
|
if (alloc) {
|
@@ -2210,22 +2206,22 @@ _wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2210
2206
|
{
|
2211
2207
|
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__ByteVector, 0 );
|
2212
2208
|
if (!SWIG_IsOK(res1)) {
|
2213
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","
|
2209
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2214
2210
|
}
|
2215
2211
|
if (!argp1) {
|
2216
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","
|
2212
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2217
2213
|
} else {
|
2218
2214
|
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2219
2215
|
}
|
2220
2216
|
}
|
2221
2217
|
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2222
2218
|
if (!SWIG_IsOK(ecode2)) {
|
2223
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","
|
2219
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Properties", 2, argv[1] ));
|
2224
2220
|
}
|
2225
2221
|
arg2 = static_cast< long >(val2);
|
2226
2222
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
2227
2223
|
if (!SWIG_IsOK(ecode3)) {
|
2228
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","
|
2224
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 3, argv[2] ));
|
2229
2225
|
}
|
2230
2226
|
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
2231
2227
|
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2,arg3);
|
@@ -2253,17 +2249,17 @@ _wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2253
2249
|
{
|
2254
2250
|
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__ByteVector, 0 );
|
2255
2251
|
if (!SWIG_IsOK(res1)) {
|
2256
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","
|
2252
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2257
2253
|
}
|
2258
2254
|
if (!argp1) {
|
2259
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","
|
2255
|
+
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2260
2256
|
} else {
|
2261
2257
|
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2262
2258
|
}
|
2263
2259
|
}
|
2264
2260
|
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2265
2261
|
if (!SWIG_IsOK(ecode2)) {
|
2266
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","
|
2262
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Properties", 2, argv[1] ));
|
2267
2263
|
}
|
2268
2264
|
arg2 = static_cast< long >(val2);
|
2269
2265
|
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2);
|
@@ -2290,12 +2286,12 @@ _wrap_new_Properties__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
2290
2286
|
}
|
2291
2287
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
2292
2288
|
if (!SWIG_IsOK(res1)) {
|
2293
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","
|
2289
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","Properties", 1, argv[0] ));
|
2294
2290
|
}
|
2295
2291
|
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
2296
2292
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2297
2293
|
if (!SWIG_IsOK(ecode2)) {
|
2298
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","
|
2294
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 2, argv[1] ));
|
2299
2295
|
}
|
2300
2296
|
arg2 = static_cast< TagLib::AudioProperties::ReadStyle >(val2);
|
2301
2297
|
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2);
|
@@ -2336,7 +2332,7 @@ _wrap_new_Properties__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
|
2336
2332
|
}
|
2337
2333
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
2338
2334
|
if (!SWIG_IsOK(res1)) {
|
2339
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","
|
2335
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","Properties", 1, argv[0] ));
|
2340
2336
|
}
|
2341
2337
|
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
2342
2338
|
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1);
|
@@ -3262,12 +3258,12 @@ _wrap_new_File__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
3262
3258
|
}
|
3263
3259
|
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
3264
3260
|
if (!SWIG_IsOK(ecode2)) {
|
3265
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","
|
3261
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
3266
3262
|
}
|
3267
3263
|
arg2 = static_cast< bool >(val2);
|
3268
3264
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3269
3265
|
if (!SWIG_IsOK(ecode3)) {
|
3270
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties::ReadStyle","
|
3266
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties::ReadStyle","File", 3, argv[2] ));
|
3271
3267
|
}
|
3272
3268
|
arg3 = static_cast< TagLib::FLAC::Properties::ReadStyle >(val3);
|
3273
3269
|
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2,arg3);
|
@@ -3298,7 +3294,7 @@ _wrap_new_File__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
3298
3294
|
}
|
3299
3295
|
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
3300
3296
|
if (!SWIG_IsOK(ecode2)) {
|
3301
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","
|
3297
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
3302
3298
|
}
|
3303
3299
|
arg2 = static_cast< bool >(val2);
|
3304
3300
|
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2);
|
@@ -3358,17 +3354,17 @@ _wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
|
3358
3354
|
}
|
3359
3355
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3360
3356
|
if (!SWIG_IsOK(res2)) {
|
3361
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","
|
3357
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","File", 2, argv[1] ));
|
3362
3358
|
}
|
3363
3359
|
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
3364
3360
|
ecode3 = SWIG_AsVal_bool(argv[2], &val3);
|
3365
3361
|
if (!SWIG_IsOK(ecode3)) {
|
3366
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","
|
3362
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","File", 3, argv[2] ));
|
3367
3363
|
}
|
3368
3364
|
arg3 = static_cast< bool >(val3);
|
3369
3365
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
3370
3366
|
if (!SWIG_IsOK(ecode4)) {
|
3371
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties::ReadStyle","
|
3367
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties::ReadStyle","File", 4, argv[3] ));
|
3372
3368
|
}
|
3373
3369
|
arg4 = static_cast< TagLib::FLAC::Properties::ReadStyle >(val4);
|
3374
3370
|
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2,arg3,arg4);
|
@@ -3402,12 +3398,12 @@ _wrap_new_File__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
|
3402
3398
|
}
|
3403
3399
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3404
3400
|
if (!SWIG_IsOK(res2)) {
|
3405
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","
|
3401
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","File", 2, argv[1] ));
|
3406
3402
|
}
|
3407
3403
|
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
3408
3404
|
ecode3 = SWIG_AsVal_bool(argv[2], &val3);
|
3409
3405
|
if (!SWIG_IsOK(ecode3)) {
|
3410
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","
|
3406
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","File", 3, argv[2] ));
|
3411
3407
|
}
|
3412
3408
|
arg3 = static_cast< bool >(val3);
|
3413
3409
|
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2,arg3);
|
@@ -3455,7 +3451,7 @@ _wrap_new_File__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
|
3455
3451
|
}
|
3456
3452
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3457
3453
|
if (!SWIG_IsOK(res2)) {
|
3458
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","
|
3454
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","File", 2, argv[1] ));
|
3459
3455
|
}
|
3460
3456
|
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
3461
3457
|
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2);
|
@@ -1877,7 +1877,7 @@ TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
|
1877
1877
|
if (NIL_P(s)) {
|
1878
1878
|
return TagLib::ByteVector::null;
|
1879
1879
|
} else {
|
1880
|
-
return TagLib::ByteVector(RSTRING_PTR(s), RSTRING_LEN(s));
|
1880
|
+
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1881
1881
|
}
|
1882
1882
|
}
|
1883
1883
|
|
@@ -1895,7 +1895,7 @@ TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
|
1895
1895
|
if (NIL_P(s)) {
|
1896
1896
|
return TagLib::String::null;
|
1897
1897
|
} else {
|
1898
|
-
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(s)), TagLib::String::UTF8);
|
1898
|
+
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1899
1899
|
}
|
1900
1900
|
}
|
1901
1901
|
|
@@ -1976,11 +1976,7 @@ SWIGINTERN int
|
|
1976
1976
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1977
1977
|
{
|
1978
1978
|
if (TYPE(obj) == T_STRING) {
|
1979
|
-
#if defined(StringValuePtr)
|
1980
1979
|
char *cstr = StringValuePtr(obj);
|
1981
|
-
#else
|
1982
|
-
char *cstr = STR2CSTR(obj);
|
1983
|
-
#endif
|
1984
1980
|
size_t size = RSTRING_LEN(obj) + 1;
|
1985
1981
|
if (cptr) {
|
1986
1982
|
if (alloc) {
|
@@ -2275,12 +2271,12 @@ _wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2275
2271
|
}
|
2276
2272
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
2277
2273
|
if (!SWIG_IsOK(res1)) {
|
2278
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","
|
2274
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
|
2279
2275
|
}
|
2280
2276
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2281
2277
|
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2282
2278
|
if (!SWIG_IsOK(ecode2)) {
|
2283
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","
|
2279
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Tag", 2, argv[1] ));
|
2284
2280
|
}
|
2285
2281
|
arg2 = static_cast< long >(val2);
|
2286
2282
|
result = (TagLib::ID3v1::Tag *)new TagLib::ID3v1::Tag(arg1,arg2);
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#include <taglib/id3v2frame.h>
|
4
4
|
#include <taglib/id3v2framefactory.h>
|
5
5
|
#include <taglib/id3v2tag.h>
|
6
|
+
#include <taglib/id3v2header.h>
|
6
7
|
|
7
8
|
#include <taglib/attachedpictureframe.h>
|
8
9
|
#include <taglib/commentsframe.h>
|
@@ -70,6 +71,8 @@ VALUE taglib_id3v2_framelist_to_ruby_array(TagLib::ID3v2::FrameList *list) {
|
|
70
71
|
}
|
71
72
|
%}
|
72
73
|
|
74
|
+
%include <taglib/id3v2header.h>
|
75
|
+
|
73
76
|
%ignore TagLib::ID3v2::Frame::Header;
|
74
77
|
%include <taglib/id3v2frame.h>
|
75
78
|
|
@@ -1875,6 +1875,7 @@ static VALUE mID3v2;
|
|
1875
1875
|
#include <taglib/id3v2frame.h>
|
1876
1876
|
#include <taglib/id3v2framefactory.h>
|
1877
1877
|
#include <taglib/id3v2tag.h>
|
1878
|
+
#include <taglib/id3v2header.h>
|
1878
1879
|
|
1879
1880
|
#include <taglib/attachedpictureframe.h>
|
1880
1881
|
#include <taglib/commentsframe.h>
|
@@ -1914,7 +1915,7 @@ TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
|
1914
1915
|
if (NIL_P(s)) {
|
1915
1916
|
return TagLib::ByteVector::null;
|
1916
1917
|
} else {
|
1917
|
-
return TagLib::ByteVector(RSTRING_PTR(s), RSTRING_LEN(s));
|
1918
|
+
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1918
1919
|
}
|
1919
1920
|
}
|
1920
1921
|
|
@@ -1932,7 +1933,7 @@ TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
|
1932
1933
|
if (NIL_P(s)) {
|
1933
1934
|
return TagLib::String::null;
|
1934
1935
|
} else {
|
1935
|
-
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(s)), TagLib::String::UTF8);
|
1936
|
+
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1936
1937
|
}
|
1937
1938
|
}
|
1938
1939
|
|
@@ -2039,6 +2040,56 @@ VALUE taglib_id3v2_framelist_to_ruby_array(TagLib::ID3v2::FrameList *list) {
|
|
2039
2040
|
}
|
2040
2041
|
|
2041
2042
|
|
2043
|
+
SWIGINTERN swig_type_info*
|
2044
|
+
SWIG_pchar_descriptor(void)
|
2045
|
+
{
|
2046
|
+
static int init = 0;
|
2047
|
+
static swig_type_info* info = 0;
|
2048
|
+
if (!init) {
|
2049
|
+
info = SWIG_TypeQuery("_p_char");
|
2050
|
+
init = 1;
|
2051
|
+
}
|
2052
|
+
return info;
|
2053
|
+
}
|
2054
|
+
|
2055
|
+
|
2056
|
+
SWIGINTERN int
|
2057
|
+
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
2058
|
+
{
|
2059
|
+
if (TYPE(obj) == T_STRING) {
|
2060
|
+
char *cstr = StringValuePtr(obj);
|
2061
|
+
size_t size = RSTRING_LEN(obj) + 1;
|
2062
|
+
if (cptr) {
|
2063
|
+
if (alloc) {
|
2064
|
+
if (*alloc == SWIG_NEWOBJ) {
|
2065
|
+
*cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
|
2066
|
+
} else {
|
2067
|
+
*cptr = cstr;
|
2068
|
+
*alloc = SWIG_OLDOBJ;
|
2069
|
+
}
|
2070
|
+
}
|
2071
|
+
}
|
2072
|
+
if (psize) *psize = size;
|
2073
|
+
return SWIG_OK;
|
2074
|
+
} else {
|
2075
|
+
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
2076
|
+
if (pchar_descriptor) {
|
2077
|
+
void* vptr = 0;
|
2078
|
+
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
2079
|
+
if (cptr) *cptr = (char *)vptr;
|
2080
|
+
if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
|
2081
|
+
if (alloc) *alloc = SWIG_OLDOBJ;
|
2082
|
+
return SWIG_OK;
|
2083
|
+
}
|
2084
|
+
}
|
2085
|
+
}
|
2086
|
+
return SWIG_TypeError;
|
2087
|
+
}
|
2088
|
+
|
2089
|
+
|
2090
|
+
|
2091
|
+
|
2092
|
+
|
2042
2093
|
#include <limits.h>
|
2043
2094
|
#if !defined(SWIG_NO_LLONG_MAX)
|
2044
2095
|
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
@@ -2118,60 +2169,13 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
2118
2169
|
}
|
2119
2170
|
|
2120
2171
|
|
2121
|
-
|
2122
|
-
|
2123
|
-
{
|
2124
|
-
static int init = 0;
|
2125
|
-
static swig_type_info* info = 0;
|
2126
|
-
if (!init) {
|
2127
|
-
info = SWIG_TypeQuery("_p_char");
|
2128
|
-
init = 1;
|
2129
|
-
}
|
2130
|
-
return info;
|
2131
|
-
}
|
2132
|
-
|
2133
|
-
|
2134
|
-
SWIGINTERN int
|
2135
|
-
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
2172
|
+
SWIGINTERNINLINE VALUE
|
2173
|
+
SWIG_From_bool (bool value)
|
2136
2174
|
{
|
2137
|
-
|
2138
|
-
#if defined(StringValuePtr)
|
2139
|
-
char *cstr = StringValuePtr(obj);
|
2140
|
-
#else
|
2141
|
-
char *cstr = STR2CSTR(obj);
|
2142
|
-
#endif
|
2143
|
-
size_t size = RSTRING_LEN(obj) + 1;
|
2144
|
-
if (cptr) {
|
2145
|
-
if (alloc) {
|
2146
|
-
if (*alloc == SWIG_NEWOBJ) {
|
2147
|
-
*cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
|
2148
|
-
} else {
|
2149
|
-
*cptr = cstr;
|
2150
|
-
*alloc = SWIG_OLDOBJ;
|
2151
|
-
}
|
2152
|
-
}
|
2153
|
-
}
|
2154
|
-
if (psize) *psize = size;
|
2155
|
-
return SWIG_OK;
|
2156
|
-
} else {
|
2157
|
-
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
2158
|
-
if (pchar_descriptor) {
|
2159
|
-
void* vptr = 0;
|
2160
|
-
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
2161
|
-
if (cptr) *cptr = (char *)vptr;
|
2162
|
-
if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
|
2163
|
-
if (alloc) *alloc = SWIG_OLDOBJ;
|
2164
|
-
return SWIG_OK;
|
2165
|
-
}
|
2166
|
-
}
|
2167
|
-
}
|
2168
|
-
return SWIG_TypeError;
|
2175
|
+
return value ? Qtrue : Qfalse;
|
2169
2176
|
}
|
2170
2177
|
|
2171
2178
|
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
2179
|
/*@SWIG:/usr/local/share/swig/2.0.9/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2176
2180
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2177
2181
|
{
|
@@ -2217,13 +2221,6 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
2217
2221
|
}
|
2218
2222
|
|
2219
2223
|
|
2220
|
-
SWIGINTERNINLINE VALUE
|
2221
|
-
SWIG_From_bool (bool value)
|
2222
|
-
{
|
2223
|
-
return value ? Qtrue : Qfalse;
|
2224
|
-
}
|
2225
|
-
|
2226
|
-
|
2227
2224
|
SWIGINTERN int
|
2228
2225
|
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2229
2226
|
{
|
@@ -2361,6 +2358,446 @@ SWIG_AsVal_float (VALUE obj, float *val)
|
|
2361
2358
|
return res;
|
2362
2359
|
}
|
2363
2360
|
|
2361
|
+
static swig_class SwigClassHeader;
|
2362
|
+
|
2363
|
+
SWIGINTERN VALUE
|
2364
|
+
_wrap_new_Header__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2365
|
+
TagLib::ID3v2::Header *result = 0 ;
|
2366
|
+
|
2367
|
+
if ((argc < 0) || (argc > 0)) {
|
2368
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2369
|
+
}
|
2370
|
+
result = (TagLib::ID3v2::Header *)new TagLib::ID3v2::Header();
|
2371
|
+
DATA_PTR(self) = result;
|
2372
|
+
SWIG_RubyAddTracking(result, self);
|
2373
|
+
return self;
|
2374
|
+
fail:
|
2375
|
+
return Qnil;
|
2376
|
+
}
|
2377
|
+
|
2378
|
+
|
2379
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
2380
|
+
SWIGINTERN VALUE
|
2381
|
+
_wrap_Header_allocate(VALUE self) {
|
2382
|
+
#else
|
2383
|
+
SWIGINTERN VALUE
|
2384
|
+
_wrap_Header_allocate(int argc, VALUE *argv, VALUE self) {
|
2385
|
+
#endif
|
2386
|
+
|
2387
|
+
|
2388
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_TagLib__ID3v2__Header);
|
2389
|
+
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
2390
|
+
rb_obj_call_init(vresult, argc, argv);
|
2391
|
+
#endif
|
2392
|
+
return vresult;
|
2393
|
+
}
|
2394
|
+
|
2395
|
+
|
2396
|
+
SWIGINTERN VALUE
|
2397
|
+
_wrap_new_Header__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2398
|
+
TagLib::ByteVector *arg1 = 0 ;
|
2399
|
+
TagLib::ByteVector tmp1 ;
|
2400
|
+
TagLib::ID3v2::Header *result = 0 ;
|
2401
|
+
|
2402
|
+
if ((argc < 1) || (argc > 1)) {
|
2403
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2404
|
+
}
|
2405
|
+
{
|
2406
|
+
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2407
|
+
arg1 = &tmp1;
|
2408
|
+
}
|
2409
|
+
result = (TagLib::ID3v2::Header *)new TagLib::ID3v2::Header((TagLib::ByteVector const &)*arg1);
|
2410
|
+
DATA_PTR(self) = result;
|
2411
|
+
SWIG_RubyAddTracking(result, self);
|
2412
|
+
return self;
|
2413
|
+
fail:
|
2414
|
+
return Qnil;
|
2415
|
+
}
|
2416
|
+
|
2417
|
+
|
2418
|
+
SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
|
2419
|
+
int argc;
|
2420
|
+
VALUE argv[1];
|
2421
|
+
int ii;
|
2422
|
+
|
2423
|
+
argc = nargs;
|
2424
|
+
if (argc > 1) SWIG_fail;
|
2425
|
+
for (ii = 0; (ii < argc); ++ii) {
|
2426
|
+
argv[ii] = args[ii];
|
2427
|
+
}
|
2428
|
+
if (argc == 0) {
|
2429
|
+
return _wrap_new_Header__SWIG_0(nargs, args, self);
|
2430
|
+
}
|
2431
|
+
if (argc == 1) {
|
2432
|
+
int _v;
|
2433
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2434
|
+
_v = SWIG_CheckState(res);
|
2435
|
+
if (_v) {
|
2436
|
+
return _wrap_new_Header__SWIG_1(nargs, args, self);
|
2437
|
+
}
|
2438
|
+
}
|
2439
|
+
|
2440
|
+
fail:
|
2441
|
+
Ruby_Format_OverloadedError( argc, 1, "Header.new",
|
2442
|
+
" Header.new()\n"
|
2443
|
+
" Header.new(TagLib::ByteVector const &data)\n");
|
2444
|
+
|
2445
|
+
return Qnil;
|
2446
|
+
}
|
2447
|
+
|
2448
|
+
|
2449
|
+
SWIGINTERN void
|
2450
|
+
free_TagLib_ID3v2_Header(TagLib::ID3v2::Header *arg1) {
|
2451
|
+
SWIG_RubyRemoveTracking(arg1);
|
2452
|
+
delete arg1;
|
2453
|
+
}
|
2454
|
+
|
2455
|
+
SWIGINTERN VALUE
|
2456
|
+
_wrap_Header_major_version(int argc, VALUE *argv, VALUE self) {
|
2457
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2458
|
+
void *argp1 = 0 ;
|
2459
|
+
int res1 = 0 ;
|
2460
|
+
TagLib::uint result;
|
2461
|
+
VALUE vresult = Qnil;
|
2462
|
+
|
2463
|
+
if ((argc < 0) || (argc > 0)) {
|
2464
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2465
|
+
}
|
2466
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2467
|
+
if (!SWIG_IsOK(res1)) {
|
2468
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","majorVersion", 1, self ));
|
2469
|
+
}
|
2470
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2471
|
+
result = (TagLib::uint)((TagLib::ID3v2::Header const *)arg1)->majorVersion();
|
2472
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
2473
|
+
return vresult;
|
2474
|
+
fail:
|
2475
|
+
return Qnil;
|
2476
|
+
}
|
2477
|
+
|
2478
|
+
|
2479
|
+
SWIGINTERN VALUE
|
2480
|
+
_wrap_Header_major_versione___(int argc, VALUE *argv, VALUE self) {
|
2481
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2482
|
+
TagLib::uint arg2 ;
|
2483
|
+
void *argp1 = 0 ;
|
2484
|
+
int res1 = 0 ;
|
2485
|
+
unsigned int val2 ;
|
2486
|
+
int ecode2 = 0 ;
|
2487
|
+
|
2488
|
+
if ((argc < 1) || (argc > 1)) {
|
2489
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2490
|
+
}
|
2491
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2492
|
+
if (!SWIG_IsOK(res1)) {
|
2493
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header *","setMajorVersion", 1, self ));
|
2494
|
+
}
|
2495
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2496
|
+
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
2497
|
+
if (!SWIG_IsOK(ecode2)) {
|
2498
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::uint","setMajorVersion", 2, argv[0] ));
|
2499
|
+
}
|
2500
|
+
arg2 = static_cast< TagLib::uint >(val2);
|
2501
|
+
(arg1)->setMajorVersion(arg2);
|
2502
|
+
return Qnil;
|
2503
|
+
fail:
|
2504
|
+
return Qnil;
|
2505
|
+
}
|
2506
|
+
|
2507
|
+
|
2508
|
+
SWIGINTERN VALUE
|
2509
|
+
_wrap_Header_revision_number(int argc, VALUE *argv, VALUE self) {
|
2510
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2511
|
+
void *argp1 = 0 ;
|
2512
|
+
int res1 = 0 ;
|
2513
|
+
TagLib::uint result;
|
2514
|
+
VALUE vresult = Qnil;
|
2515
|
+
|
2516
|
+
if ((argc < 0) || (argc > 0)) {
|
2517
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2518
|
+
}
|
2519
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2520
|
+
if (!SWIG_IsOK(res1)) {
|
2521
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","revisionNumber", 1, self ));
|
2522
|
+
}
|
2523
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2524
|
+
result = (TagLib::uint)((TagLib::ID3v2::Header const *)arg1)->revisionNumber();
|
2525
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
2526
|
+
return vresult;
|
2527
|
+
fail:
|
2528
|
+
return Qnil;
|
2529
|
+
}
|
2530
|
+
|
2531
|
+
|
2532
|
+
SWIGINTERN VALUE
|
2533
|
+
_wrap_Header_unsynchronisation(int argc, VALUE *argv, VALUE self) {
|
2534
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2535
|
+
void *argp1 = 0 ;
|
2536
|
+
int res1 = 0 ;
|
2537
|
+
bool result;
|
2538
|
+
VALUE vresult = Qnil;
|
2539
|
+
|
2540
|
+
if ((argc < 0) || (argc > 0)) {
|
2541
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2542
|
+
}
|
2543
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2544
|
+
if (!SWIG_IsOK(res1)) {
|
2545
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","unsynchronisation", 1, self ));
|
2546
|
+
}
|
2547
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2548
|
+
result = (bool)((TagLib::ID3v2::Header const *)arg1)->unsynchronisation();
|
2549
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
2550
|
+
return vresult;
|
2551
|
+
fail:
|
2552
|
+
return Qnil;
|
2553
|
+
}
|
2554
|
+
|
2555
|
+
|
2556
|
+
SWIGINTERN VALUE
|
2557
|
+
_wrap_Header_extended_header(int argc, VALUE *argv, VALUE self) {
|
2558
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2559
|
+
void *argp1 = 0 ;
|
2560
|
+
int res1 = 0 ;
|
2561
|
+
bool result;
|
2562
|
+
VALUE vresult = Qnil;
|
2563
|
+
|
2564
|
+
if ((argc < 0) || (argc > 0)) {
|
2565
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2566
|
+
}
|
2567
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2568
|
+
if (!SWIG_IsOK(res1)) {
|
2569
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","extendedHeader", 1, self ));
|
2570
|
+
}
|
2571
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2572
|
+
result = (bool)((TagLib::ID3v2::Header const *)arg1)->extendedHeader();
|
2573
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
2574
|
+
return vresult;
|
2575
|
+
fail:
|
2576
|
+
return Qnil;
|
2577
|
+
}
|
2578
|
+
|
2579
|
+
|
2580
|
+
SWIGINTERN VALUE
|
2581
|
+
_wrap_Header_experimental_indicator(int argc, VALUE *argv, VALUE self) {
|
2582
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2583
|
+
void *argp1 = 0 ;
|
2584
|
+
int res1 = 0 ;
|
2585
|
+
bool result;
|
2586
|
+
VALUE vresult = Qnil;
|
2587
|
+
|
2588
|
+
if ((argc < 0) || (argc > 0)) {
|
2589
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2590
|
+
}
|
2591
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2592
|
+
if (!SWIG_IsOK(res1)) {
|
2593
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","experimentalIndicator", 1, self ));
|
2594
|
+
}
|
2595
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2596
|
+
result = (bool)((TagLib::ID3v2::Header const *)arg1)->experimentalIndicator();
|
2597
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
2598
|
+
return vresult;
|
2599
|
+
fail:
|
2600
|
+
return Qnil;
|
2601
|
+
}
|
2602
|
+
|
2603
|
+
|
2604
|
+
SWIGINTERN VALUE
|
2605
|
+
_wrap_Header_footer_present(int argc, VALUE *argv, VALUE self) {
|
2606
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2607
|
+
void *argp1 = 0 ;
|
2608
|
+
int res1 = 0 ;
|
2609
|
+
bool result;
|
2610
|
+
VALUE vresult = Qnil;
|
2611
|
+
|
2612
|
+
if ((argc < 0) || (argc > 0)) {
|
2613
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2614
|
+
}
|
2615
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2616
|
+
if (!SWIG_IsOK(res1)) {
|
2617
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","footerPresent", 1, self ));
|
2618
|
+
}
|
2619
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2620
|
+
result = (bool)((TagLib::ID3v2::Header const *)arg1)->footerPresent();
|
2621
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
2622
|
+
return vresult;
|
2623
|
+
fail:
|
2624
|
+
return Qnil;
|
2625
|
+
}
|
2626
|
+
|
2627
|
+
|
2628
|
+
SWIGINTERN VALUE
|
2629
|
+
_wrap_Header_tag_size(int argc, VALUE *argv, VALUE self) {
|
2630
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2631
|
+
void *argp1 = 0 ;
|
2632
|
+
int res1 = 0 ;
|
2633
|
+
TagLib::uint result;
|
2634
|
+
VALUE vresult = Qnil;
|
2635
|
+
|
2636
|
+
if ((argc < 0) || (argc > 0)) {
|
2637
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2638
|
+
}
|
2639
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2640
|
+
if (!SWIG_IsOK(res1)) {
|
2641
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","tagSize", 1, self ));
|
2642
|
+
}
|
2643
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2644
|
+
result = (TagLib::uint)((TagLib::ID3v2::Header const *)arg1)->tagSize();
|
2645
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
2646
|
+
return vresult;
|
2647
|
+
fail:
|
2648
|
+
return Qnil;
|
2649
|
+
}
|
2650
|
+
|
2651
|
+
|
2652
|
+
SWIGINTERN VALUE
|
2653
|
+
_wrap_Header_complete_tag_size(int argc, VALUE *argv, VALUE self) {
|
2654
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2655
|
+
void *argp1 = 0 ;
|
2656
|
+
int res1 = 0 ;
|
2657
|
+
TagLib::uint result;
|
2658
|
+
VALUE vresult = Qnil;
|
2659
|
+
|
2660
|
+
if ((argc < 0) || (argc > 0)) {
|
2661
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2662
|
+
}
|
2663
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2664
|
+
if (!SWIG_IsOK(res1)) {
|
2665
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","completeTagSize", 1, self ));
|
2666
|
+
}
|
2667
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2668
|
+
result = (TagLib::uint)((TagLib::ID3v2::Header const *)arg1)->completeTagSize();
|
2669
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
2670
|
+
return vresult;
|
2671
|
+
fail:
|
2672
|
+
return Qnil;
|
2673
|
+
}
|
2674
|
+
|
2675
|
+
|
2676
|
+
SWIGINTERN VALUE
|
2677
|
+
_wrap_Header_tag_sizee___(int argc, VALUE *argv, VALUE self) {
|
2678
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2679
|
+
TagLib::uint arg2 ;
|
2680
|
+
void *argp1 = 0 ;
|
2681
|
+
int res1 = 0 ;
|
2682
|
+
unsigned int val2 ;
|
2683
|
+
int ecode2 = 0 ;
|
2684
|
+
|
2685
|
+
if ((argc < 1) || (argc > 1)) {
|
2686
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2687
|
+
}
|
2688
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2689
|
+
if (!SWIG_IsOK(res1)) {
|
2690
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header *","setTagSize", 1, self ));
|
2691
|
+
}
|
2692
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2693
|
+
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
2694
|
+
if (!SWIG_IsOK(ecode2)) {
|
2695
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::uint","setTagSize", 2, argv[0] ));
|
2696
|
+
}
|
2697
|
+
arg2 = static_cast< TagLib::uint >(val2);
|
2698
|
+
(arg1)->setTagSize(arg2);
|
2699
|
+
return Qnil;
|
2700
|
+
fail:
|
2701
|
+
return Qnil;
|
2702
|
+
}
|
2703
|
+
|
2704
|
+
|
2705
|
+
|
2706
|
+
/*
|
2707
|
+
Document-method: TagLib::ID3v2::Header.size
|
2708
|
+
|
2709
|
+
call-seq:
|
2710
|
+
size -> TagLib::uint
|
2711
|
+
|
2712
|
+
Size or Length of the Header.
|
2713
|
+
*/
|
2714
|
+
SWIGINTERN VALUE
|
2715
|
+
_wrap_Header_size(int argc, VALUE *argv, VALUE self) {
|
2716
|
+
TagLib::uint result;
|
2717
|
+
VALUE vresult = Qnil;
|
2718
|
+
|
2719
|
+
if ((argc < 0) || (argc > 0)) {
|
2720
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2721
|
+
}
|
2722
|
+
result = (TagLib::uint)TagLib::ID3v2::Header::size();
|
2723
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
2724
|
+
return vresult;
|
2725
|
+
fail:
|
2726
|
+
return Qnil;
|
2727
|
+
}
|
2728
|
+
|
2729
|
+
|
2730
|
+
SWIGINTERN VALUE
|
2731
|
+
_wrap_Header_file_identifier(int argc, VALUE *argv, VALUE self) {
|
2732
|
+
TagLib::ByteVector result;
|
2733
|
+
VALUE vresult = Qnil;
|
2734
|
+
|
2735
|
+
if ((argc < 0) || (argc > 0)) {
|
2736
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2737
|
+
}
|
2738
|
+
result = TagLib::ID3v2::Header::fileIdentifier();
|
2739
|
+
{
|
2740
|
+
vresult = taglib_bytevector_to_ruby_string(result);
|
2741
|
+
}
|
2742
|
+
return vresult;
|
2743
|
+
fail:
|
2744
|
+
return Qnil;
|
2745
|
+
}
|
2746
|
+
|
2747
|
+
|
2748
|
+
SWIGINTERN VALUE
|
2749
|
+
_wrap_Header_datae___(int argc, VALUE *argv, VALUE self) {
|
2750
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2751
|
+
TagLib::ByteVector *arg2 = 0 ;
|
2752
|
+
void *argp1 = 0 ;
|
2753
|
+
int res1 = 0 ;
|
2754
|
+
TagLib::ByteVector tmp2 ;
|
2755
|
+
|
2756
|
+
if ((argc < 1) || (argc > 1)) {
|
2757
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2758
|
+
}
|
2759
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2760
|
+
if (!SWIG_IsOK(res1)) {
|
2761
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header *","setData", 1, self ));
|
2762
|
+
}
|
2763
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2764
|
+
{
|
2765
|
+
tmp2 = ruby_string_to_taglib_bytevector(argv[0]);
|
2766
|
+
arg2 = &tmp2;
|
2767
|
+
}
|
2768
|
+
(arg1)->setData((TagLib::ByteVector const &)*arg2);
|
2769
|
+
return Qnil;
|
2770
|
+
fail:
|
2771
|
+
return Qnil;
|
2772
|
+
}
|
2773
|
+
|
2774
|
+
|
2775
|
+
SWIGINTERN VALUE
|
2776
|
+
_wrap_Header_render(int argc, VALUE *argv, VALUE self) {
|
2777
|
+
TagLib::ID3v2::Header *arg1 = (TagLib::ID3v2::Header *) 0 ;
|
2778
|
+
void *argp1 = 0 ;
|
2779
|
+
int res1 = 0 ;
|
2780
|
+
TagLib::ByteVector result;
|
2781
|
+
VALUE vresult = Qnil;
|
2782
|
+
|
2783
|
+
if ((argc < 0) || (argc > 0)) {
|
2784
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2785
|
+
}
|
2786
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__ID3v2__Header, 0 | 0 );
|
2787
|
+
if (!SWIG_IsOK(res1)) {
|
2788
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ID3v2::Header const *","render", 1, self ));
|
2789
|
+
}
|
2790
|
+
arg1 = reinterpret_cast< TagLib::ID3v2::Header * >(argp1);
|
2791
|
+
result = ((TagLib::ID3v2::Header const *)arg1)->render();
|
2792
|
+
{
|
2793
|
+
vresult = taglib_bytevector_to_ruby_string(result);
|
2794
|
+
}
|
2795
|
+
return vresult;
|
2796
|
+
fail:
|
2797
|
+
return Qnil;
|
2798
|
+
}
|
2799
|
+
|
2800
|
+
|
2364
2801
|
static swig_class SwigClassFrame;
|
2365
2802
|
|
2366
2803
|
SWIGINTERN void
|
@@ -2669,17 +3106,17 @@ _wrap_new_Tag__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
2669
3106
|
}
|
2670
3107
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
2671
3108
|
if (!SWIG_IsOK(res1)) {
|
2672
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","
|
3109
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
|
2673
3110
|
}
|
2674
3111
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2675
3112
|
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2676
3113
|
if (!SWIG_IsOK(ecode2)) {
|
2677
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","
|
3114
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Tag", 2, argv[1] ));
|
2678
3115
|
}
|
2679
3116
|
arg2 = static_cast< long >(val2);
|
2680
3117
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
2681
3118
|
if (!SWIG_IsOK(res3)) {
|
2682
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","
|
3119
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","Tag", 3, argv[2] ));
|
2683
3120
|
}
|
2684
3121
|
arg3 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp3);
|
2685
3122
|
result = (TagLib::ID3v2::Tag *)new TagLib::ID3v2::Tag(arg1,arg2,(TagLib::ID3v2::FrameFactory const *)arg3);
|
@@ -2723,12 +3160,12 @@ _wrap_new_Tag__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
2723
3160
|
}
|
2724
3161
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__File, 0 | 0 );
|
2725
3162
|
if (!SWIG_IsOK(res1)) {
|
2726
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","
|
3163
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::File *","Tag", 1, argv[0] ));
|
2727
3164
|
}
|
2728
3165
|
arg1 = reinterpret_cast< TagLib::File * >(argp1);
|
2729
3166
|
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2730
3167
|
if (!SWIG_IsOK(ecode2)) {
|
2731
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","
|
3168
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Tag", 2, argv[1] ));
|
2732
3169
|
}
|
2733
3170
|
arg2 = static_cast< long >(val2);
|
2734
3171
|
result = (TagLib::ID3v2::Tag *)new TagLib::ID3v2::Tag(arg1,arg2);
|
@@ -5303,7 +5740,7 @@ _wrap_new_CommentsFrame__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
5303
5740
|
}
|
5304
5741
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5305
5742
|
if (!SWIG_IsOK(ecode1)) {
|
5306
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","
|
5743
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","CommentsFrame", 1, argv[0] ));
|
5307
5744
|
}
|
5308
5745
|
arg1 = static_cast< TagLib::String::Type >(val1);
|
5309
5746
|
result = (TagLib::ID3v2::CommentsFrame *)new TagLib::ID3v2::CommentsFrame(arg1);
|
@@ -6613,7 +7050,7 @@ _wrap_new_TextIdentificationFrame(int argc, VALUE *argv, VALUE self) {
|
|
6613
7050
|
}
|
6614
7051
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6615
7052
|
if (!SWIG_IsOK(ecode2)) {
|
6616
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::String::Type","
|
7053
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::String::Type","TextIdentificationFrame", 2, argv[1] ));
|
6617
7054
|
}
|
6618
7055
|
arg2 = static_cast< TagLib::String::Type >(val2);
|
6619
7056
|
result = (TagLib::ID3v2::TextIdentificationFrame *)new TagLib::ID3v2::TextIdentificationFrame((TagLib::ByteVector const &)*arg1,arg2);
|
@@ -6843,7 +7280,7 @@ _wrap_new_UserTextIdentificationFrame__SWIG_0(int argc, VALUE *argv, VALUE self)
|
|
6843
7280
|
}
|
6844
7281
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6845
7282
|
if (!SWIG_IsOK(ecode1)) {
|
6846
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","
|
7283
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","UserTextIdentificationFrame", 1, argv[0] ));
|
6847
7284
|
}
|
6848
7285
|
arg1 = static_cast< TagLib::String::Type >(val1);
|
6849
7286
|
result = (TagLib::ID3v2::UserTextIdentificationFrame *)new TagLib::ID3v2::UserTextIdentificationFrame(arg1);
|
@@ -7516,7 +7953,7 @@ _wrap_new_UnsynchronizedLyricsFrame__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
7516
7953
|
}
|
7517
7954
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
7518
7955
|
if (!SWIG_IsOK(ecode1)) {
|
7519
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","
|
7956
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","UnsynchronizedLyricsFrame", 1, argv[0] ));
|
7520
7957
|
}
|
7521
7958
|
arg1 = static_cast< TagLib::String::Type >(val1);
|
7522
7959
|
result = (TagLib::ID3v2::UnsynchronizedLyricsFrame *)new TagLib::ID3v2::UnsynchronizedLyricsFrame(arg1);
|
@@ -8036,7 +8473,7 @@ _wrap_new_UserUrlLinkFrame__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
8036
8473
|
}
|
8037
8474
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
8038
8475
|
if (!SWIG_IsOK(ecode1)) {
|
8039
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","
|
8476
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "TagLib::String::Type","UserUrlLinkFrame", 1, argv[0] ));
|
8040
8477
|
}
|
8041
8478
|
arg1 = static_cast< TagLib::String::Type >(val1);
|
8042
8479
|
result = (TagLib::ID3v2::UserUrlLinkFrame *)new TagLib::ID3v2::UserUrlLinkFrame(arg1);
|
@@ -8735,6 +9172,28 @@ SWIGEXPORT void Init_taglib_id3v2(void) {
|
|
8735
9172
|
SWIG_RubyInitializeTrackings();
|
8736
9173
|
rb_require("taglib_base");
|
8737
9174
|
|
9175
|
+
SwigClassHeader.klass = rb_define_class_under(mID3v2, "Header", rb_cObject);
|
9176
|
+
SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__Header, (void *) &SwigClassHeader);
|
9177
|
+
rb_define_alloc_func(SwigClassHeader.klass, _wrap_Header_allocate);
|
9178
|
+
rb_define_method(SwigClassHeader.klass, "initialize", VALUEFUNC(_wrap_new_Header), -1);
|
9179
|
+
rb_define_method(SwigClassHeader.klass, "major_version", VALUEFUNC(_wrap_Header_major_version), -1);
|
9180
|
+
rb_define_method(SwigClassHeader.klass, "major_version=", VALUEFUNC(_wrap_Header_major_versione___), -1);
|
9181
|
+
rb_define_method(SwigClassHeader.klass, "revision_number", VALUEFUNC(_wrap_Header_revision_number), -1);
|
9182
|
+
rb_define_method(SwigClassHeader.klass, "unsynchronisation", VALUEFUNC(_wrap_Header_unsynchronisation), -1);
|
9183
|
+
rb_define_method(SwigClassHeader.klass, "extended_header", VALUEFUNC(_wrap_Header_extended_header), -1);
|
9184
|
+
rb_define_method(SwigClassHeader.klass, "experimental_indicator", VALUEFUNC(_wrap_Header_experimental_indicator), -1);
|
9185
|
+
rb_define_method(SwigClassHeader.klass, "footer_present", VALUEFUNC(_wrap_Header_footer_present), -1);
|
9186
|
+
rb_define_method(SwigClassHeader.klass, "tag_size", VALUEFUNC(_wrap_Header_tag_size), -1);
|
9187
|
+
rb_define_method(SwigClassHeader.klass, "complete_tag_size", VALUEFUNC(_wrap_Header_complete_tag_size), -1);
|
9188
|
+
rb_define_method(SwigClassHeader.klass, "tag_size=", VALUEFUNC(_wrap_Header_tag_sizee___), -1);
|
9189
|
+
rb_define_singleton_method(SwigClassHeader.klass, "size", VALUEFUNC(_wrap_Header_size), -1);
|
9190
|
+
rb_define_singleton_method(SwigClassHeader.klass, "file_identifier", VALUEFUNC(_wrap_Header_file_identifier), -1);
|
9191
|
+
rb_define_method(SwigClassHeader.klass, "data=", VALUEFUNC(_wrap_Header_datae___), -1);
|
9192
|
+
rb_define_method(SwigClassHeader.klass, "render", VALUEFUNC(_wrap_Header_render), -1);
|
9193
|
+
SwigClassHeader.mark = 0;
|
9194
|
+
SwigClassHeader.destroy = (void (*)(void *)) free_TagLib_ID3v2_Header;
|
9195
|
+
SwigClassHeader.trackObjects = 1;
|
9196
|
+
|
8738
9197
|
SwigClassFrame.klass = rb_define_class_under(mID3v2, "Frame", rb_cObject);
|
8739
9198
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__ID3v2__Frame, (void *) &SwigClassFrame);
|
8740
9199
|
rb_undef_alloc_func(SwigClassFrame.klass);
|