updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / soundkonverter-kde3 / gcc.patch
blobb6ab8c280bbb749c5ab4e0bd2adee16c106ae8ad
1 diff -uNr soundkonverter-0.3.10b/src/metadata/audible/audibleproperties.cpp soundkonverter-0.3.10/src/metadata/audible/audibleproperties.cpp
2 --- soundkonverter-0.3.10b/src/metadata/audible/audibleproperties.cpp 2009-08-06 03:28:50.000000000 +0200
3 +++ soundkonverter-0.3.10/src/metadata/audible/audibleproperties.cpp 2009-08-06 12:48:48.000000000 +0200
4 @@ -22,7 +22,7 @@
5 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
6 * MA 02110-1301 USA *
7 ***************************************************************************/
9 +#include<stdio.h>
10 #include "audibleproperties.h"
12 #include <taglib/tstring.h>
13 diff -uNr soundkonverter-0.3.10b/src/metadata/audible/audibleproperties.cpp~ soundkonverter-0.3.10/src/metadata/audible/audibleproperties.cpp~
14 --- soundkonverter-0.3.10b/src/metadata/audible/audibleproperties.cpp~ 1970-01-01 01:00:00.000000000 +0100
15 +++ soundkonverter-0.3.10/src/metadata/audible/audibleproperties.cpp~ 2007-12-17 16:53:19.000000000 +0100
16 @@ -0,0 +1,84 @@
17 +/***************************************************************************
18 + copyright : (C) 2005 by Martin Aumueller
19 + email : aumuell@reserv.at
21 + copyright : (C) 2005 by Andy Leadbetter
22 + email : andrew.leadbetter@gmail.com
23 + (original mp4 implementation)
24 + ***************************************************************************/
26 +/***************************************************************************
27 + * This library is free software; you can redistribute it and/or modify *
28 + * it under the terms of the GNU Lesser General Public License version *
29 + * 2.1 as published by the Free Software Foundation. *
30 + * *
31 + * This library is distributed in the hope that it will be useful, but *
32 + * WITHOUT ANY WARRANTY; without even the implied warranty of *
33 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
34 + * Lesser General Public License for more details. *
35 + * *
36 + * You should have received a copy of the GNU Lesser General Public *
37 + * License along with this library; if not, write to the Free Software *
38 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
39 + * MA 02110-1301 USA *
40 + ***************************************************************************/
42 +#include "audibleproperties.h"
44 +#include <taglib/tstring.h>
46 +#include "taglib_audiblefile.h"
48 +#include <netinet/in.h> // ntohl
50 +using namespace TagLib;
53 +////////////////////////////////////////////////////////////////////////////////
54 +// public members
55 +////////////////////////////////////////////////////////////////////////////////
57 +Audible::Properties::Properties(Properties::ReadStyle style) : AudioProperties(style)
59 + m_length = 0;
60 + m_bitrate = 0;
61 + m_sampleRate = 0;
62 + m_channels = 0;
65 +Audible::Properties::~Properties()
69 +int Audible::Properties::length() const
71 + return m_length;
74 +int Audible::Properties::bitrate() const
76 + return m_bitrate;
79 +int Audible::Properties::sampleRate() const
81 + return m_sampleRate;
84 +int Audible::Properties::channels() const
86 + return m_channels;
89 +#define LENGTH_OFF 61
91 +void Audible::Properties::readAudibleProperties( FILE *fp, int off )
93 + fseek(fp, off+LENGTH_OFF, SEEK_SET );
94 + fread(&m_length, sizeof(m_length), 1, fp);
95 + m_length = ntohl(m_length);
96 + //fprintf(stderr, "len (sec): %d\n", m_length);
97 + m_bitrate = 0;
98 + m_sampleRate = 0;
99 + m_channels = 1;
101 diff -uNr soundkonverter-0.3.10b/src/metadata/audible/audibletag.cpp soundkonverter-0.3.10/src/metadata/audible/audibletag.cpp
102 --- soundkonverter-0.3.10b/src/metadata/audible/audibletag.cpp 2009-08-06 03:28:50.000000000 +0200
103 +++ soundkonverter-0.3.10/src/metadata/audible/audibletag.cpp 2009-08-06 03:30:14.000000000 +0200
104 @@ -28,6 +28,7 @@
105 #include <taglib/tag.h>
107 #include <netinet/in.h> // ntohl
108 +#include <stdio.h>
109 #include <stdlib.h>
110 #include <string.h>
112 diff -uNr soundkonverter-0.3.10b/src/metadata/audible/taglib_audiblefile.cpp soundkonverter-0.3.10/src/metadata/audible/taglib_audiblefile.cpp
113 --- soundkonverter-0.3.10b/src/metadata/audible/taglib_audiblefile.cpp 2009-08-06 03:28:50.000000000 +0200
114 +++ soundkonverter-0.3.10/src/metadata/audible/taglib_audiblefile.cpp 2009-08-06 03:29:44.000000000 +0200
115 @@ -28,7 +28,7 @@
116 #include "audibletag.h"
117 #include <taglib/tfile.h>
118 #include <taglib/audioproperties.h>
120 +#include<stdio.h>
121 namespace TagLib {
122 ////////////////////////////////////////////////////////////////////////////////
123 // public members
124 diff -uNr soundkonverter-0.3.10b/src/metadata/audible/taglib_audiblefiletyperesolver.cpp soundkonverter-0.3.10/src/metadata/audible/taglib_audiblefiletyperesolver.cpp
125 --- soundkonverter-0.3.10b/src/metadata/audible/taglib_audiblefiletyperesolver.cpp 2009-08-06 03:28:50.000000000 +0200
126 +++ soundkonverter-0.3.10/src/metadata/audible/taglib_audiblefiletyperesolver.cpp 2009-08-06 03:29:57.000000000 +0200
127 @@ -21,7 +21,7 @@
129 #include "taglib_audiblefiletyperesolver.h"
130 #include "taglib_audiblefile.h"
132 +#include<stdio.h>
133 #include <string.h>
135 TagLib::File *AudibleFileTypeResolver::createFile(const char *fileName,
136 diff -uNr soundkonverter-0.3.10b/src/metadata/wav/wavfile.cpp soundkonverter-0.3.10/src/metadata/wav/wavfile.cpp
137 --- soundkonverter-0.3.10b/src/metadata/wav/wavfile.cpp 2009-08-06 03:28:50.000000000 +0200
138 +++ soundkonverter-0.3.10/src/metadata/wav/wavfile.cpp 2009-08-06 03:30:49.000000000 +0200
139 @@ -22,7 +22,7 @@
140 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
141 * MA 02110-1301 USA *
142 ***************************************************************************/
144 +#include<stdio.h>
145 #include "wavfile.h"
147 #include <taglib/tfile.h>
148 diff -uNr soundkonverter-0.3.10b/src/metadata/wav/wavfiletyperesolver.cpp soundkonverter-0.3.10/src/metadata/wav/wavfiletyperesolver.cpp
149 --- soundkonverter-0.3.10b/src/metadata/wav/wavfiletyperesolver.cpp 2009-08-06 03:28:50.000000000 +0200
150 +++ soundkonverter-0.3.10/src/metadata/wav/wavfiletyperesolver.cpp 2009-08-06 03:30:57.000000000 +0200
151 @@ -21,7 +21,7 @@
153 #include "wavfiletyperesolver.h"
154 #include "wavfile.h"
156 +#include<stdio.h>
157 #include <string.h>
159 TagLib::File *WavFileTypeResolver::createFile(const char *fileName,
160 diff -uNr soundkonverter-0.3.10b/src/metadata/wav/wavproperties.cpp soundkonverter-0.3.10/src/metadata/wav/wavproperties.cpp
161 --- soundkonverter-0.3.10b/src/metadata/wav/wavproperties.cpp 2009-08-06 03:28:50.000000000 +0200
162 +++ soundkonverter-0.3.10/src/metadata/wav/wavproperties.cpp 2009-08-06 03:30:44.000000000 +0200
163 @@ -26,7 +26,7 @@
164 #include "wavproperties.h"
166 #include <taglib/tstring.h>
168 +#include<stdio.h>
169 #include "wavfile.h"
171 #include <netinet/in.h> // ntohl