taglib-ruby 1.1.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +15 -11
- data/docs/taglib/mpeg.rb +1 -9
- data/ext/extconf_common.rb +21 -12
- data/ext/taglib_aiff/taglib_aiff.i +4 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +222 -59
- data/ext/taglib_base/includes.i +14 -14
- data/ext/taglib_base/taglib_base.i +21 -0
- data/ext/taglib_base/taglib_base_wrap.cxx +289 -350
- data/ext/taglib_flac/taglib_flac.i +7 -3
- data/ext/taglib_flac/taglib_flac_wrap.cxx +233 -336
- data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +125 -71
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +92 -51
- data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +524 -414
- data/ext/taglib_mp4/taglib_mp4.i +21 -18
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2062 -1467
- data/ext/taglib_mpeg/taglib_mpeg.i +5 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +414 -300
- data/ext/taglib_ogg/taglib_ogg.i +0 -2
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +44 -42
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +27 -48
- data/ext/taglib_wav/taglib_wav.i +5 -2
- data/ext/taglib_wav/taglib_wav_wrap.cxx +179 -89
- data/lib/taglib/version.rb +3 -3
- data/tasks/ext.rake +23 -39
- data/tasks/swig.rake +14 -4
- data/test/id3v2_write_test.rb +1 -1
- data/test/wav_examples_test.rb +1 -1
- data/test/wav_file_test.rb +1 -1
- data/test/wav_file_write_test.rb +6 -6
- metadata +3 -3
@@ -1854,18 +1854,18 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1854
1854
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
1855
1855
|
|
1856
1856
|
#define SWIGTYPE_p_TagLib__AudioProperties swig_types[0]
|
1857
|
-
#define
|
1858
|
-
#define
|
1859
|
-
#define
|
1860
|
-
#define
|
1861
|
-
#define
|
1862
|
-
#define
|
1863
|
-
#define
|
1864
|
-
#define
|
1865
|
-
#define
|
1866
|
-
#define
|
1867
|
-
#define
|
1868
|
-
#define
|
1857
|
+
#define SWIGTYPE_p_TagLib__FLAC__File swig_types[1]
|
1858
|
+
#define SWIGTYPE_p_TagLib__FLAC__Picture swig_types[2]
|
1859
|
+
#define SWIGTYPE_p_TagLib__FLAC__Properties swig_types[3]
|
1860
|
+
#define SWIGTYPE_p_TagLib__File swig_types[4]
|
1861
|
+
#define SWIGTYPE_p_TagLib__ID3v1__Tag swig_types[5]
|
1862
|
+
#define SWIGTYPE_p_TagLib__ID3v2__FrameFactory swig_types[6]
|
1863
|
+
#define SWIGTYPE_p_TagLib__ID3v2__Tag swig_types[7]
|
1864
|
+
#define SWIGTYPE_p_TagLib__ListT_TagLib__FLAC__Picture_t swig_types[8]
|
1865
|
+
#define SWIGTYPE_p_TagLib__Ogg__XiphComment swig_types[9]
|
1866
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[10]
|
1867
|
+
#define SWIGTYPE_p_char swig_types[11]
|
1868
|
+
#define SWIGTYPE_p_long_long swig_types[12]
|
1869
1869
|
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1870
1870
|
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1871
1871
|
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
@@ -1966,34 +1966,26 @@ template <typename T> T SwigValueInit() {
|
|
1966
1966
|
#endif
|
1967
1967
|
|
1968
1968
|
VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
1969
|
-
|
1970
|
-
return Qnil;
|
1971
|
-
} else {
|
1972
|
-
return rb_str_new(byteVector.data(), byteVector.size());
|
1973
|
-
}
|
1969
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1974
1970
|
}
|
1975
1971
|
|
1976
1972
|
TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
1977
1973
|
if (NIL_P(s)) {
|
1978
|
-
return TagLib::ByteVector
|
1974
|
+
return TagLib::ByteVector();
|
1979
1975
|
} else {
|
1980
1976
|
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1981
1977
|
}
|
1982
1978
|
}
|
1983
1979
|
|
1984
1980
|
VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
VALUE result = rb_str_new2(string.toCString(true));
|
1989
|
-
ASSOCIATE_UTF8_ENCODING(result);
|
1990
|
-
return result;
|
1991
|
-
}
|
1981
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1982
|
+
ASSOCIATE_UTF8_ENCODING(result);
|
1983
|
+
return result;
|
1992
1984
|
}
|
1993
1985
|
|
1994
1986
|
TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
1995
1987
|
if (NIL_P(s)) {
|
1996
|
-
return TagLib::String
|
1988
|
+
return TagLib::String();
|
1997
1989
|
} else {
|
1998
1990
|
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1999
1991
|
}
|
@@ -2082,6 +2074,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
|
|
2082
2074
|
#endif
|
2083
2075
|
}
|
2084
2076
|
|
2077
|
+
VALUE taglib_offset_t_to_ruby_int(TagLib::offset_t off) {
|
2078
|
+
#ifdef _WIN32
|
2079
|
+
return LL2NUM(off);
|
2080
|
+
#else
|
2081
|
+
return OFFT2NUM(off);
|
2082
|
+
#endif
|
2083
|
+
}
|
2085
2084
|
|
2086
2085
|
|
2087
2086
|
VALUE taglib_flac_picturelist_to_ruby_array(const TagLib::List<TagLib::FLAC::Picture *> & list) {
|
@@ -2102,7 +2101,54 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2102
2101
|
}
|
2103
2102
|
|
2104
2103
|
|
2105
|
-
|
2104
|
+
#include <limits.h>
|
2105
|
+
#if !defined(SWIG_NO_LLONG_MAX)
|
2106
|
+
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
2107
|
+
# define LLONG_MAX __LONG_LONG_MAX__
|
2108
|
+
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
2109
|
+
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
2110
|
+
# endif
|
2111
|
+
#endif
|
2112
|
+
|
2113
|
+
|
2114
|
+
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2115
|
+
# define SWIG_LONG_LONG_AVAILABLE
|
2116
|
+
#endif
|
2117
|
+
|
2118
|
+
|
2119
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2120
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2121
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE arg)
|
2122
|
+
{
|
2123
|
+
VALUE *args = (VALUE *)arg;
|
2124
|
+
VALUE obj = args[0];
|
2125
|
+
VALUE type = TYPE(obj);
|
2126
|
+
long long *res = (long long *)(args[1]);
|
2127
|
+
*res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
|
2128
|
+
return obj;
|
2129
|
+
}
|
2130
|
+
/*@SWIG@*/
|
2131
|
+
|
2132
|
+
SWIGINTERN int
|
2133
|
+
SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
|
2134
|
+
{
|
2135
|
+
VALUE type = TYPE(obj);
|
2136
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
2137
|
+
long long v;
|
2138
|
+
VALUE a[2];
|
2139
|
+
a[0] = obj;
|
2140
|
+
a[1] = (VALUE)(&v);
|
2141
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2142
|
+
if (val) *val = v;
|
2143
|
+
return SWIG_OK;
|
2144
|
+
}
|
2145
|
+
}
|
2146
|
+
return SWIG_TypeError;
|
2147
|
+
}
|
2148
|
+
#endif
|
2149
|
+
|
2150
|
+
|
2151
|
+
/*@SWIG:/swig/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2106
2152
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2107
2153
|
{
|
2108
2154
|
VALUE *args = (VALUE *)arg;
|
@@ -2132,16 +2178,6 @@ SWIG_AsVal_long (VALUE obj, long* val)
|
|
2132
2178
|
}
|
2133
2179
|
|
2134
2180
|
|
2135
|
-
#include <limits.h>
|
2136
|
-
#if !defined(SWIG_NO_LLONG_MAX)
|
2137
|
-
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
2138
|
-
# define LLONG_MAX __LONG_LONG_MAX__
|
2139
|
-
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
2140
|
-
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
2141
|
-
# endif
|
2142
|
-
#endif
|
2143
|
-
|
2144
|
-
|
2145
2181
|
SWIGINTERN int
|
2146
2182
|
SWIG_AsVal_int (VALUE obj, int *val)
|
2147
2183
|
{
|
@@ -2158,50 +2194,6 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
2158
2194
|
}
|
2159
2195
|
|
2160
2196
|
|
2161
|
-
#define SWIG_From_long LONG2NUM
|
2162
|
-
|
2163
|
-
|
2164
|
-
SWIGINTERNINLINE VALUE
|
2165
|
-
SWIG_From_int (int value)
|
2166
|
-
{
|
2167
|
-
return SWIG_From_long (value);
|
2168
|
-
}
|
2169
|
-
|
2170
|
-
|
2171
|
-
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2172
|
-
# define SWIG_LONG_LONG_AVAILABLE
|
2173
|
-
#endif
|
2174
|
-
|
2175
|
-
|
2176
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2177
|
-
SWIGINTERNINLINE VALUE
|
2178
|
-
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2179
|
-
{
|
2180
|
-
return ULL2NUM(value);
|
2181
|
-
}
|
2182
|
-
#endif
|
2183
|
-
|
2184
|
-
|
2185
|
-
SWIGINTERN int
|
2186
|
-
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2187
|
-
{
|
2188
|
-
if (obj == Qtrue) {
|
2189
|
-
if (val) *val = true;
|
2190
|
-
return SWIG_OK;
|
2191
|
-
} else if (obj == Qfalse) {
|
2192
|
-
if (val) *val = false;
|
2193
|
-
return SWIG_OK;
|
2194
|
-
} else {
|
2195
|
-
int res = 0;
|
2196
|
-
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
2197
|
-
if (val) *val = res ? true : false;
|
2198
|
-
return SWIG_OK;
|
2199
|
-
}
|
2200
|
-
}
|
2201
|
-
return SWIG_TypeError;
|
2202
|
-
}
|
2203
|
-
|
2204
|
-
|
2205
2197
|
SWIGINTERN swig_type_info*
|
2206
2198
|
SWIG_pchar_descriptor(void)
|
2207
2199
|
{
|
@@ -2252,6 +2244,45 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2252
2244
|
|
2253
2245
|
|
2254
2246
|
|
2247
|
+
#define SWIG_From_long LONG2NUM
|
2248
|
+
|
2249
|
+
|
2250
|
+
SWIGINTERNINLINE VALUE
|
2251
|
+
SWIG_From_int (int value)
|
2252
|
+
{
|
2253
|
+
return SWIG_From_long (value);
|
2254
|
+
}
|
2255
|
+
|
2256
|
+
|
2257
|
+
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2258
|
+
SWIGINTERNINLINE VALUE
|
2259
|
+
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2260
|
+
{
|
2261
|
+
return ULL2NUM(value);
|
2262
|
+
}
|
2263
|
+
#endif
|
2264
|
+
|
2265
|
+
|
2266
|
+
SWIGINTERN int
|
2267
|
+
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2268
|
+
{
|
2269
|
+
if (obj == Qtrue) {
|
2270
|
+
if (val) *val = true;
|
2271
|
+
return SWIG_OK;
|
2272
|
+
} else if (obj == Qfalse) {
|
2273
|
+
if (val) *val = false;
|
2274
|
+
return SWIG_OK;
|
2275
|
+
} else {
|
2276
|
+
int res = 0;
|
2277
|
+
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
2278
|
+
if (val) *val = res ? true : false;
|
2279
|
+
return SWIG_OK;
|
2280
|
+
}
|
2281
|
+
}
|
2282
|
+
return SWIG_TypeError;
|
2283
|
+
}
|
2284
|
+
|
2285
|
+
|
2255
2286
|
SWIGINTERNINLINE VALUE
|
2256
2287
|
SWIG_From_bool (bool value)
|
2257
2288
|
{
|
@@ -2319,12 +2350,11 @@ static swig_class SwigClassProperties;
|
|
2319
2350
|
|
2320
2351
|
SWIGINTERN VALUE
|
2321
2352
|
_wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2322
|
-
TagLib::ByteVector arg1 ;
|
2323
|
-
|
2353
|
+
TagLib::ByteVector *arg1 = 0 ;
|
2354
|
+
TagLib::offset_t arg2 ;
|
2324
2355
|
TagLib::AudioProperties::ReadStyle arg3 ;
|
2325
|
-
|
2326
|
-
|
2327
|
-
long val2 ;
|
2356
|
+
TagLib::ByteVector tmp1 ;
|
2357
|
+
long long val2 ;
|
2328
2358
|
int ecode2 = 0 ;
|
2329
2359
|
int val3 ;
|
2330
2360
|
int ecode3 = 0 ;
|
@@ -2334,97 +2364,20 @@ _wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2334
2364
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
2335
2365
|
}
|
2336
2366
|
{
|
2337
|
-
|
2338
|
-
|
2339
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2340
|
-
}
|
2341
|
-
if (!argp1) {
|
2342
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2343
|
-
} else {
|
2344
|
-
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2345
|
-
}
|
2367
|
+
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2368
|
+
arg1 = &tmp1;
|
2346
2369
|
}
|
2347
|
-
ecode2 =
|
2370
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
2348
2371
|
if (!SWIG_IsOK(ecode2)) {
|
2349
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
2372
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Properties", 2, argv[1] ));
|
2350
2373
|
}
|
2351
|
-
arg2 = static_cast<
|
2374
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
2352
2375
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
2353
2376
|
if (!SWIG_IsOK(ecode3)) {
|
2354
2377
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 3, argv[2] ));
|
2355
2378
|
}
|
2356
2379
|
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
2357
|
-
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2,arg3);
|
2358
|
-
DATA_PTR(self) = result;
|
2359
|
-
SWIG_RubyAddTracking(result, self);
|
2360
|
-
return self;
|
2361
|
-
fail:
|
2362
|
-
return Qnil;
|
2363
|
-
}
|
2364
|
-
|
2365
|
-
|
2366
|
-
SWIGINTERN VALUE
|
2367
|
-
_wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2368
|
-
TagLib::ByteVector arg1 ;
|
2369
|
-
long arg2 ;
|
2370
|
-
void *argp1 ;
|
2371
|
-
int res1 = 0 ;
|
2372
|
-
long val2 ;
|
2373
|
-
int ecode2 = 0 ;
|
2374
|
-
TagLib::FLAC::Properties *result = 0 ;
|
2375
|
-
|
2376
|
-
if ((argc < 2) || (argc > 2)) {
|
2377
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2378
|
-
}
|
2379
|
-
{
|
2380
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__ByteVector, 0 );
|
2381
|
-
if (!SWIG_IsOK(res1)) {
|
2382
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2383
|
-
}
|
2384
|
-
if (!argp1) {
|
2385
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2386
|
-
} else {
|
2387
|
-
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2388
|
-
}
|
2389
|
-
}
|
2390
|
-
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2391
|
-
if (!SWIG_IsOK(ecode2)) {
|
2392
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Properties", 2, argv[1] ));
|
2393
|
-
}
|
2394
|
-
arg2 = static_cast< long >(val2);
|
2395
|
-
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2);
|
2396
|
-
DATA_PTR(self) = result;
|
2397
|
-
SWIG_RubyAddTracking(result, self);
|
2398
|
-
return self;
|
2399
|
-
fail:
|
2400
|
-
return Qnil;
|
2401
|
-
}
|
2402
|
-
|
2403
|
-
|
2404
|
-
SWIGINTERN VALUE
|
2405
|
-
_wrap_new_Properties__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
2406
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
2407
|
-
TagLib::AudioProperties::ReadStyle arg2 ;
|
2408
|
-
void *argp1 = 0 ;
|
2409
|
-
int res1 = 0 ;
|
2410
|
-
int val2 ;
|
2411
|
-
int ecode2 = 0 ;
|
2412
|
-
TagLib::FLAC::Properties *result = 0 ;
|
2413
|
-
|
2414
|
-
if ((argc < 2) || (argc > 2)) {
|
2415
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2416
|
-
}
|
2417
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
2418
|
-
if (!SWIG_IsOK(res1)) {
|
2419
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","Properties", 1, argv[0] ));
|
2420
|
-
}
|
2421
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
2422
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2423
|
-
if (!SWIG_IsOK(ecode2)) {
|
2424
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 2, argv[1] ));
|
2425
|
-
}
|
2426
|
-
arg2 = static_cast< TagLib::AudioProperties::ReadStyle >(val2);
|
2427
|
-
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2);
|
2380
|
+
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties((TagLib::ByteVector const &)*arg1,arg2,arg3);
|
2428
2381
|
DATA_PTR(self) = result;
|
2429
2382
|
SWIG_RubyAddTracking(result, self);
|
2430
2383
|
return self;
|
@@ -2449,21 +2402,27 @@ _wrap_Properties_allocate(int argc, VALUE *argv, VALUE self)
|
|
2449
2402
|
|
2450
2403
|
|
2451
2404
|
SWIGINTERN VALUE
|
2452
|
-
|
2453
|
-
TagLib::
|
2454
|
-
|
2455
|
-
|
2405
|
+
_wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2406
|
+
TagLib::ByteVector *arg1 = 0 ;
|
2407
|
+
TagLib::offset_t arg2 ;
|
2408
|
+
TagLib::ByteVector tmp1 ;
|
2409
|
+
long long val2 ;
|
2410
|
+
int ecode2 = 0 ;
|
2456
2411
|
TagLib::FLAC::Properties *result = 0 ;
|
2457
2412
|
|
2458
|
-
if ((argc <
|
2459
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
2413
|
+
if ((argc < 2) || (argc > 2)) {
|
2414
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2460
2415
|
}
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2416
|
+
{
|
2417
|
+
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2418
|
+
arg1 = &tmp1;
|
2464
2419
|
}
|
2465
|
-
|
2466
|
-
|
2420
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
2421
|
+
if (!SWIG_IsOK(ecode2)) {
|
2422
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::offset_t","Properties", 2, argv[1] ));
|
2423
|
+
}
|
2424
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
2425
|
+
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties((TagLib::ByteVector const &)*arg1,arg2);
|
2467
2426
|
DATA_PTR(self) = result;
|
2468
2427
|
SWIG_RubyAddTracking(result, self);
|
2469
2428
|
return self;
|
@@ -2482,38 +2441,13 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2482
2441
|
for (ii = 0; (ii < argc); ++ii) {
|
2483
2442
|
argv[ii] = args[ii];
|
2484
2443
|
}
|
2485
|
-
if (argc == 1) {
|
2486
|
-
int _v = 0;
|
2487
|
-
void *vptr = 0;
|
2488
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
2489
|
-
_v = SWIG_CheckState(res);
|
2490
|
-
if (_v) {
|
2491
|
-
return _wrap_new_Properties__SWIG_3(nargs, args, self);
|
2492
|
-
}
|
2493
|
-
}
|
2494
2444
|
if (argc == 2) {
|
2495
2445
|
int _v = 0;
|
2496
|
-
|
2497
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
2498
|
-
_v = SWIG_CheckState(res);
|
2499
|
-
if (_v) {
|
2500
|
-
{
|
2501
|
-
int res = SWIG_AsVal_int(argv[1], NULL);
|
2502
|
-
_v = SWIG_CheckState(res);
|
2503
|
-
}
|
2504
|
-
if (_v) {
|
2505
|
-
return _wrap_new_Properties__SWIG_2(nargs, args, self);
|
2506
|
-
}
|
2507
|
-
}
|
2508
|
-
}
|
2509
|
-
if (argc == 2) {
|
2510
|
-
int _v = 0;
|
2511
|
-
void *vptr = 0;
|
2512
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVector, SWIG_POINTER_NO_NULL);
|
2446
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2513
2447
|
_v = SWIG_CheckState(res);
|
2514
2448
|
if (_v) {
|
2515
2449
|
{
|
2516
|
-
int res =
|
2450
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2517
2451
|
_v = SWIG_CheckState(res);
|
2518
2452
|
}
|
2519
2453
|
if (_v) {
|
@@ -2523,12 +2457,11 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2523
2457
|
}
|
2524
2458
|
if (argc == 3) {
|
2525
2459
|
int _v = 0;
|
2526
|
-
|
2527
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVector, SWIG_POINTER_NO_NULL);
|
2460
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2528
2461
|
_v = SWIG_CheckState(res);
|
2529
2462
|
if (_v) {
|
2530
2463
|
{
|
2531
|
-
int res =
|
2464
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2532
2465
|
_v = SWIG_CheckState(res);
|
2533
2466
|
}
|
2534
2467
|
if (_v) {
|
@@ -2545,10 +2478,8 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2545
2478
|
|
2546
2479
|
fail:
|
2547
2480
|
Ruby_Format_OverloadedError( argc, 3, "Properties.new",
|
2548
|
-
" Properties.new(TagLib::ByteVector data,
|
2549
|
-
" Properties.new(TagLib::ByteVector data,
|
2550
|
-
" Properties.new(TagLib::FLAC::File *file, TagLib::AudioProperties::ReadStyle style)\n"
|
2551
|
-
" Properties.new(TagLib::FLAC::File *file)\n");
|
2481
|
+
" Properties.new(TagLib::ByteVector const &data, TagLib::offset_t streamLength, TagLib::AudioProperties::ReadStyle style)\n"
|
2482
|
+
" Properties.new(TagLib::ByteVector const &data, TagLib::offset_t streamLength)\n");
|
2552
2483
|
|
2553
2484
|
return Qnil;
|
2554
2485
|
}
|
@@ -2561,30 +2492,6 @@ free_TagLib_FLAC_Properties(void *self) {
|
|
2561
2492
|
delete arg1;
|
2562
2493
|
}
|
2563
2494
|
|
2564
|
-
SWIGINTERN VALUE
|
2565
|
-
_wrap_Properties_length_in_seconds(int argc, VALUE *argv, VALUE self) {
|
2566
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2567
|
-
void *argp1 = 0 ;
|
2568
|
-
int res1 = 0 ;
|
2569
|
-
int result;
|
2570
|
-
VALUE vresult = Qnil;
|
2571
|
-
|
2572
|
-
if ((argc < 0) || (argc > 0)) {
|
2573
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2574
|
-
}
|
2575
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2576
|
-
if (!SWIG_IsOK(res1)) {
|
2577
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","lengthInSeconds", 1, self ));
|
2578
|
-
}
|
2579
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2580
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->lengthInSeconds();
|
2581
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2582
|
-
return vresult;
|
2583
|
-
fail:
|
2584
|
-
return Qnil;
|
2585
|
-
}
|
2586
|
-
|
2587
|
-
|
2588
2495
|
SWIGINTERN VALUE
|
2589
2496
|
_wrap_Properties_length_in_milliseconds(int argc, VALUE *argv, VALUE self) {
|
2590
2497
|
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
@@ -2759,6 +2666,53 @@ static swig_class SwigClassFile;
|
|
2759
2666
|
|
2760
2667
|
SWIGINTERN VALUE
|
2761
2668
|
_wrap_new_File__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2669
|
+
TagLib::FileName arg1 ;
|
2670
|
+
bool arg2 ;
|
2671
|
+
TagLib::FLAC::Properties::ReadStyle arg3 ;
|
2672
|
+
TagLib::ID3v2::FrameFactory *arg4 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2673
|
+
bool val2 ;
|
2674
|
+
int ecode2 = 0 ;
|
2675
|
+
int val3 ;
|
2676
|
+
int ecode3 = 0 ;
|
2677
|
+
void *argp4 = 0 ;
|
2678
|
+
int res4 = 0 ;
|
2679
|
+
TagLib::FLAC::File *result = 0 ;
|
2680
|
+
|
2681
|
+
if ((argc < 4) || (argc > 4)) {
|
2682
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
2683
|
+
}
|
2684
|
+
{
|
2685
|
+
arg1 = ruby_string_to_taglib_filename(argv[0]);
|
2686
|
+
if ((const char *)(TagLib::FileName)(arg1) == NULL) {
|
2687
|
+
SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory for file name.");
|
2688
|
+
}
|
2689
|
+
}
|
2690
|
+
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
2691
|
+
if (!SWIG_IsOK(ecode2)) {
|
2692
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","File", 2, argv[1] ));
|
2693
|
+
}
|
2694
|
+
arg2 = static_cast< bool >(val2);
|
2695
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
2696
|
+
if (!SWIG_IsOK(ecode3)) {
|
2697
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties::ReadStyle","File", 3, argv[2] ));
|
2698
|
+
}
|
2699
|
+
arg3 = static_cast< TagLib::FLAC::Properties::ReadStyle >(val3);
|
2700
|
+
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
2701
|
+
if (!SWIG_IsOK(res4)) {
|
2702
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory *","File", 4, argv[3] ));
|
2703
|
+
}
|
2704
|
+
arg4 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp4);
|
2705
|
+
result = (TagLib::FLAC::File *)new TagLib::FLAC::File(arg1,arg2,arg3,arg4);
|
2706
|
+
DATA_PTR(self) = result;
|
2707
|
+
SWIG_RubyAddTracking(result, self);
|
2708
|
+
return self;
|
2709
|
+
fail:
|
2710
|
+
return Qnil;
|
2711
|
+
}
|
2712
|
+
|
2713
|
+
|
2714
|
+
SWIGINTERN VALUE
|
2715
|
+
_wrap_new_File__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2762
2716
|
TagLib::FileName arg1 ;
|
2763
2717
|
bool arg2 ;
|
2764
2718
|
TagLib::FLAC::Properties::ReadStyle arg3 ;
|
@@ -2797,7 +2751,7 @@ fail:
|
|
2797
2751
|
|
2798
2752
|
|
2799
2753
|
SWIGINTERN VALUE
|
2800
|
-
|
2754
|
+
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
2801
2755
|
TagLib::FileName arg1 ;
|
2802
2756
|
bool arg2 ;
|
2803
2757
|
bool val2 ;
|
@@ -2828,7 +2782,7 @@ fail:
|
|
2828
2782
|
|
2829
2783
|
|
2830
2784
|
SWIGINTERN VALUE
|
2831
|
-
|
2785
|
+
_wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
2832
2786
|
TagLib::FileName arg1 ;
|
2833
2787
|
TagLib::FLAC::File *result = 0 ;
|
2834
2788
|
|
@@ -2851,7 +2805,7 @@ fail:
|
|
2851
2805
|
|
2852
2806
|
|
2853
2807
|
SWIGINTERN VALUE
|
2854
|
-
|
2808
|
+
_wrap_new_File__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
2855
2809
|
TagLib::FileName arg1 ;
|
2856
2810
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2857
2811
|
bool arg3 ;
|
@@ -2898,7 +2852,7 @@ fail:
|
|
2898
2852
|
|
2899
2853
|
|
2900
2854
|
SWIGINTERN VALUE
|
2901
|
-
|
2855
|
+
_wrap_new_File__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
2902
2856
|
TagLib::FileName arg1 ;
|
2903
2857
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2904
2858
|
bool arg3 ;
|
@@ -2952,7 +2906,7 @@ _wrap_File_allocate(int argc, VALUE *argv, VALUE self)
|
|
2952
2906
|
|
2953
2907
|
|
2954
2908
|
SWIGINTERN VALUE
|
2955
|
-
|
2909
|
+
_wrap_new_File__SWIG_6(int argc, VALUE *argv, VALUE self) {
|
2956
2910
|
TagLib::FileName arg1 ;
|
2957
2911
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2958
2912
|
void *argp2 = 0 ;
|
@@ -2997,7 +2951,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
2997
2951
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2998
2952
|
_v = SWIG_CheckState(res);
|
2999
2953
|
if (_v) {
|
3000
|
-
return
|
2954
|
+
return _wrap_new_File__SWIG_3(nargs, args, self);
|
3001
2955
|
}
|
3002
2956
|
}
|
3003
2957
|
if (argc == 2) {
|
@@ -3009,7 +2963,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3009
2963
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
|
3010
2964
|
_v = SWIG_CheckState(res);
|
3011
2965
|
if (_v) {
|
3012
|
-
return
|
2966
|
+
return _wrap_new_File__SWIG_6(nargs, args, self);
|
3013
2967
|
}
|
3014
2968
|
}
|
3015
2969
|
}
|
@@ -3023,7 +2977,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3023
2977
|
_v = SWIG_CheckState(res);
|
3024
2978
|
}
|
3025
2979
|
if (_v) {
|
3026
|
-
return
|
2980
|
+
return _wrap_new_File__SWIG_2(nargs, args, self);
|
3027
2981
|
}
|
3028
2982
|
}
|
3029
2983
|
}
|
@@ -3041,7 +2995,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3041
2995
|
_v = SWIG_CheckState(res);
|
3042
2996
|
}
|
3043
2997
|
if (_v) {
|
3044
|
-
return
|
2998
|
+
return _wrap_new_File__SWIG_5(nargs, args, self);
|
3045
2999
|
}
|
3046
3000
|
}
|
3047
3001
|
}
|
@@ -3061,7 +3015,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3061
3015
|
_v = SWIG_CheckState(res);
|
3062
3016
|
}
|
3063
3017
|
if (_v) {
|
3064
|
-
return
|
3018
|
+
return _wrap_new_File__SWIG_1(nargs, args, self);
|
3065
3019
|
}
|
3066
3020
|
}
|
3067
3021
|
}
|
@@ -3085,7 +3039,32 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3085
3039
|
_v = SWIG_CheckState(res);
|
3086
3040
|
}
|
3087
3041
|
if (_v) {
|
3088
|
-
return
|
3042
|
+
return _wrap_new_File__SWIG_4(nargs, args, self);
|
3043
|
+
}
|
3044
|
+
}
|
3045
|
+
}
|
3046
|
+
}
|
3047
|
+
}
|
3048
|
+
if (argc == 4) {
|
3049
|
+
int _v = 0;
|
3050
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
3051
|
+
_v = SWIG_CheckState(res);
|
3052
|
+
if (_v) {
|
3053
|
+
{
|
3054
|
+
int res = SWIG_AsVal_bool(argv[1], NULL);
|
3055
|
+
_v = SWIG_CheckState(res);
|
3056
|
+
}
|
3057
|
+
if (_v) {
|
3058
|
+
{
|
3059
|
+
int res = SWIG_AsVal_int(argv[2], NULL);
|
3060
|
+
_v = SWIG_CheckState(res);
|
3061
|
+
}
|
3062
|
+
if (_v) {
|
3063
|
+
void *vptr = 0;
|
3064
|
+
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
|
3065
|
+
_v = SWIG_CheckState(res);
|
3066
|
+
if (_v) {
|
3067
|
+
return _wrap_new_File__SWIG_0(nargs, args, self);
|
3089
3068
|
}
|
3090
3069
|
}
|
3091
3070
|
}
|
@@ -3094,6 +3073,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3094
3073
|
|
3095
3074
|
fail:
|
3096
3075
|
Ruby_Format_OverloadedError( argc, 4, "File.new",
|
3076
|
+
" File.new(TagLib::FileName file, bool readProperties, TagLib::FLAC::Properties::ReadStyle propertiesStyle, TagLib::ID3v2::FrameFactory *frameFactory)\n"
|
3097
3077
|
" File.new(TagLib::FileName file, bool readProperties, TagLib::FLAC::Properties::ReadStyle propertiesStyle)\n"
|
3098
3078
|
" File.new(TagLib::FileName file, bool readProperties)\n"
|
3099
3079
|
" File.new(TagLib::FileName file)\n"
|
@@ -3480,85 +3460,6 @@ fail:
|
|
3480
3460
|
}
|
3481
3461
|
|
3482
3462
|
|
3483
|
-
SWIGINTERN VALUE
|
3484
|
-
_wrap_File_set_id3v2_frame_factory(int argc, VALUE *argv, VALUE self) {
|
3485
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3486
|
-
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3487
|
-
void *argp1 = 0 ;
|
3488
|
-
int res1 = 0 ;
|
3489
|
-
void *argp2 = 0 ;
|
3490
|
-
int res2 = 0 ;
|
3491
|
-
|
3492
|
-
if ((argc < 1) || (argc > 1)) {
|
3493
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3494
|
-
}
|
3495
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3496
|
-
if (!SWIG_IsOK(res1)) {
|
3497
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","setID3v2FrameFactory", 1, self ));
|
3498
|
-
}
|
3499
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3500
|
-
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3501
|
-
if (!SWIG_IsOK(res2)) {
|
3502
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","setID3v2FrameFactory", 2, argv[0] ));
|
3503
|
-
}
|
3504
|
-
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
3505
|
-
(arg1)->setID3v2FrameFactory((TagLib::ID3v2::FrameFactory const *)arg2);
|
3506
|
-
return Qnil;
|
3507
|
-
fail:
|
3508
|
-
return Qnil;
|
3509
|
-
}
|
3510
|
-
|
3511
|
-
|
3512
|
-
SWIGINTERN VALUE
|
3513
|
-
_wrap_File_stream_info_data(int argc, VALUE *argv, VALUE self) {
|
3514
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3515
|
-
void *argp1 = 0 ;
|
3516
|
-
int res1 = 0 ;
|
3517
|
-
TagLib::ByteVector result;
|
3518
|
-
VALUE vresult = Qnil;
|
3519
|
-
|
3520
|
-
if ((argc < 0) || (argc > 0)) {
|
3521
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3522
|
-
}
|
3523
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3524
|
-
if (!SWIG_IsOK(res1)) {
|
3525
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","streamInfoData", 1, self ));
|
3526
|
-
}
|
3527
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3528
|
-
result = (arg1)->streamInfoData();
|
3529
|
-
{
|
3530
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
3531
|
-
}
|
3532
|
-
return vresult;
|
3533
|
-
fail:
|
3534
|
-
return Qnil;
|
3535
|
-
}
|
3536
|
-
|
3537
|
-
|
3538
|
-
SWIGINTERN VALUE
|
3539
|
-
_wrap_File_stream_length(int argc, VALUE *argv, VALUE self) {
|
3540
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3541
|
-
void *argp1 = 0 ;
|
3542
|
-
int res1 = 0 ;
|
3543
|
-
long result;
|
3544
|
-
VALUE vresult = Qnil;
|
3545
|
-
|
3546
|
-
if ((argc < 0) || (argc > 0)) {
|
3547
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3548
|
-
}
|
3549
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3550
|
-
if (!SWIG_IsOK(res1)) {
|
3551
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","streamLength", 1, self ));
|
3552
|
-
}
|
3553
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3554
|
-
result = (long)(arg1)->streamLength();
|
3555
|
-
vresult = SWIG_From_long(static_cast< long >(result));
|
3556
|
-
return vresult;
|
3557
|
-
fail:
|
3558
|
-
return Qnil;
|
3559
|
-
}
|
3560
|
-
|
3561
|
-
|
3562
3463
|
SWIGINTERN VALUE
|
3563
3464
|
_wrap_File_picture_list(int argc, VALUE *argv, VALUE self) {
|
3564
3465
|
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
@@ -3862,7 +3763,6 @@ static void *_p_TagLib__FLAC__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM
|
|
3862
3763
|
return (void *)((TagLib::File *) ((TagLib::FLAC::File *) x));
|
3863
3764
|
}
|
3864
3765
|
static swig_type_info _swigt__p_TagLib__AudioProperties = {"_p_TagLib__AudioProperties", "TagLib::AudioProperties *", 0, 0, (void*)0, 0};
|
3865
|
-
static swig_type_info _swigt__p_TagLib__ByteVector = {"_p_TagLib__ByteVector", "TagLib::ByteVector *", 0, 0, (void*)0, 0};
|
3866
3766
|
static swig_type_info _swigt__p_TagLib__FLAC__File = {"_p_TagLib__FLAC__File", "TagLib::FLAC::File *", 0, 0, (void*)0, 0};
|
3867
3767
|
static swig_type_info _swigt__p_TagLib__FLAC__Picture = {"_p_TagLib__FLAC__Picture", "TagLib::FLAC::Picture *", 0, 0, (void*)0, 0};
|
3868
3768
|
static swig_type_info _swigt__p_TagLib__FLAC__Properties = {"_p_TagLib__FLAC__Properties", "TagLib::FLAC::Properties *", 0, 0, (void*)0, 0};
|
@@ -3874,6 +3774,7 @@ static swig_type_info _swigt__p_TagLib__ListT_TagLib__FLAC__Picture_t = {"_p_Tag
|
|
3874
3774
|
static swig_type_info _swigt__p_TagLib__Ogg__XiphComment = {"_p_TagLib__Ogg__XiphComment", "TagLib::Ogg::XiphComment *", 0, 0, (void*)0, 0};
|
3875
3775
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
3876
3776
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
3777
|
+
static swig_type_info _swigt__p_long_long = {"_p_long_long", "TagLib::offset_t *|long long *", 0, 0, (void*)0, 0};
|
3877
3778
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
3878
3779
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
3879
3780
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
@@ -3881,7 +3782,6 @@ static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_
|
|
3881
3782
|
|
3882
3783
|
static swig_type_info *swig_type_initial[] = {
|
3883
3784
|
&_swigt__p_TagLib__AudioProperties,
|
3884
|
-
&_swigt__p_TagLib__ByteVector,
|
3885
3785
|
&_swigt__p_TagLib__FLAC__File,
|
3886
3786
|
&_swigt__p_TagLib__FLAC__Picture,
|
3887
3787
|
&_swigt__p_TagLib__FLAC__Properties,
|
@@ -3893,6 +3793,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
3893
3793
|
&_swigt__p_TagLib__Ogg__XiphComment,
|
3894
3794
|
&_swigt__p_TagLib__Tag,
|
3895
3795
|
&_swigt__p_char,
|
3796
|
+
&_swigt__p_long_long,
|
3896
3797
|
&_swigt__p_unsigned_char,
|
3897
3798
|
&_swigt__p_unsigned_int,
|
3898
3799
|
&_swigt__p_unsigned_long,
|
@@ -3900,7 +3801,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
3900
3801
|
};
|
3901
3802
|
|
3902
3803
|
static swig_cast_info _swigc__p_TagLib__AudioProperties[] = { {&_swigt__p_TagLib__AudioProperties, 0, 0, 0}, {&_swigt__p_TagLib__FLAC__Properties, _p_TagLib__FLAC__PropertiesTo_p_TagLib__AudioProperties, 0, 0},{0, 0, 0, 0}};
|
3903
|
-
static swig_cast_info _swigc__p_TagLib__ByteVector[] = { {&_swigt__p_TagLib__ByteVector, 0, 0, 0},{0, 0, 0, 0}};
|
3904
3804
|
static swig_cast_info _swigc__p_TagLib__FLAC__File[] = { {&_swigt__p_TagLib__FLAC__File, 0, 0, 0},{0, 0, 0, 0}};
|
3905
3805
|
static swig_cast_info _swigc__p_TagLib__FLAC__Picture[] = { {&_swigt__p_TagLib__FLAC__Picture, 0, 0, 0},{0, 0, 0, 0}};
|
3906
3806
|
static swig_cast_info _swigc__p_TagLib__FLAC__Properties[] = { {&_swigt__p_TagLib__FLAC__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -3912,6 +3812,7 @@ static swig_cast_info _swigc__p_TagLib__ListT_TagLib__FLAC__Picture_t[] = { {&_
|
|
3912
3812
|
static swig_cast_info _swigc__p_TagLib__Ogg__XiphComment[] = { {&_swigt__p_TagLib__Ogg__XiphComment, 0, 0, 0},{0, 0, 0, 0}};
|
3913
3813
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
3914
3814
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
3815
|
+
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
3915
3816
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
3916
3817
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
3917
3818
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -3919,7 +3820,6 @@ static swig_cast_info _swigc__p_wchar_t[] = { {&_swigt__p_wchar_t, 0, 0, 0},{0,
|
|
3919
3820
|
|
3920
3821
|
static swig_cast_info *swig_cast_initial[] = {
|
3921
3822
|
_swigc__p_TagLib__AudioProperties,
|
3922
|
-
_swigc__p_TagLib__ByteVector,
|
3923
3823
|
_swigc__p_TagLib__FLAC__File,
|
3924
3824
|
_swigc__p_TagLib__FLAC__Picture,
|
3925
3825
|
_swigc__p_TagLib__FLAC__Properties,
|
@@ -3931,6 +3831,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
3931
3831
|
_swigc__p_TagLib__Ogg__XiphComment,
|
3932
3832
|
_swigc__p_TagLib__Tag,
|
3933
3833
|
_swigc__p_char,
|
3834
|
+
_swigc__p_long_long,
|
3934
3835
|
_swigc__p_unsigned_char,
|
3935
3836
|
_swigc__p_unsigned_int,
|
3936
3837
|
_swigc__p_unsigned_long,
|
@@ -4200,7 +4101,6 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4200
4101
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__Properties, (void *) &SwigClassProperties);
|
4201
4102
|
rb_define_alloc_func(SwigClassProperties.klass, _wrap_Properties_allocate);
|
4202
4103
|
rb_define_method(SwigClassProperties.klass, "initialize", VALUEFUNC(_wrap_new_Properties), -1);
|
4203
|
-
rb_define_method(SwigClassProperties.klass, "length_in_seconds", VALUEFUNC(_wrap_Properties_length_in_seconds), -1);
|
4204
4104
|
rb_define_method(SwigClassProperties.klass, "length_in_milliseconds", VALUEFUNC(_wrap_Properties_length_in_milliseconds), -1);
|
4205
4105
|
rb_define_method(SwigClassProperties.klass, "bitrate", VALUEFUNC(_wrap_Properties_bitrate), -1);
|
4206
4106
|
rb_define_method(SwigClassProperties.klass, "sample_rate", VALUEFUNC(_wrap_Properties_sample_rate), -1);
|
@@ -4227,9 +4127,6 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4227
4127
|
rb_define_method(SwigClassFile.klass, "id3v2_tag", VALUEFUNC(_wrap_File_id3v2_tag), -1);
|
4228
4128
|
rb_define_method(SwigClassFile.klass, "id3v1_tag", VALUEFUNC(_wrap_File_id3v1_tag), -1);
|
4229
4129
|
rb_define_method(SwigClassFile.klass, "xiph_comment", VALUEFUNC(_wrap_File_xiph_comment), -1);
|
4230
|
-
rb_define_method(SwigClassFile.klass, "set_id3v2_frame_factory", VALUEFUNC(_wrap_File_set_id3v2_frame_factory), -1);
|
4231
|
-
rb_define_method(SwigClassFile.klass, "stream_info_data", VALUEFUNC(_wrap_File_stream_info_data), -1);
|
4232
|
-
rb_define_method(SwigClassFile.klass, "stream_length", VALUEFUNC(_wrap_File_stream_length), -1);
|
4233
4130
|
rb_define_method(SwigClassFile.klass, "picture_list", VALUEFUNC(_wrap_File_picture_list), -1);
|
4234
4131
|
rb_define_method(SwigClassFile.klass, "remove_picture", VALUEFUNC(_wrap_File_remove_picture), -1);
|
4235
4132
|
rb_define_method(SwigClassFile.klass, "remove_pictures", VALUEFUNC(_wrap_File_remove_pictures), -1);
|