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
5 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
7 ***************************************************************************/
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
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. *
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. *
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 +////////////////////////////////////////////////////////////////////////////////
55 +////////////////////////////////////////////////////////////////////////////////
57 +Audible::Properties::Properties(Properties::ReadStyle style) : AudioProperties(style)
65 +Audible::Properties::~Properties()
69 +int Audible::Properties::length() const
74 +int Audible::Properties::bitrate() const
79 +int Audible::Properties::sampleRate() const
81 + return m_sampleRate;
84 +int Audible::Properties::channels() const
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);
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
105 #include <taglib/tag.h>
107 #include <netinet/in.h> // ntohl
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
116 #include "audibletag.h"
117 #include <taglib/tfile.h>
118 #include <taglib/audioproperties.h>
122 ////////////////////////////////////////////////////////////////////////////////
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
129 #include "taglib_audiblefiletyperesolver.h"
130 #include "taglib_audiblefile.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
140 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
141 * MA 02110-1301 USA *
142 ***************************************************************************/
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
153 #include "wavfiletyperesolver.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
164 #include "wavproperties.h"
166 #include <taglib/tstring.h>
171 #include <netinet/in.h> // ntohl