taglib-ruby 1.1.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/CHANGELOG.md +22 -0
- data/README.md +16 -12
- data/docs/taglib/mpeg.rb +1 -9
- data/ext/extconf_common.rb +21 -12
- data/ext/taglib_aiff/taglib_aiff.i +5 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +327 -111
- data/ext/taglib_base/includes.i +14 -14
- data/ext/taglib_base/taglib_base.i +37 -4
- data/ext/taglib_base/taglib_base_wrap.cxx +414 -422
- data/ext/taglib_flac/taglib_flac.i +8 -3
- data/ext/taglib_flac/taglib_flac_wrap.cxx +356 -406
- data/ext/taglib_flac_picture/taglib_flac_picture.i +4 -0
- data/ext/taglib_flac_picture/taglib_flac_picture_wrap.cxx +229 -122
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +196 -102
- data/ext/taglib_id3v2/taglib_id3v2.i +5 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +727 -568
- data/ext/taglib_mp4/taglib_mp4.i +22 -18
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +2141 -1493
- data/ext/taglib_mpeg/taglib_mpeg.i +6 -0
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +546 -379
- data/ext/taglib_ogg/taglib_ogg.i +0 -2
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +162 -107
- data/ext/taglib_vorbis/taglib_vorbis.i +1 -0
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +141 -109
- data/ext/taglib_wav/taglib_wav.i +6 -2
- data/ext/taglib_wav/taglib_wav_wrap.cxx +290 -147
- data/lib/taglib/version.rb +3 -3
- data/taglib-ruby.gemspec +1 -0
- 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 +4 -3
@@ -1,45 +1,17 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
|
-
* This file was automatically generated by SWIG (
|
3
|
-
* Version 4.
|
2
|
+
* This file was automatically generated by SWIG (https://www.swig.org).
|
3
|
+
* Version 4.1.1
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
5
|
+
* Do not make changes to this file unless you know what you are doing - modify
|
6
|
+
* the SWIG interface file instead.
|
9
7
|
* ----------------------------------------------------------------------------- */
|
10
8
|
|
11
9
|
static void free_taglib_flac_file(void *ptr);
|
12
10
|
|
13
11
|
|
14
12
|
|
15
|
-
#
|
13
|
+
#define SWIG_VERSION 0x040101
|
16
14
|
#define SWIGRUBY
|
17
|
-
#endif
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
#ifdef __cplusplus
|
22
|
-
/* SwigValueWrapper is described in swig.swg */
|
23
|
-
template<typename T> class SwigValueWrapper {
|
24
|
-
struct SwigMovePointer {
|
25
|
-
T *ptr;
|
26
|
-
SwigMovePointer(T *p) : ptr(p) { }
|
27
|
-
~SwigMovePointer() { delete ptr; }
|
28
|
-
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
29
|
-
} pointer;
|
30
|
-
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
31
|
-
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
32
|
-
public:
|
33
|
-
SwigValueWrapper() : pointer(0) { }
|
34
|
-
SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
|
35
|
-
operator T&() const { return *pointer.ptr; }
|
36
|
-
T *operator&() { return pointer.ptr; }
|
37
|
-
};
|
38
|
-
|
39
|
-
template <typename T> T SwigValueInit() {
|
40
|
-
return T();
|
41
|
-
}
|
42
|
-
#endif
|
43
15
|
|
44
16
|
/* -----------------------------------------------------------------------------
|
45
17
|
* This section contains generic SWIG labels for method/variable
|
@@ -335,6 +307,8 @@ template <typename T> T SwigValueInit() {
|
|
335
307
|
#define SWIG_POINTER_DISOWN 0x1
|
336
308
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
337
309
|
#define SWIG_POINTER_NO_NULL 0x4
|
310
|
+
#define SWIG_POINTER_CLEAR 0x8
|
311
|
+
#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
|
338
312
|
|
339
313
|
/* Flags for new pointer objects */
|
340
314
|
#define SWIG_POINTER_OWN 0x1
|
@@ -406,7 +380,7 @@ template <typename T> T SwigValueInit() {
|
|
406
380
|
SWIG errors code.
|
407
381
|
|
408
382
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
409
|
-
allows
|
383
|
+
allows returning the 'cast rank', for example, if you have this
|
410
384
|
|
411
385
|
int food(double)
|
412
386
|
int fooi(int);
|
@@ -420,7 +394,13 @@ template <typename T> T SwigValueInit() {
|
|
420
394
|
*/
|
421
395
|
|
422
396
|
#define SWIG_OK (0)
|
397
|
+
/* Runtime errors are < 0 */
|
423
398
|
#define SWIG_ERROR (-1)
|
399
|
+
/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
|
400
|
+
/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
|
401
|
+
/* Errors < -200 are generic runtime specific errors */
|
402
|
+
#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
|
403
|
+
|
424
404
|
#define SWIG_IsOK(r) (r >= 0)
|
425
405
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
426
406
|
|
@@ -435,7 +415,7 @@ template <typename T> T SwigValueInit() {
|
|
435
415
|
#define SWIG_OLDOBJ (SWIG_OK)
|
436
416
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
437
417
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
438
|
-
/* Check, add and del mask methods */
|
418
|
+
/* Check, add and del object mask methods */
|
439
419
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
440
420
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
441
421
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
@@ -581,7 +561,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
581
561
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
582
562
|
*/
|
583
563
|
SWIGRUNTIME swig_cast_info *
|
584
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
564
|
+
SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
|
585
565
|
if (ty) {
|
586
566
|
swig_cast_info *iter = ty->cast;
|
587
567
|
while (iter) {
|
@@ -641,9 +621,9 @@ SWIG_TypeName(const swig_type_info *ty) {
|
|
641
621
|
SWIGRUNTIME const char *
|
642
622
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
643
623
|
/* The "str" field contains the equivalent pretty names of the
|
644
|
-
type, separated by vertical-bar characters.
|
645
|
-
|
646
|
-
|
624
|
+
type, separated by vertical-bar characters. Choose the last
|
625
|
+
name. It should be the most specific; a fully resolved name
|
626
|
+
but not necessarily with default template parameters expanded. */
|
647
627
|
if (!type) return NULL;
|
648
628
|
if (type->str != NULL) {
|
649
629
|
const char *last_name = type->str;
|
@@ -863,7 +843,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
863
843
|
}
|
864
844
|
#endif
|
865
845
|
|
866
|
-
/*
|
846
|
+
/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
|
867
847
|
#define SWIG_UnknownError -1
|
868
848
|
#define SWIG_IOError -2
|
869
849
|
#define SWIG_RuntimeError -3
|
@@ -879,9 +859,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
879
859
|
#define SWIG_NullReferenceError -13
|
880
860
|
|
881
861
|
|
862
|
+
#if __GNUC__ >= 7
|
863
|
+
#pragma GCC diagnostic push
|
864
|
+
#if defined(__cplusplus)
|
865
|
+
#pragma GCC diagnostic ignored "-Wregister"
|
866
|
+
#if __GNUC__ >= 10
|
867
|
+
#pragma GCC diagnostic ignored "-Wvolatile"
|
868
|
+
#if __GNUC__ >= 11
|
869
|
+
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
|
870
|
+
#endif
|
871
|
+
#endif
|
872
|
+
#endif
|
873
|
+
#endif
|
882
874
|
|
883
875
|
#include <ruby.h>
|
884
876
|
|
877
|
+
#if __GNUC__ >= 7
|
878
|
+
#pragma GCC diagnostic pop
|
879
|
+
#endif
|
880
|
+
|
885
881
|
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
886
882
|
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
887
883
|
* issue for now by disabling this.
|
@@ -1661,6 +1657,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1661
1657
|
own->own = 0;
|
1662
1658
|
}
|
1663
1659
|
|
1660
|
+
if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
|
1661
|
+
if (!RDATA(obj)->dfree)
|
1662
|
+
return SWIG_ERROR_RELEASE_NOT_OWNED;
|
1663
|
+
}
|
1664
|
+
|
1664
1665
|
/* Check to see if the input object is giving up ownership
|
1665
1666
|
of the underlying C struct or C++ object. If so then we
|
1666
1667
|
need to reset the destructor since the Ruby object no
|
@@ -1672,7 +1673,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1672
1673
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1673
1674
|
track = sklass->trackObjects;
|
1674
1675
|
}
|
1675
|
-
|
1676
|
+
|
1676
1677
|
if (track) {
|
1677
1678
|
/* We are tracking objects for this class. Thus we change the destructor
|
1678
1679
|
* to SWIG_RubyRemoveTracking. This allows us to
|
@@ -1686,6 +1687,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1686
1687
|
}
|
1687
1688
|
}
|
1688
1689
|
|
1690
|
+
if (flags & SWIG_POINTER_CLEAR) {
|
1691
|
+
DATA_PTR(obj) = 0;
|
1692
|
+
}
|
1693
|
+
|
1689
1694
|
/* Do type-checking if type info was provided */
|
1690
1695
|
if (ty) {
|
1691
1696
|
if (ty->clientdata) {
|
@@ -1793,6 +1798,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1793
1798
|
{
|
1794
1799
|
/* register a new class */
|
1795
1800
|
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
|
1801
|
+
rb_undef_alloc_func(cl);
|
1796
1802
|
/* create and store the structure pointer to a global variable */
|
1797
1803
|
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
|
1798
1804
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
@@ -1823,7 +1829,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1823
1829
|
{
|
1824
1830
|
if ( rb_respond_to( proc, swig_arity_id ) )
|
1825
1831
|
{
|
1826
|
-
VALUE num =
|
1832
|
+
VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
|
1827
1833
|
int arity = NUM2INT(num);
|
1828
1834
|
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
1829
1835
|
if ( arity == minimal ) return 1;
|
@@ -1841,25 +1847,25 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1841
1847
|
|
1842
1848
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1843
1849
|
|
1844
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; }
|
1850
|
+
#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
|
1845
1851
|
|
1846
1852
|
|
1847
1853
|
|
1848
1854
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
1849
1855
|
|
1850
1856
|
#define SWIGTYPE_p_TagLib__AudioProperties swig_types[0]
|
1851
|
-
#define
|
1852
|
-
#define
|
1853
|
-
#define
|
1854
|
-
#define
|
1855
|
-
#define
|
1856
|
-
#define
|
1857
|
-
#define
|
1858
|
-
#define
|
1859
|
-
#define
|
1860
|
-
#define
|
1861
|
-
#define
|
1862
|
-
#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]
|
1863
1869
|
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1864
1870
|
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1865
1871
|
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
@@ -1876,12 +1882,56 @@ static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
|
1876
1882
|
|
1877
1883
|
static VALUE mFLAC;
|
1878
1884
|
|
1879
|
-
#
|
1880
|
-
#
|
1885
|
+
#ifdef __cplusplus
|
1886
|
+
#include <utility>
|
1887
|
+
/* SwigValueWrapper is described in swig.swg */
|
1888
|
+
template<typename T> class SwigValueWrapper {
|
1889
|
+
struct SwigSmartPointer {
|
1890
|
+
T *ptr;
|
1891
|
+
SwigSmartPointer(T *p) : ptr(p) { }
|
1892
|
+
~SwigSmartPointer() { delete ptr; }
|
1893
|
+
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
1894
|
+
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
1895
|
+
} pointer;
|
1896
|
+
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
1897
|
+
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
1898
|
+
public:
|
1899
|
+
SwigValueWrapper() : pointer(0) { }
|
1900
|
+
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
1901
|
+
#if __cplusplus >=201103L
|
1902
|
+
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
1903
|
+
operator T&&() const { return std::move(*pointer.ptr); }
|
1904
|
+
#else
|
1905
|
+
operator T&() const { return *pointer.ptr; }
|
1906
|
+
#endif
|
1907
|
+
T *operator&() const { return pointer.ptr; }
|
1908
|
+
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
1909
|
+
};
|
1910
|
+
|
1911
|
+
/*
|
1912
|
+
* SwigValueInit() is a generic initialisation solution as the following approach:
|
1913
|
+
*
|
1914
|
+
* T c_result = T();
|
1915
|
+
*
|
1916
|
+
* doesn't compile for all types for example:
|
1917
|
+
*
|
1918
|
+
* unsigned int c_result = unsigned int();
|
1919
|
+
*/
|
1920
|
+
template <typename T> T SwigValueInit() {
|
1921
|
+
return T();
|
1922
|
+
}
|
1881
1923
|
|
1924
|
+
#if __cplusplus >=201103L
|
1925
|
+
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
1926
|
+
#else
|
1927
|
+
# define SWIG_STD_MOVE(OBJ) OBJ
|
1928
|
+
#endif
|
1882
1929
|
|
1883
|
-
#
|
1884
|
-
|
1930
|
+
#endif
|
1931
|
+
|
1932
|
+
|
1933
|
+
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
|
1934
|
+
#define SWIG_RUBY_THREAD_END_BLOCK
|
1885
1935
|
|
1886
1936
|
|
1887
1937
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
@@ -1916,34 +1966,26 @@ static VALUE mFLAC;
|
|
1916
1966
|
#endif
|
1917
1967
|
|
1918
1968
|
VALUE taglib_bytevector_to_ruby_string(const TagLib::ByteVector &byteVector) {
|
1919
|
-
|
1920
|
-
return Qnil;
|
1921
|
-
} else {
|
1922
|
-
return rb_str_new(byteVector.data(), byteVector.size());
|
1923
|
-
}
|
1969
|
+
return rb_str_new(byteVector.data(), byteVector.size());
|
1924
1970
|
}
|
1925
1971
|
|
1926
1972
|
TagLib::ByteVector ruby_string_to_taglib_bytevector(VALUE s) {
|
1927
1973
|
if (NIL_P(s)) {
|
1928
|
-
return TagLib::ByteVector
|
1974
|
+
return TagLib::ByteVector();
|
1929
1975
|
} else {
|
1930
1976
|
return TagLib::ByteVector(RSTRING_PTR(StringValue(s)), RSTRING_LEN(s));
|
1931
1977
|
}
|
1932
1978
|
}
|
1933
1979
|
|
1934
1980
|
VALUE taglib_string_to_ruby_string(const TagLib::String & string) {
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
VALUE result = rb_str_new2(string.toCString(true));
|
1939
|
-
ASSOCIATE_UTF8_ENCODING(result);
|
1940
|
-
return result;
|
1941
|
-
}
|
1981
|
+
VALUE result = rb_str_new2(string.toCString(true));
|
1982
|
+
ASSOCIATE_UTF8_ENCODING(result);
|
1983
|
+
return result;
|
1942
1984
|
}
|
1943
1985
|
|
1944
1986
|
TagLib::String ruby_string_to_taglib_string(VALUE s) {
|
1945
1987
|
if (NIL_P(s)) {
|
1946
|
-
return TagLib::String
|
1988
|
+
return TagLib::String();
|
1947
1989
|
} else {
|
1948
1990
|
return TagLib::String(RSTRING_PTR(CONVERT_TO_UTF8(StringValue(s))), TagLib::String::UTF8);
|
1949
1991
|
}
|
@@ -2032,6 +2074,13 @@ TagLib::FileName ruby_string_to_taglib_filename(VALUE s) {
|
|
2032
2074
|
#endif
|
2033
2075
|
}
|
2034
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
|
+
}
|
2035
2084
|
|
2036
2085
|
|
2037
2086
|
VALUE taglib_flac_picturelist_to_ruby_array(const TagLib::List<TagLib::FLAC::Picture *> & list) {
|
@@ -2052,7 +2101,54 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2052
2101
|
}
|
2053
2102
|
|
2054
2103
|
|
2055
|
-
|
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@*/
|
2056
2152
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2057
2153
|
{
|
2058
2154
|
VALUE *args = (VALUE *)arg;
|
@@ -2082,16 +2178,6 @@ SWIG_AsVal_long (VALUE obj, long* val)
|
|
2082
2178
|
}
|
2083
2179
|
|
2084
2180
|
|
2085
|
-
#include <limits.h>
|
2086
|
-
#if !defined(SWIG_NO_LLONG_MAX)
|
2087
|
-
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
2088
|
-
# define LLONG_MAX __LONG_LONG_MAX__
|
2089
|
-
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
2090
|
-
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
2091
|
-
# endif
|
2092
|
-
#endif
|
2093
|
-
|
2094
|
-
|
2095
2181
|
SWIGINTERN int
|
2096
2182
|
SWIG_AsVal_int (VALUE obj, int *val)
|
2097
2183
|
{
|
@@ -2108,50 +2194,6 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
2108
2194
|
}
|
2109
2195
|
|
2110
2196
|
|
2111
|
-
#define SWIG_From_long LONG2NUM
|
2112
|
-
|
2113
|
-
|
2114
|
-
SWIGINTERNINLINE VALUE
|
2115
|
-
SWIG_From_int (int value)
|
2116
|
-
{
|
2117
|
-
return SWIG_From_long (value);
|
2118
|
-
}
|
2119
|
-
|
2120
|
-
|
2121
|
-
#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
|
2122
|
-
# define SWIG_LONG_LONG_AVAILABLE
|
2123
|
-
#endif
|
2124
|
-
|
2125
|
-
|
2126
|
-
#ifdef SWIG_LONG_LONG_AVAILABLE
|
2127
|
-
SWIGINTERNINLINE VALUE
|
2128
|
-
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
2129
|
-
{
|
2130
|
-
return ULL2NUM(value);
|
2131
|
-
}
|
2132
|
-
#endif
|
2133
|
-
|
2134
|
-
|
2135
|
-
SWIGINTERN int
|
2136
|
-
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2137
|
-
{
|
2138
|
-
if (obj == Qtrue) {
|
2139
|
-
if (val) *val = true;
|
2140
|
-
return SWIG_OK;
|
2141
|
-
} else if (obj == Qfalse) {
|
2142
|
-
if (val) *val = false;
|
2143
|
-
return SWIG_OK;
|
2144
|
-
} else {
|
2145
|
-
int res = 0;
|
2146
|
-
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
2147
|
-
if (val) *val = res ? true : false;
|
2148
|
-
return SWIG_OK;
|
2149
|
-
}
|
2150
|
-
}
|
2151
|
-
return SWIG_TypeError;
|
2152
|
-
}
|
2153
|
-
|
2154
|
-
|
2155
2197
|
SWIGINTERN swig_type_info*
|
2156
2198
|
SWIG_pchar_descriptor(void)
|
2157
2199
|
{
|
@@ -2202,6 +2244,45 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
2202
2244
|
|
2203
2245
|
|
2204
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
|
+
|
2205
2286
|
SWIGINTERNINLINE VALUE
|
2206
2287
|
SWIG_From_bool (bool value)
|
2207
2288
|
{
|
@@ -2269,12 +2350,11 @@ static swig_class SwigClassProperties;
|
|
2269
2350
|
|
2270
2351
|
SWIGINTERN VALUE
|
2271
2352
|
_wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
2272
|
-
TagLib::ByteVector arg1 ;
|
2273
|
-
|
2353
|
+
TagLib::ByteVector *arg1 = 0 ;
|
2354
|
+
TagLib::offset_t arg2 ;
|
2274
2355
|
TagLib::AudioProperties::ReadStyle arg3 ;
|
2275
|
-
|
2276
|
-
|
2277
|
-
long val2 ;
|
2356
|
+
TagLib::ByteVector tmp1 ;
|
2357
|
+
long long val2 ;
|
2278
2358
|
int ecode2 = 0 ;
|
2279
2359
|
int val3 ;
|
2280
2360
|
int ecode3 = 0 ;
|
@@ -2284,97 +2364,20 @@ _wrap_new_Properties__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2284
2364
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
2285
2365
|
}
|
2286
2366
|
{
|
2287
|
-
|
2288
|
-
|
2289
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2290
|
-
}
|
2291
|
-
if (!argp1) {
|
2292
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2293
|
-
} else {
|
2294
|
-
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2295
|
-
}
|
2367
|
+
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2368
|
+
arg1 = &tmp1;
|
2296
2369
|
}
|
2297
|
-
ecode2 =
|
2370
|
+
ecode2 = SWIG_AsVal_long_SS_long(argv[1], &val2);
|
2298
2371
|
if (!SWIG_IsOK(ecode2)) {
|
2299
|
-
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] ));
|
2300
2373
|
}
|
2301
|
-
arg2 = static_cast<
|
2374
|
+
arg2 = static_cast< TagLib::offset_t >(val2);
|
2302
2375
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
2303
2376
|
if (!SWIG_IsOK(ecode3)) {
|
2304
2377
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 3, argv[2] ));
|
2305
2378
|
}
|
2306
2379
|
arg3 = static_cast< TagLib::AudioProperties::ReadStyle >(val3);
|
2307
|
-
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2,arg3);
|
2308
|
-
DATA_PTR(self) = result;
|
2309
|
-
SWIG_RubyAddTracking(result, self);
|
2310
|
-
return self;
|
2311
|
-
fail:
|
2312
|
-
return Qnil;
|
2313
|
-
}
|
2314
|
-
|
2315
|
-
|
2316
|
-
SWIGINTERN VALUE
|
2317
|
-
_wrap_new_Properties__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
2318
|
-
TagLib::ByteVector arg1 ;
|
2319
|
-
long arg2 ;
|
2320
|
-
void *argp1 ;
|
2321
|
-
int res1 = 0 ;
|
2322
|
-
long val2 ;
|
2323
|
-
int ecode2 = 0 ;
|
2324
|
-
TagLib::FLAC::Properties *result = 0 ;
|
2325
|
-
|
2326
|
-
if ((argc < 2) || (argc > 2)) {
|
2327
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2328
|
-
}
|
2329
|
-
{
|
2330
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_TagLib__ByteVector, 0 );
|
2331
|
-
if (!SWIG_IsOK(res1)) {
|
2332
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::ByteVector","Properties", 1, argv[0] ));
|
2333
|
-
}
|
2334
|
-
if (!argp1) {
|
2335
|
-
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "TagLib::ByteVector","Properties", 1, argv[0]));
|
2336
|
-
} else {
|
2337
|
-
arg1 = *(reinterpret_cast< TagLib::ByteVector * >(argp1));
|
2338
|
-
}
|
2339
|
-
}
|
2340
|
-
ecode2 = SWIG_AsVal_long(argv[1], &val2);
|
2341
|
-
if (!SWIG_IsOK(ecode2)) {
|
2342
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "long","Properties", 2, argv[1] ));
|
2343
|
-
}
|
2344
|
-
arg2 = static_cast< long >(val2);
|
2345
|
-
result = (TagLib::FLAC::Properties *)new TagLib::FLAC::Properties(arg1,arg2);
|
2346
|
-
DATA_PTR(self) = result;
|
2347
|
-
SWIG_RubyAddTracking(result, self);
|
2348
|
-
return self;
|
2349
|
-
fail:
|
2350
|
-
return Qnil;
|
2351
|
-
}
|
2352
|
-
|
2353
|
-
|
2354
|
-
SWIGINTERN VALUE
|
2355
|
-
_wrap_new_Properties__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
2356
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
2357
|
-
TagLib::AudioProperties::ReadStyle arg2 ;
|
2358
|
-
void *argp1 = 0 ;
|
2359
|
-
int res1 = 0 ;
|
2360
|
-
int val2 ;
|
2361
|
-
int ecode2 = 0 ;
|
2362
|
-
TagLib::FLAC::Properties *result = 0 ;
|
2363
|
-
|
2364
|
-
if ((argc < 2) || (argc > 2)) {
|
2365
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2366
|
-
}
|
2367
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
2368
|
-
if (!SWIG_IsOK(res1)) {
|
2369
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","Properties", 1, argv[0] ));
|
2370
|
-
}
|
2371
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
2372
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2373
|
-
if (!SWIG_IsOK(ecode2)) {
|
2374
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TagLib::AudioProperties::ReadStyle","Properties", 2, argv[1] ));
|
2375
|
-
}
|
2376
|
-
arg2 = static_cast< TagLib::AudioProperties::ReadStyle >(val2);
|
2377
|
-
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);
|
2378
2381
|
DATA_PTR(self) = result;
|
2379
2382
|
SWIG_RubyAddTracking(result, self);
|
2380
2383
|
return self;
|
@@ -2399,21 +2402,27 @@ _wrap_Properties_allocate(int argc, VALUE *argv, VALUE self)
|
|
2399
2402
|
|
2400
2403
|
|
2401
2404
|
SWIGINTERN VALUE
|
2402
|
-
|
2403
|
-
TagLib::
|
2404
|
-
|
2405
|
-
|
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 ;
|
2406
2411
|
TagLib::FLAC::Properties *result = 0 ;
|
2407
2412
|
|
2408
|
-
if ((argc <
|
2409
|
-
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;
|
2410
2415
|
}
|
2411
|
-
|
2412
|
-
|
2413
|
-
|
2416
|
+
{
|
2417
|
+
tmp1 = ruby_string_to_taglib_bytevector(argv[0]);
|
2418
|
+
arg1 = &tmp1;
|
2414
2419
|
}
|
2415
|
-
|
2416
|
-
|
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);
|
2417
2426
|
DATA_PTR(self) = result;
|
2418
2427
|
SWIG_RubyAddTracking(result, self);
|
2419
2428
|
return self;
|
@@ -2432,38 +2441,13 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2432
2441
|
for (ii = 0; (ii < argc); ++ii) {
|
2433
2442
|
argv[ii] = args[ii];
|
2434
2443
|
}
|
2435
|
-
if (argc == 1) {
|
2436
|
-
int _v;
|
2437
|
-
void *vptr = 0;
|
2438
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
2439
|
-
_v = SWIG_CheckState(res);
|
2440
|
-
if (_v) {
|
2441
|
-
return _wrap_new_Properties__SWIG_3(nargs, args, self);
|
2442
|
-
}
|
2443
|
-
}
|
2444
2444
|
if (argc == 2) {
|
2445
|
-
int _v;
|
2446
|
-
|
2447
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
2448
|
-
_v = SWIG_CheckState(res);
|
2449
|
-
if (_v) {
|
2450
|
-
{
|
2451
|
-
int res = SWIG_AsVal_int(argv[1], NULL);
|
2452
|
-
_v = SWIG_CheckState(res);
|
2453
|
-
}
|
2454
|
-
if (_v) {
|
2455
|
-
return _wrap_new_Properties__SWIG_2(nargs, args, self);
|
2456
|
-
}
|
2457
|
-
}
|
2458
|
-
}
|
2459
|
-
if (argc == 2) {
|
2460
|
-
int _v;
|
2461
|
-
void *vptr = 0;
|
2462
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVector, SWIG_POINTER_NO_NULL);
|
2445
|
+
int _v = 0;
|
2446
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2463
2447
|
_v = SWIG_CheckState(res);
|
2464
2448
|
if (_v) {
|
2465
2449
|
{
|
2466
|
-
int res =
|
2450
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2467
2451
|
_v = SWIG_CheckState(res);
|
2468
2452
|
}
|
2469
2453
|
if (_v) {
|
@@ -2472,13 +2456,12 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2472
2456
|
}
|
2473
2457
|
}
|
2474
2458
|
if (argc == 3) {
|
2475
|
-
int _v;
|
2476
|
-
|
2477
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__ByteVector, SWIG_POINTER_NO_NULL);
|
2459
|
+
int _v = 0;
|
2460
|
+
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2478
2461
|
_v = SWIG_CheckState(res);
|
2479
2462
|
if (_v) {
|
2480
2463
|
{
|
2481
|
-
int res =
|
2464
|
+
int res = SWIG_AsVal_long_SS_long(argv[1], NULL);
|
2482
2465
|
_v = SWIG_CheckState(res);
|
2483
2466
|
}
|
2484
2467
|
if (_v) {
|
@@ -2495,10 +2478,8 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
|
|
2495
2478
|
|
2496
2479
|
fail:
|
2497
2480
|
Ruby_Format_OverloadedError( argc, 3, "Properties.new",
|
2498
|
-
" Properties.new(TagLib::ByteVector data,
|
2499
|
-
" Properties.new(TagLib::ByteVector data,
|
2500
|
-
" Properties.new(TagLib::FLAC::File *file, TagLib::AudioProperties::ReadStyle style)\n"
|
2501
|
-
" 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");
|
2502
2483
|
|
2503
2484
|
return Qnil;
|
2504
2485
|
}
|
@@ -2511,30 +2492,6 @@ free_TagLib_FLAC_Properties(void *self) {
|
|
2511
2492
|
delete arg1;
|
2512
2493
|
}
|
2513
2494
|
|
2514
|
-
SWIGINTERN VALUE
|
2515
|
-
_wrap_Properties_length_in_seconds(int argc, VALUE *argv, VALUE self) {
|
2516
|
-
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
2517
|
-
void *argp1 = 0 ;
|
2518
|
-
int res1 = 0 ;
|
2519
|
-
int result;
|
2520
|
-
VALUE vresult = Qnil;
|
2521
|
-
|
2522
|
-
if ((argc < 0) || (argc > 0)) {
|
2523
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2524
|
-
}
|
2525
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__Properties, 0 | 0 );
|
2526
|
-
if (!SWIG_IsOK(res1)) {
|
2527
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::Properties const *","lengthInSeconds", 1, self ));
|
2528
|
-
}
|
2529
|
-
arg1 = reinterpret_cast< TagLib::FLAC::Properties * >(argp1);
|
2530
|
-
result = (int)((TagLib::FLAC::Properties const *)arg1)->lengthInSeconds();
|
2531
|
-
vresult = SWIG_From_int(static_cast< int >(result));
|
2532
|
-
return vresult;
|
2533
|
-
fail:
|
2534
|
-
return Qnil;
|
2535
|
-
}
|
2536
|
-
|
2537
|
-
|
2538
2495
|
SWIGINTERN VALUE
|
2539
2496
|
_wrap_Properties_length_in_milliseconds(int argc, VALUE *argv, VALUE self) {
|
2540
2497
|
TagLib::FLAC::Properties *arg1 = (TagLib::FLAC::Properties *) 0 ;
|
@@ -2709,6 +2666,53 @@ static swig_class SwigClassFile;
|
|
2709
2666
|
|
2710
2667
|
SWIGINTERN VALUE
|
2711
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) {
|
2712
2716
|
TagLib::FileName arg1 ;
|
2713
2717
|
bool arg2 ;
|
2714
2718
|
TagLib::FLAC::Properties::ReadStyle arg3 ;
|
@@ -2747,7 +2751,7 @@ fail:
|
|
2747
2751
|
|
2748
2752
|
|
2749
2753
|
SWIGINTERN VALUE
|
2750
|
-
|
2754
|
+
_wrap_new_File__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
2751
2755
|
TagLib::FileName arg1 ;
|
2752
2756
|
bool arg2 ;
|
2753
2757
|
bool val2 ;
|
@@ -2778,7 +2782,7 @@ fail:
|
|
2778
2782
|
|
2779
2783
|
|
2780
2784
|
SWIGINTERN VALUE
|
2781
|
-
|
2785
|
+
_wrap_new_File__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
2782
2786
|
TagLib::FileName arg1 ;
|
2783
2787
|
TagLib::FLAC::File *result = 0 ;
|
2784
2788
|
|
@@ -2801,7 +2805,7 @@ fail:
|
|
2801
2805
|
|
2802
2806
|
|
2803
2807
|
SWIGINTERN VALUE
|
2804
|
-
|
2808
|
+
_wrap_new_File__SWIG_4(int argc, VALUE *argv, VALUE self) {
|
2805
2809
|
TagLib::FileName arg1 ;
|
2806
2810
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2807
2811
|
bool arg3 ;
|
@@ -2848,7 +2852,7 @@ fail:
|
|
2848
2852
|
|
2849
2853
|
|
2850
2854
|
SWIGINTERN VALUE
|
2851
|
-
|
2855
|
+
_wrap_new_File__SWIG_5(int argc, VALUE *argv, VALUE self) {
|
2852
2856
|
TagLib::FileName arg1 ;
|
2853
2857
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2854
2858
|
bool arg3 ;
|
@@ -2902,7 +2906,7 @@ _wrap_File_allocate(int argc, VALUE *argv, VALUE self)
|
|
2902
2906
|
|
2903
2907
|
|
2904
2908
|
SWIGINTERN VALUE
|
2905
|
-
|
2909
|
+
_wrap_new_File__SWIG_6(int argc, VALUE *argv, VALUE self) {
|
2906
2910
|
TagLib::FileName arg1 ;
|
2907
2911
|
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
2908
2912
|
void *argp2 = 0 ;
|
@@ -2943,15 +2947,15 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
2943
2947
|
argv[ii] = args[ii];
|
2944
2948
|
}
|
2945
2949
|
if (argc == 1) {
|
2946
|
-
int _v;
|
2950
|
+
int _v = 0;
|
2947
2951
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2948
2952
|
_v = SWIG_CheckState(res);
|
2949
2953
|
if (_v) {
|
2950
|
-
return
|
2954
|
+
return _wrap_new_File__SWIG_3(nargs, args, self);
|
2951
2955
|
}
|
2952
2956
|
}
|
2953
2957
|
if (argc == 2) {
|
2954
|
-
int _v;
|
2958
|
+
int _v = 0;
|
2955
2959
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2956
2960
|
_v = SWIG_CheckState(res);
|
2957
2961
|
if (_v) {
|
@@ -2959,12 +2963,12 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
2959
2963
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0);
|
2960
2964
|
_v = SWIG_CheckState(res);
|
2961
2965
|
if (_v) {
|
2962
|
-
return
|
2966
|
+
return _wrap_new_File__SWIG_6(nargs, args, self);
|
2963
2967
|
}
|
2964
2968
|
}
|
2965
2969
|
}
|
2966
2970
|
if (argc == 2) {
|
2967
|
-
int _v;
|
2971
|
+
int _v = 0;
|
2968
2972
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2969
2973
|
_v = SWIG_CheckState(res);
|
2970
2974
|
if (_v) {
|
@@ -2973,12 +2977,12 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
2973
2977
|
_v = SWIG_CheckState(res);
|
2974
2978
|
}
|
2975
2979
|
if (_v) {
|
2976
|
-
return
|
2980
|
+
return _wrap_new_File__SWIG_2(nargs, args, self);
|
2977
2981
|
}
|
2978
2982
|
}
|
2979
2983
|
}
|
2980
2984
|
if (argc == 3) {
|
2981
|
-
int _v;
|
2985
|
+
int _v = 0;
|
2982
2986
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
2983
2987
|
_v = SWIG_CheckState(res);
|
2984
2988
|
if (_v) {
|
@@ -2991,13 +2995,13 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
2991
2995
|
_v = SWIG_CheckState(res);
|
2992
2996
|
}
|
2993
2997
|
if (_v) {
|
2994
|
-
return
|
2998
|
+
return _wrap_new_File__SWIG_5(nargs, args, self);
|
2995
2999
|
}
|
2996
3000
|
}
|
2997
3001
|
}
|
2998
3002
|
}
|
2999
3003
|
if (argc == 3) {
|
3000
|
-
int _v;
|
3004
|
+
int _v = 0;
|
3001
3005
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
3002
3006
|
_v = SWIG_CheckState(res);
|
3003
3007
|
if (_v) {
|
@@ -3011,13 +3015,13 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3011
3015
|
_v = SWIG_CheckState(res);
|
3012
3016
|
}
|
3013
3017
|
if (_v) {
|
3014
|
-
return
|
3018
|
+
return _wrap_new_File__SWIG_1(nargs, args, self);
|
3015
3019
|
}
|
3016
3020
|
}
|
3017
3021
|
}
|
3018
3022
|
}
|
3019
3023
|
if (argc == 4) {
|
3020
|
-
int _v;
|
3024
|
+
int _v = 0;
|
3021
3025
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
3022
3026
|
_v = SWIG_CheckState(res);
|
3023
3027
|
if (_v) {
|
@@ -3035,7 +3039,32 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3035
3039
|
_v = SWIG_CheckState(res);
|
3036
3040
|
}
|
3037
3041
|
if (_v) {
|
3038
|
-
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);
|
3039
3068
|
}
|
3040
3069
|
}
|
3041
3070
|
}
|
@@ -3044,6 +3073,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
|
|
3044
3073
|
|
3045
3074
|
fail:
|
3046
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"
|
3047
3077
|
" File.new(TagLib::FileName file, bool readProperties, TagLib::FLAC::Properties::ReadStyle propertiesStyle)\n"
|
3048
3078
|
" File.new(TagLib::FileName file, bool readProperties)\n"
|
3049
3079
|
" File.new(TagLib::FileName file)\n"
|
@@ -3195,7 +3225,7 @@ SWIGINTERN VALUE _wrap_File_id3v2_tag(int nargs, VALUE *args, VALUE self) {
|
|
3195
3225
|
argv[ii] = args[ii-1];
|
3196
3226
|
}
|
3197
3227
|
if (argc == 1) {
|
3198
|
-
int _v;
|
3228
|
+
int _v = 0;
|
3199
3229
|
void *vptr = 0;
|
3200
3230
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3201
3231
|
_v = SWIG_CheckState(res);
|
@@ -3204,7 +3234,7 @@ SWIGINTERN VALUE _wrap_File_id3v2_tag(int nargs, VALUE *args, VALUE self) {
|
|
3204
3234
|
}
|
3205
3235
|
}
|
3206
3236
|
if (argc == 2) {
|
3207
|
-
int _v;
|
3237
|
+
int _v = 0;
|
3208
3238
|
void *vptr = 0;
|
3209
3239
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3210
3240
|
_v = SWIG_CheckState(res);
|
@@ -3296,7 +3326,7 @@ SWIGINTERN VALUE _wrap_File_id3v1_tag(int nargs, VALUE *args, VALUE self) {
|
|
3296
3326
|
argv[ii] = args[ii-1];
|
3297
3327
|
}
|
3298
3328
|
if (argc == 1) {
|
3299
|
-
int _v;
|
3329
|
+
int _v = 0;
|
3300
3330
|
void *vptr = 0;
|
3301
3331
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3302
3332
|
_v = SWIG_CheckState(res);
|
@@ -3305,7 +3335,7 @@ SWIGINTERN VALUE _wrap_File_id3v1_tag(int nargs, VALUE *args, VALUE self) {
|
|
3305
3335
|
}
|
3306
3336
|
}
|
3307
3337
|
if (argc == 2) {
|
3308
|
-
int _v;
|
3338
|
+
int _v = 0;
|
3309
3339
|
void *vptr = 0;
|
3310
3340
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3311
3341
|
_v = SWIG_CheckState(res);
|
@@ -3397,7 +3427,7 @@ SWIGINTERN VALUE _wrap_File_xiph_comment(int nargs, VALUE *args, VALUE self) {
|
|
3397
3427
|
argv[ii] = args[ii-1];
|
3398
3428
|
}
|
3399
3429
|
if (argc == 1) {
|
3400
|
-
int _v;
|
3430
|
+
int _v = 0;
|
3401
3431
|
void *vptr = 0;
|
3402
3432
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3403
3433
|
_v = SWIG_CheckState(res);
|
@@ -3406,7 +3436,7 @@ SWIGINTERN VALUE _wrap_File_xiph_comment(int nargs, VALUE *args, VALUE self) {
|
|
3406
3436
|
}
|
3407
3437
|
}
|
3408
3438
|
if (argc == 2) {
|
3409
|
-
int _v;
|
3439
|
+
int _v = 0;
|
3410
3440
|
void *vptr = 0;
|
3411
3441
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3412
3442
|
_v = SWIG_CheckState(res);
|
@@ -3430,85 +3460,6 @@ fail:
|
|
3430
3460
|
}
|
3431
3461
|
|
3432
3462
|
|
3433
|
-
SWIGINTERN VALUE
|
3434
|
-
_wrap_File_set_id3v2_frame_factory(int argc, VALUE *argv, VALUE self) {
|
3435
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3436
|
-
TagLib::ID3v2::FrameFactory *arg2 = (TagLib::ID3v2::FrameFactory *) 0 ;
|
3437
|
-
void *argp1 = 0 ;
|
3438
|
-
int res1 = 0 ;
|
3439
|
-
void *argp2 = 0 ;
|
3440
|
-
int res2 = 0 ;
|
3441
|
-
|
3442
|
-
if ((argc < 1) || (argc > 1)) {
|
3443
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3444
|
-
}
|
3445
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3446
|
-
if (!SWIG_IsOK(res1)) {
|
3447
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","setID3v2FrameFactory", 1, self ));
|
3448
|
-
}
|
3449
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3450
|
-
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_TagLib__ID3v2__FrameFactory, 0 | 0 );
|
3451
|
-
if (!SWIG_IsOK(res2)) {
|
3452
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "TagLib::ID3v2::FrameFactory const *","setID3v2FrameFactory", 2, argv[0] ));
|
3453
|
-
}
|
3454
|
-
arg2 = reinterpret_cast< TagLib::ID3v2::FrameFactory * >(argp2);
|
3455
|
-
(arg1)->setID3v2FrameFactory((TagLib::ID3v2::FrameFactory const *)arg2);
|
3456
|
-
return Qnil;
|
3457
|
-
fail:
|
3458
|
-
return Qnil;
|
3459
|
-
}
|
3460
|
-
|
3461
|
-
|
3462
|
-
SWIGINTERN VALUE
|
3463
|
-
_wrap_File_stream_info_data(int argc, VALUE *argv, VALUE self) {
|
3464
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3465
|
-
void *argp1 = 0 ;
|
3466
|
-
int res1 = 0 ;
|
3467
|
-
TagLib::ByteVector result;
|
3468
|
-
VALUE vresult = Qnil;
|
3469
|
-
|
3470
|
-
if ((argc < 0) || (argc > 0)) {
|
3471
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3472
|
-
}
|
3473
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3474
|
-
if (!SWIG_IsOK(res1)) {
|
3475
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","streamInfoData", 1, self ));
|
3476
|
-
}
|
3477
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3478
|
-
result = (arg1)->streamInfoData();
|
3479
|
-
{
|
3480
|
-
vresult = taglib_bytevector_to_ruby_string(result);
|
3481
|
-
}
|
3482
|
-
return vresult;
|
3483
|
-
fail:
|
3484
|
-
return Qnil;
|
3485
|
-
}
|
3486
|
-
|
3487
|
-
|
3488
|
-
SWIGINTERN VALUE
|
3489
|
-
_wrap_File_stream_length(int argc, VALUE *argv, VALUE self) {
|
3490
|
-
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
3491
|
-
void *argp1 = 0 ;
|
3492
|
-
int res1 = 0 ;
|
3493
|
-
long result;
|
3494
|
-
VALUE vresult = Qnil;
|
3495
|
-
|
3496
|
-
if ((argc < 0) || (argc > 0)) {
|
3497
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3498
|
-
}
|
3499
|
-
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_TagLib__FLAC__File, 0 | 0 );
|
3500
|
-
if (!SWIG_IsOK(res1)) {
|
3501
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TagLib::FLAC::File *","streamLength", 1, self ));
|
3502
|
-
}
|
3503
|
-
arg1 = reinterpret_cast< TagLib::FLAC::File * >(argp1);
|
3504
|
-
result = (long)(arg1)->streamLength();
|
3505
|
-
vresult = SWIG_From_long(static_cast< long >(result));
|
3506
|
-
return vresult;
|
3507
|
-
fail:
|
3508
|
-
return Qnil;
|
3509
|
-
}
|
3510
|
-
|
3511
|
-
|
3512
3463
|
SWIGINTERN VALUE
|
3513
3464
|
_wrap_File_picture_list(int argc, VALUE *argv, VALUE self) {
|
3514
3465
|
TagLib::FLAC::File *arg1 = (TagLib::FLAC::File *) 0 ;
|
@@ -3676,7 +3627,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
3676
3627
|
argv[ii] = args[ii-1];
|
3677
3628
|
}
|
3678
3629
|
if (argc == 1) {
|
3679
|
-
int _v;
|
3630
|
+
int _v = 0;
|
3680
3631
|
void *vptr = 0;
|
3681
3632
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3682
3633
|
_v = SWIG_CheckState(res);
|
@@ -3685,7 +3636,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
|
|
3685
3636
|
}
|
3686
3637
|
}
|
3687
3638
|
if (argc == 2) {
|
3688
|
-
int _v;
|
3639
|
+
int _v = 0;
|
3689
3640
|
void *vptr = 0;
|
3690
3641
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__FLAC__File, 0);
|
3691
3642
|
_v = SWIG_CheckState(res);
|
@@ -3805,14 +3756,13 @@ fail:
|
|
3805
3756
|
|
3806
3757
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
3807
3758
|
|
3808
|
-
static void *_p_TagLib__FLAC__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
3809
|
-
return (void *)((TagLib::File *) ((TagLib::FLAC::File *) x));
|
3810
|
-
}
|
3811
3759
|
static void *_p_TagLib__FLAC__PropertiesTo_p_TagLib__AudioProperties(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
3812
3760
|
return (void *)((TagLib::AudioProperties *) ((TagLib::FLAC::Properties *) x));
|
3813
3761
|
}
|
3762
|
+
static void *_p_TagLib__FLAC__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
3763
|
+
return (void *)((TagLib::File *) ((TagLib::FLAC::File *) x));
|
3764
|
+
}
|
3814
3765
|
static swig_type_info _swigt__p_TagLib__AudioProperties = {"_p_TagLib__AudioProperties", "TagLib::AudioProperties *", 0, 0, (void*)0, 0};
|
3815
|
-
static swig_type_info _swigt__p_TagLib__ByteVector = {"_p_TagLib__ByteVector", "TagLib::ByteVector *", 0, 0, (void*)0, 0};
|
3816
3766
|
static swig_type_info _swigt__p_TagLib__FLAC__File = {"_p_TagLib__FLAC__File", "TagLib::FLAC::File *", 0, 0, (void*)0, 0};
|
3817
3767
|
static swig_type_info _swigt__p_TagLib__FLAC__Picture = {"_p_TagLib__FLAC__Picture", "TagLib::FLAC::Picture *", 0, 0, (void*)0, 0};
|
3818
3768
|
static swig_type_info _swigt__p_TagLib__FLAC__Properties = {"_p_TagLib__FLAC__Properties", "TagLib::FLAC::Properties *", 0, 0, (void*)0, 0};
|
@@ -3820,18 +3770,18 @@ static swig_type_info _swigt__p_TagLib__File = {"_p_TagLib__File", "TagLib::File
|
|
3820
3770
|
static swig_type_info _swigt__p_TagLib__ID3v1__Tag = {"_p_TagLib__ID3v1__Tag", "TagLib::ID3v1::Tag *", 0, 0, (void*)0, 0};
|
3821
3771
|
static swig_type_info _swigt__p_TagLib__ID3v2__FrameFactory = {"_p_TagLib__ID3v2__FrameFactory", "TagLib::ID3v2::FrameFactory *", 0, 0, (void*)0, 0};
|
3822
3772
|
static swig_type_info _swigt__p_TagLib__ID3v2__Tag = {"_p_TagLib__ID3v2__Tag", "TagLib::ID3v2::Tag *", 0, 0, (void*)0, 0};
|
3823
|
-
static swig_type_info _swigt__p_TagLib__ListT_TagLib__FLAC__Picture_t = {"_p_TagLib__ListT_TagLib__FLAC__Picture_t", "TagLib::List< TagLib::FLAC::Picture >
|
3773
|
+
static swig_type_info _swigt__p_TagLib__ListT_TagLib__FLAC__Picture_t = {"_p_TagLib__ListT_TagLib__FLAC__Picture_t", "TagLib::FLAC::PictureList *|TagLib::List< TagLib::FLAC::Picture > *", 0, 0, (void*)0, 0};
|
3824
3774
|
static swig_type_info _swigt__p_TagLib__Ogg__XiphComment = {"_p_TagLib__Ogg__XiphComment", "TagLib::Ogg::XiphComment *", 0, 0, (void*)0, 0};
|
3825
3775
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
3826
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};
|
3827
3778
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
3828
|
-
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int
|
3779
|
+
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
|
3829
3780
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
|
3830
3781
|
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
|
3831
3782
|
|
3832
3783
|
static swig_type_info *swig_type_initial[] = {
|
3833
3784
|
&_swigt__p_TagLib__AudioProperties,
|
3834
|
-
&_swigt__p_TagLib__ByteVector,
|
3835
3785
|
&_swigt__p_TagLib__FLAC__File,
|
3836
3786
|
&_swigt__p_TagLib__FLAC__Picture,
|
3837
3787
|
&_swigt__p_TagLib__FLAC__Properties,
|
@@ -3843,6 +3793,7 @@ static swig_type_info *swig_type_initial[] = {
|
|
3843
3793
|
&_swigt__p_TagLib__Ogg__XiphComment,
|
3844
3794
|
&_swigt__p_TagLib__Tag,
|
3845
3795
|
&_swigt__p_char,
|
3796
|
+
&_swigt__p_long_long,
|
3846
3797
|
&_swigt__p_unsigned_char,
|
3847
3798
|
&_swigt__p_unsigned_int,
|
3848
3799
|
&_swigt__p_unsigned_long,
|
@@ -3850,11 +3801,10 @@ static swig_type_info *swig_type_initial[] = {
|
|
3850
3801
|
};
|
3851
3802
|
|
3852
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}};
|
3853
|
-
static swig_cast_info _swigc__p_TagLib__ByteVector[] = { {&_swigt__p_TagLib__ByteVector, 0, 0, 0},{0, 0, 0, 0}};
|
3854
3804
|
static swig_cast_info _swigc__p_TagLib__FLAC__File[] = { {&_swigt__p_TagLib__FLAC__File, 0, 0, 0},{0, 0, 0, 0}};
|
3855
3805
|
static swig_cast_info _swigc__p_TagLib__FLAC__Picture[] = { {&_swigt__p_TagLib__FLAC__Picture, 0, 0, 0},{0, 0, 0, 0}};
|
3856
3806
|
static swig_cast_info _swigc__p_TagLib__FLAC__Properties[] = { {&_swigt__p_TagLib__FLAC__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
3857
|
-
static swig_cast_info _swigc__p_TagLib__File[] = { {&
|
3807
|
+
static swig_cast_info _swigc__p_TagLib__File[] = { {&_swigt__p_TagLib__File, 0, 0, 0}, {&_swigt__p_TagLib__FLAC__File, _p_TagLib__FLAC__FileTo_p_TagLib__File, 0, 0},{0, 0, 0, 0}};
|
3858
3808
|
static swig_cast_info _swigc__p_TagLib__ID3v1__Tag[] = { {&_swigt__p_TagLib__ID3v1__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
3859
3809
|
static swig_cast_info _swigc__p_TagLib__ID3v2__FrameFactory[] = { {&_swigt__p_TagLib__ID3v2__FrameFactory, 0, 0, 0},{0, 0, 0, 0}};
|
3860
3810
|
static swig_cast_info _swigc__p_TagLib__ID3v2__Tag[] = { {&_swigt__p_TagLib__ID3v2__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -3862,6 +3812,7 @@ static swig_cast_info _swigc__p_TagLib__ListT_TagLib__FLAC__Picture_t[] = { {&_
|
|
3862
3812
|
static swig_cast_info _swigc__p_TagLib__Ogg__XiphComment[] = { {&_swigt__p_TagLib__Ogg__XiphComment, 0, 0, 0},{0, 0, 0, 0}};
|
3863
3813
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
3864
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}};
|
3865
3816
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
3866
3817
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
3867
3818
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -3869,7 +3820,6 @@ static swig_cast_info _swigc__p_wchar_t[] = { {&_swigt__p_wchar_t, 0, 0, 0},{0,
|
|
3869
3820
|
|
3870
3821
|
static swig_cast_info *swig_cast_initial[] = {
|
3871
3822
|
_swigc__p_TagLib__AudioProperties,
|
3872
|
-
_swigc__p_TagLib__ByteVector,
|
3873
3823
|
_swigc__p_TagLib__FLAC__File,
|
3874
3824
|
_swigc__p_TagLib__FLAC__Picture,
|
3875
3825
|
_swigc__p_TagLib__FLAC__Properties,
|
@@ -3881,6 +3831,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
3881
3831
|
_swigc__p_TagLib__Ogg__XiphComment,
|
3882
3832
|
_swigc__p_TagLib__Tag,
|
3883
3833
|
_swigc__p_char,
|
3834
|
+
_swigc__p_long_long,
|
3884
3835
|
_swigc__p_unsigned_char,
|
3885
3836
|
_swigc__p_unsigned_int,
|
3886
3837
|
_swigc__p_unsigned_long,
|
@@ -3942,9 +3893,12 @@ extern "C" {
|
|
3942
3893
|
#define SWIGRUNTIME_DEBUG
|
3943
3894
|
#endif
|
3944
3895
|
|
3896
|
+
#ifndef SWIG_INIT_CLIENT_DATA_TYPE
|
3897
|
+
#define SWIG_INIT_CLIENT_DATA_TYPE void *
|
3898
|
+
#endif
|
3945
3899
|
|
3946
3900
|
SWIGRUNTIME void
|
3947
|
-
SWIG_InitializeModule(
|
3901
|
+
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
|
3948
3902
|
size_t i;
|
3949
3903
|
swig_module_info *module_head, *iter;
|
3950
3904
|
int init;
|
@@ -4147,7 +4101,6 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4147
4101
|
SWIG_TypeClientData(SWIGTYPE_p_TagLib__FLAC__Properties, (void *) &SwigClassProperties);
|
4148
4102
|
rb_define_alloc_func(SwigClassProperties.klass, _wrap_Properties_allocate);
|
4149
4103
|
rb_define_method(SwigClassProperties.klass, "initialize", VALUEFUNC(_wrap_new_Properties), -1);
|
4150
|
-
rb_define_method(SwigClassProperties.klass, "length_in_seconds", VALUEFUNC(_wrap_Properties_length_in_seconds), -1);
|
4151
4104
|
rb_define_method(SwigClassProperties.klass, "length_in_milliseconds", VALUEFUNC(_wrap_Properties_length_in_milliseconds), -1);
|
4152
4105
|
rb_define_method(SwigClassProperties.klass, "bitrate", VALUEFUNC(_wrap_Properties_bitrate), -1);
|
4153
4106
|
rb_define_method(SwigClassProperties.klass, "sample_rate", VALUEFUNC(_wrap_Properties_sample_rate), -1);
|
@@ -4174,9 +4127,6 @@ SWIGEXPORT void Init_taglib_flac(void) {
|
|
4174
4127
|
rb_define_method(SwigClassFile.klass, "id3v2_tag", VALUEFUNC(_wrap_File_id3v2_tag), -1);
|
4175
4128
|
rb_define_method(SwigClassFile.klass, "id3v1_tag", VALUEFUNC(_wrap_File_id3v1_tag), -1);
|
4176
4129
|
rb_define_method(SwigClassFile.klass, "xiph_comment", VALUEFUNC(_wrap_File_xiph_comment), -1);
|
4177
|
-
rb_define_method(SwigClassFile.klass, "set_id3v2_frame_factory", VALUEFUNC(_wrap_File_set_id3v2_frame_factory), -1);
|
4178
|
-
rb_define_method(SwigClassFile.klass, "stream_info_data", VALUEFUNC(_wrap_File_stream_info_data), -1);
|
4179
|
-
rb_define_method(SwigClassFile.klass, "stream_length", VALUEFUNC(_wrap_File_stream_length), -1);
|
4180
4130
|
rb_define_method(SwigClassFile.klass, "picture_list", VALUEFUNC(_wrap_File_picture_list), -1);
|
4181
4131
|
rb_define_method(SwigClassFile.klass, "remove_picture", VALUEFUNC(_wrap_File_remove_picture), -1);
|
4182
4132
|
rb_define_method(SwigClassFile.klass, "remove_pictures", VALUEFUNC(_wrap_File_remove_pictures), -1);
|