Browse Source

Added KDE3 version of SoundKonverter


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tpearson 9 years ago
commit
f2cfda2a54
100 changed files with 43924 additions and 0 deletions
  1. 1
    0
      AUTHORS
  2. 340
    0
      COPYING
  3. 199
    0
      ChangeLog
  4. 167
    0
      INSTALL
  5. 22
    0
      Makefile.am
  6. 10
    0
      Makefile.cvs
  7. 0
    0
      NEWS
  8. 160
    0
      README
  9. 0
    0
      TODO
  10. 11810
    0
      acinclude.m4
  11. 259
    0
      config.h.in
  12. 2
    0
      configure.files
  13. 282
    0
      configure.in
  14. 144
    0
      configure.in.in
  15. 6
    0
      doc/Makefile.am
  16. 2
    0
      doc/en/Makefile.am
  17. 209
    0
      doc/en/index.docbook
  18. 3
    0
      po/Makefile.am
  19. 1650
    0
      po/de.po
  20. 1661
    0
      po/es.po
  21. 1665
    0
      po/fr.po
  22. 1690
    0
      po/hu.po
  23. 1632
    0
      po/it.po
  24. 1687
    0
      po/nl.po
  25. 1636
    0
      po/pl.po
  26. 1642
    0
      po/pt_BR.po
  27. 1688
    0
      po/pt_PT.po
  28. 1632
    0
      po/ru.po
  29. 58
    0
      src/Makefile.am
  30. 3
    0
      src/amarokscript/Makefile.am
  31. 43
    0
      src/amarokscript/README
  32. 296
    0
      src/amarokscript/soundKonverter.rb
  33. 11
    0
      src/audiocd_extract_with_soundkonverter.desktop
  34. 669
    0
      src/cddb.cpp
  35. 79
    0
      src/cddb.h
  36. 190
    0
      src/cdmanager.cpp
  37. 95
    0
      src/cdmanager.h
  38. 781
    0
      src/cdopener.cpp
  39. 139
    0
      src/cdopener.h
  40. 114
    0
      src/combobutton.cpp
  41. 110
    0
      src/combobutton.h
  42. 1516
    0
      src/config.cpp
  43. 354
    0
      src/config.h
  44. 493
    0
      src/configbackendspage.cpp
  45. 81
    0
      src/configbackendspage.h
  46. 174
    0
      src/configdialog.cpp
  47. 79
    0
      src/configdialog.h
  48. 223
    0
      src/configenvironmentpage.cpp
  49. 62
    0
      src/configenvironmentpage.h
  50. 323
    0
      src/configgeneralpage.cpp
  51. 69
    0
      src/configgeneralpage.h
  52. 20
    0
      src/configpagebase.cpp
  53. 38
    0
      src/configpagebase.h
  54. 639
    0
      src/configpluginspage.cpp
  55. 82
    0
      src/configpluginspage.h
  56. 86
    0
      src/conversionoptions.cpp
  57. 65
    0
      src/conversionoptions.h
  58. 1615
    0
      src/convert.cpp
  59. 281
    0
      src/convert.h
  60. 325
    0
      src/cuesheeteditor.cpp
  61. 50
    0
      src/cuesheeteditor.h
  62. 58
    0
      src/dcopinterface.h
  63. 154
    0
      src/dirdialog.cpp
  64. 65
    0
      src/dirdialog.h
  65. 1445
    0
      src/filelist.cpp
  66. 235
    0
      src/filelist.h
  67. BIN
      src/hi16-app-soundkonverter.png
  68. BIN
      src/hi16-app-soundkonverter_replaygain.png
  69. BIN
      src/hi22-app-soundkonverter.png
  70. BIN
      src/hi22-app-soundkonverter_replaygain.png
  71. BIN
      src/hi32-app-soundkonverter.png
  72. BIN
      src/hi32-app-soundkonverter_replaygain.png
  73. BIN
      src/hi48-app-soundkonverter.png
  74. BIN
      src/hi48-app-soundkonverter_replaygain.png
  75. BIN
      src/hi64-app-soundkonverter.png
  76. BIN
      src/hi64-app-soundkonverter_replaygain.png
  77. 149
    0
      src/logger.cpp
  78. 100
    0
      src/logger.h
  79. 204
    0
      src/logviewer.cpp
  80. 111
    0
      src/logviewer.h
  81. 75
    0
      src/main.cpp
  82. 37
    0
      src/metadata/Makefile.am
  83. 12
    0
      src/metadata/aac/Makefile.am
  84. 38
    0
      src/metadata/aac/aacfiletyperesolver.cpp
  85. 36
    0
      src/metadata/aac/aacfiletyperesolver.h
  86. 6
    0
      src/metadata/ape/Makefile.am
  87. 21
    0
      src/metadata/ape/taglib_monkeysaudiofiletyperesolver.cpp
  88. 19
    0
      src/metadata/ape/taglib_monkeysaudiofiletyperesolver.h
  89. 20
    0
      src/metadata/asf/Makefile.am
  90. 304
    0
      src/metadata/asf/asfattribute.cpp
  91. 176
    0
      src/metadata/asf/asfattribute.h
  92. 547
    0
      src/metadata/asf/asffile.cpp
  93. 114
    0
      src/metadata/asf/asffile.h
  94. 95
    0
      src/metadata/asf/asfproperties.cpp
  95. 69
    0
      src/metadata/asf/asfproperties.h
  96. 202
    0
      src/metadata/asf/asftag.cpp
  97. 181
    0
      src/metadata/asf/asftag.h
  98. 47
    0
      src/metadata/asf/taglib_asffiletyperesolver.cpp
  99. 42
    0
      src/metadata/asf/taglib_asffiletyperesolver.h
  100. 0
    0
      src/metadata/audible/Makefile.am

+ 1
- 0
AUTHORS View File

@@ -0,0 +1 @@
1
+Daniel Faust <hessijames@gmail.com>

+ 340
- 0
COPYING View File

@@ -0,0 +1,340 @@
1
+		    GNU GENERAL PUBLIC LICENSE
2
+		       Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+                       51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+			    Preamble
10
+
11
+  The licenses for most software are designed to take away your
12
+freedom to share and change it.  By contrast, the GNU General Public
13
+License is intended to guarantee your freedom to share and change free
14
+software--to make sure the software is free for all its users.  This
15
+General Public License applies to most of the Free Software
16
+Foundation's software and to any other program whose authors commit to
17
+using it.  (Some other Free Software Foundation software is covered by
18
+the GNU Library General Public License instead.)  You can apply it to
19
+your programs, too.
20
+
21
+  When we speak of free software, we are referring to freedom, not
22
+price.  Our General Public Licenses are designed to make sure that you
23
+have the freedom to distribute copies of free software (and charge for
24
+this service if you wish), that you receive source code or can get it
25
+if you want it, that you can change the software or use pieces of it
26
+in new free programs; and that you know you can do these things.
27
+
28
+  To protect your rights, we need to make restrictions that forbid
29
+anyone to deny you these rights or to ask you to surrender the rights.
30
+These restrictions translate to certain responsibilities for you if you
31
+distribute copies of the software, or if you modify it.
32
+
33
+  For example, if you distribute copies of such a program, whether
34
+gratis or for a fee, you must give the recipients all the rights that
35
+you have.  You must make sure that they, too, receive or can get the
36
+source code.  And you must show them these terms so they know their
37
+rights.
38
+
39
+  We protect your rights with two steps: (1) copyright the software, and
40
+(2) offer you this license which gives you legal permission to copy,
41
+distribute and/or modify the software.
42
+
43
+  Also, for each author's protection and ours, we want to make certain
44
+that everyone understands that there is no warranty for this free
45
+software.  If the software is modified by someone else and passed on, we
46
+want its recipients to know that what they have is not the original, so
47
+that any problems introduced by others will not reflect on the original
48
+authors' reputations.
49
+
50
+  Finally, any free program is threatened constantly by software
51
+patents.  We wish to avoid the danger that redistributors of a free
52
+program will individually obtain patent licenses, in effect making the
53
+program proprietary.  To prevent this, we have made it clear that any
54
+patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+  The precise terms and conditions for copying, distribution and
57
+modification follow.
58
+
59
+		    GNU GENERAL PUBLIC LICENSE
60
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+  0. This License applies to any program or other work which contains
63
+a notice placed by the copyright holder saying it may be distributed
64
+under the terms of this General Public License.  The "Program", below,
65
+refers to any such program or work, and a "work based on the Program"
66
+means either the Program or any derivative work under copyright law:
67
+that is to say, a work containing the Program or a portion of it,
68
+either verbatim or with modifications and/or translated into another
69
+language.  (Hereinafter, translation is included without limitation in
70
+the term "modification".)  Each licensee is addressed as "you".
71
+
72
+Activities other than copying, distribution and modification are not
73
+covered by this License; they are outside its scope.  The act of
74
+running the Program is not restricted, and the output from the Program
75
+is covered only if its contents constitute a work based on the
76
+Program (independent of having been made by running the Program).
77
+Whether that is true depends on what the Program does.
78
+
79
+  1. You may copy and distribute verbatim copies of the Program's
80
+source code as you receive it, in any medium, provided that you
81
+conspicuously and appropriately publish on each copy an appropriate
82
+copyright notice and disclaimer of warranty; keep intact all the
83
+notices that refer to this License and to the absence of any warranty;
84
+and give any other recipients of the Program a copy of this License
85
+along with the Program.
86
+
87
+You may charge a fee for the physical act of transferring a copy, and
88
+you may at your option offer warranty protection in exchange for a fee.
89
+
90
+  2. You may modify your copy or copies of the Program or any portion
91
+of it, thus forming a work based on the Program, and copy and
92
+distribute such modifications or work under the terms of Section 1
93
+above, provided that you also meet all of these conditions:
94
+
95
+    a) You must cause the modified files to carry prominent notices
96
+    stating that you changed the files and the date of any change.
97
+
98
+    b) You must cause any work that you distribute or publish, that in
99
+    whole or in part contains or is derived from the Program or any
100
+    part thereof, to be licensed as a whole at no charge to all third
101
+    parties under the terms of this License.
102
+
103
+    c) If the modified program normally reads commands interactively
104
+    when run, you must cause it, when started running for such
105
+    interactive use in the most ordinary way, to print or display an
106
+    announcement including an appropriate copyright notice and a
107
+    notice that there is no warranty (or else, saying that you provide
108
+    a warranty) and that users may redistribute the program under
109
+    these conditions, and telling the user how to view a copy of this
110
+    License.  (Exception: if the Program itself is interactive but
111
+    does not normally print such an announcement, your work based on
112
+    the Program is not required to print an announcement.)
113
+
114
+These requirements apply to the modified work as a whole.  If
115
+identifiable sections of that work are not derived from the Program,
116
+and can be reasonably considered independent and separate works in
117
+themselves, then this License, and its terms, do not apply to those
118
+sections when you distribute them as separate works.  But when you
119
+distribute the same sections as part of a whole which is a work based
120
+on the Program, the distribution of the whole must be on the terms of
121
+this License, whose permissions for other licensees extend to the
122
+entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+Thus, it is not the intent of this section to claim rights or contest
125
+your rights to work written entirely by you; rather, the intent is to
126
+exercise the right to control the distribution of derivative or
127
+collective works based on the Program.
128
+
129
+In addition, mere aggregation of another work not based on the Program
130
+with the Program (or with a work based on the Program) on a volume of
131
+a storage or distribution medium does not bring the other work under
132
+the scope of this License.
133
+
134
+  3. You may copy and distribute the Program (or a work based on it,
135
+under Section 2) in object code or executable form under the terms of
136
+Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+    a) Accompany it with the complete corresponding machine-readable
139
+    source code, which must be distributed under the terms of Sections
140
+    1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+    b) Accompany it with a written offer, valid for at least three
143
+    years, to give any third party, for a charge no more than your
144
+    cost of physically performing source distribution, a complete
145
+    machine-readable copy of the corresponding source code, to be
146
+    distributed under the terms of Sections 1 and 2 above on a medium
147
+    customarily used for software interchange; or,
148
+
149
+    c) Accompany it with the information you received as to the offer
150
+    to distribute corresponding source code.  (This alternative is
151
+    allowed only for noncommercial distribution and only if you
152
+    received the program in object code or executable form with such
153
+    an offer, in accord with Subsection b above.)
154
+
155
+The source code for a work means the preferred form of the work for
156
+making modifications to it.  For an executable work, complete source
157
+code means all the source code for all modules it contains, plus any
158
+associated interface definition files, plus the scripts used to
159
+control compilation and installation of the executable.  However, as a
160
+special exception, the source code distributed need not include
161
+anything that is normally distributed (in either source or binary
162
+form) with the major components (compiler, kernel, and so on) of the
163
+operating system on which the executable runs, unless that component
164
+itself accompanies the executable.
165
+
166
+If distribution of executable or object code is made by offering
167
+access to copy from a designated place, then offering equivalent
168
+access to copy the source code from the same place counts as
169
+distribution of the source code, even though third parties are not
170
+compelled to copy the source along with the object code.
171
+
172
+  4. You may not copy, modify, sublicense, or distribute the Program
173
+except as expressly provided under this License.  Any attempt
174
+otherwise to copy, modify, sublicense or distribute the Program is
175
+void, and will automatically terminate your rights under this License.
176
+However, parties who have received copies, or rights, from you under
177
+this License will not have their licenses terminated so long as such
178
+parties remain in full compliance.
179
+
180
+  5. You are not required to accept this License, since you have not
181
+signed it.  However, nothing else grants you permission to modify or
182
+distribute the Program or its derivative works.  These actions are
183
+prohibited by law if you do not accept this License.  Therefore, by
184
+modifying or distributing the Program (or any work based on the
185
+Program), you indicate your acceptance of this License to do so, and
186
+all its terms and conditions for copying, distributing or modifying
187
+the Program or works based on it.
188
+
189
+  6. Each time you redistribute the Program (or any work based on the
190
+Program), the recipient automatically receives a license from the
191
+original licensor to copy, distribute or modify the Program subject to
192
+these terms and conditions.  You may not impose any further
193
+restrictions on the recipients' exercise of the rights granted herein.
194
+You are not responsible for enforcing compliance by third parties to
195
+this License.
196
+
197
+  7. If, as a consequence of a court judgment or allegation of patent
198
+infringement or for any other reason (not limited to patent issues),
199
+conditions are imposed on you (whether by court order, agreement or
200
+otherwise) that contradict the conditions of this License, they do not
201
+excuse you from the conditions of this License.  If you cannot
202
+distribute so as to satisfy simultaneously your obligations under this
203
+License and any other pertinent obligations, then as a consequence you
204
+may not distribute the Program at all.  For example, if a patent
205
+license would not permit royalty-free redistribution of the Program by
206
+all those who receive copies directly or indirectly through you, then
207
+the only way you could satisfy both it and this License would be to
208
+refrain entirely from distribution of the Program.
209
+
210
+If any portion of this section is held invalid or unenforceable under
211
+any particular circumstance, the balance of the section is intended to
212
+apply and the section as a whole is intended to apply in other
213
+circumstances.
214
+
215
+It is not the purpose of this section to induce you to infringe any
216
+patents or other property right claims or to contest validity of any
217
+such claims; this section has the sole purpose of protecting the
218
+integrity of the free software distribution system, which is
219
+implemented by public license practices.  Many people have made
220
+generous contributions to the wide range of software distributed
221
+through that system in reliance on consistent application of that
222
+system; it is up to the author/donor to decide if he or she is willing
223
+to distribute software through any other system and a licensee cannot
224
+impose that choice.
225
+
226
+This section is intended to make thoroughly clear what is believed to
227
+be a consequence of the rest of this License.
228
+
229
+  8. If the distribution and/or use of the Program is restricted in
230
+certain countries either by patents or by copyrighted interfaces, the
231
+original copyright holder who places the Program under this License
232
+may add an explicit geographical distribution limitation excluding
233
+those countries, so that distribution is permitted only in or among
234
+countries not thus excluded.  In such case, this License incorporates
235
+the limitation as if written in the body of this License.
236
+
237
+  9. The Free Software Foundation may publish revised and/or new versions
238
+of the General Public License from time to time.  Such new versions will
239
+be similar in spirit to the present version, but may differ in detail to
240
+address new problems or concerns.
241
+
242
+Each version is given a distinguishing version number.  If the Program
243
+specifies a version number of this License which applies to it and "any
244
+later version", you have the option of following the terms and conditions
245
+either of that version or of any later version published by the Free
246
+Software Foundation.  If the Program does not specify a version number of
247
+this License, you may choose any version ever published by the Free Software
248
+Foundation.
249
+
250
+  10. If you wish to incorporate parts of the Program into other free
251
+programs whose distribution conditions are different, write to the author
252
+to ask for permission.  For software which is copyrighted by the Free
253
+Software Foundation, write to the Free Software Foundation; we sometimes
254
+make exceptions for this.  Our decision will be guided by the two goals
255
+of preserving the free status of all derivatives of our free software and
256
+of promoting the sharing and reuse of software generally.
257
+
258
+			    NO WARRANTY
259
+
260
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+REPAIR OR CORRECTION.
269
+
270
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+POSSIBILITY OF SUCH DAMAGES.
279
+
280
+		     END OF TERMS AND CONDITIONS
281
+
282
+	    How to Apply These Terms to Your New Programs
283
+
284
+  If you develop a new program, and you want it to be of the greatest
285
+possible use to the public, the best way to achieve this is to make it
286
+free software which everyone can redistribute and change under these terms.
287
+
288
+  To do so, attach the following notices to the program.  It is safest
289
+to attach them to the start of each source file to most effectively
290
+convey the exclusion of warranty; and each file should have at least
291
+the "copyright" line and a pointer to where the full notice is found.
292
+
293
+    <one line to give the program's name and a brief idea of what it does.>
294
+    Copyright (C) <year>  <name of author>
295
+
296
+    This program is free software; you can redistribute it and/or modify
297
+    it under the terms of the GNU General Public License as published by
298
+    the Free Software Foundation; either version 2 of the License, or
299
+    (at your option) any later version.
300
+
301
+    This program is distributed in the hope that it will be useful,
302
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304
+    GNU General Public License for more details.
305
+
306
+    You should have received a copy of the GNU General Public License
307
+    along with this program; if not, write to the Free Software
308
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
309
+
310
+
311
+Also add information on how to contact you by electronic and paper mail.
312
+
313
+If the program is interactive, make it output a short notice like this
314
+when it starts in an interactive mode:
315
+
316
+    Gnomovision version 69, Copyright (C) year name of author
317
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
+    This is free software, and you are welcome to redistribute it
319
+    under certain conditions; type `show c' for details.
320
+
321
+The hypothetical commands `show w' and `show c' should show the appropriate
322
+parts of the General Public License.  Of course, the commands you use may
323
+be called something other than `show w' and `show c'; they could even be
324
+mouse-clicks or menu items--whatever suits your program.
325
+
326
+You should also get your employer (if you work as a programmer) or your
327
+school, if any, to sign a "copyright disclaimer" for the program, if
328
+necessary.  Here is a sample; alter the names:
329
+
330
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
+
333
+  <signature of Ty Coon>, 1 April 1989
334
+  Ty Coon, President of Vice
335
+
336
+This General Public License does not permit incorporating your program into
337
+proprietary programs.  If your program is a subroutine library, you may
338
+consider it more useful to permit linking proprietary applications with the
339
+library.  If this is what you want to do, use the GNU Library General
340
+Public License instead of this License.

+ 199
- 0
ChangeLog View File

@@ -0,0 +1,199 @@
1
+0.3.8:
2
+-Fix: compile error with gcc 4.3
3
+-Fix: filenames containing some special characters including '?' work again
4
+-Fix: files added by 'add directory' or via context menu from konqueror and containing special characters will work now
5
+-Fix: vfat compatible output names won't contain '/' anymore
6
+
7
+0.3.7:
8
+-Add: sox plugin for aiff (thanks to Ron Fischler)
9
+-Add: toolame and twolame plugins for mp2 encoding
10
+-Add: amr decoding with ffmpeg
11
+-Add: Improved Polish translation (thanks to Michał Smoczyk)
12
+-Add: Reading writing composer/disc number tags for tta files
13
+-Add: A user script can be executed after each file has been converted (->config dialog->general->user script)
14
+-Add: Hungarian and Italian translations (thanks to the language teams at launchpad)
15
+-Fix: Flake plugin
16
+-Fix: Wavpack encoding
17
+-Fix: Dropping folders works again
18
+-Fix: Use the current language's decimal symbol for oggenc
19
+-Fix: Progress for lame abr/cbr encoding
20
+-Fix: mp4v2 works now
21
+-Fix: soundkonverter won't display wrong backends in the config dialog any more
22
+-Fix: And a lot more ...
23
+-Change: Use --vbr-new for lame
24
+-Change: Use extension to determine file type if no mime type file was found
25
+
26
+0.3.6:
27
+-Fix: Don't crash when using kio_audiocd
28
+-Fix: Show progress when using kio_audiocd
29
+-Fix: Show the soundkonverter window when started with --rip option
30
+-Fix: Handle remote files properly (http, smb, etc.)
31
+
32
+0.3.5:
33
+-Add: Portuguese translation (thanks to Equipa de Traduções 1 / www.portugal-a-programar.org)
34
+-Add: Dutch translation (thanks to Sander Thijsen)
35
+-Add: Improved Polish translation (thanks to Tomasz Argasiński)
36
+-Add: Improved Russian translation (thanks to Ivan)
37
+-Add: Support for flake (flac encoder)
38
+-Add: Support for aften (ac3 encoder)
39
+-Add: File format filter for adding a directory recursive
40
+-Add: Tag reading/writing support for wavpack, optimfrog, trueaudio
41
+-Add: Read Replay Gain tags for wavpack files
42
+-Fix: Write m4a tags properly
43
+-Fix: Some problems with the CD-Ripper dialog
44
+-Fix: File filter for the Replay Gain tool
45
+-Fix: Close soundKonverter faster
46
+-Change: Use 'cp' for copying local files (hopefully fixes the 'get file bug')
47
+
48
+0.3.4:
49
+-Add: Polish translation (thanks to qla)
50
+-Add: Brazilian Portuguese translation (thanks to Leandro Santiago da Silva)
51
+-Add: Spanish translation (thanks to Adrian Capel)
52
+-Add: Support for ttaenc and bonk
53
+-Add: Support for wvgain
54
+-Fix: Show Replay Gain of flac files correctly
55
+-Fix: Don't recalculate Replay Gain, if all files in an album show the same gain
56
+-Fix: Some minor fixes
57
+-Remove: Plugin update feature because my website is down
58
+
59
+0.3.3:
60
+-Add: Russian translation (thanks to Ivan)
61
+-Fix: Support autoconf >= 2.60 and automake >= 1.10 (thanks to Darwin Bautista)
62
+
63
+0.3.2:
64
+-Add: French translation (thanks to Placisfos)
65
+-Add: Support for TiMidity++ (decoding midi files)
66
+-Fix: Display notification when a backend doesn't provide progress data
67
+-Fix: Added audio/x-m4a mime type
68
+
69
+0.3.1:
70
+-Add: Support for aacgain
71
+-Add: Backend information in the readme file
72
+-Fix: 2 Bugs where plugins couldn't be found
73
+
74
+0.3:
75
+-Fix: Log viewer now gets updated correctly
76
+-Fix: Replay Gain plugins in single file mode read output correctly
77
+-Fix: File length is guessed, when tags can't be read (except remote files)
78
+-Fix: Some special characters in file names were not supported: "?", "#", "/"
79
+-Fix: Made english command line arguments work independent of the current language
80
+-Fix: Made notification for new backends and plugin updates work
81
+-Fix: Changing the output directory in simple mode would not be respected
82
+-Fix: Some minor fixes
83
+
84
+0.3 rc1:
85
+-Fix: Output names for CD tracks corrected
86
+-Fix: Added 'hack' for writing id3v2 genre and year properly
87
+-Fix: Reading backend output was improved
88
+-Fix: Conversion of remote files
89
+-Fix: Support for more kio slaves (system:/)
90
+-Fix: Bug in service menu creation
91
+-Fix: Improved the log viewer
92
+-Fix: Previous options wouldn't be loaded properly
93
+-Fix: Don't save last options, when started in invisible mode
94
+-Fix: Detection of profiles wouldn't work properly
95
+-Fix: Output directories sometimes got disarranged
96
+-Fix: Using SIGKILL instead of SIGTERM solves a few problems
97
+-Fix: Added check for cdparanoia in 'configure' (not tested)
98
+-Fix: Some minor bugs
99
+-Add: System tray icon, when starting soundKonverter in invisible mode
100
+-Add: Amarok script works now (but it's very worthy of improvement)
101
+-Add: German translation (plugin translations missing)
102
+
103
+0.3 beta1:
104
+-Fix: Backends configuration page is rebuild properly and some general fixes
105
+-Fix: Adding directories by dropping them, improved progress bar
106
+-Fix: Code cleanups in the Replay Gain tool
107
+-Fix: Always load the latest plugins available
108
+-Fix: Make the tool bar work
109
+-Add: Boyan Tabakov's patch for selecting cddb entries, if there were multiple found
110
+-Add: Quality parameter preview as tool tip of the quality spin box
111
+-Add: Force VFAT compatible output file names
112
+-Add: Automaticly save file list when adding new items and converting items
113
+-Change: The 'Copy directory structure' feature produces shorter paths
114
+-Change: Removed the 'Default output directory', 'By meta data' is now default
115
+-Change: Removed the about plugins dialog and added a plugins configuration page to the configuration dialog
116
+-Change: The backends process priority has been moved to the config dialog
117
+
118
+0.3 alpha1:
119
+Changed almost everything. The most important changes are:
120
+-Add: CD ripping (including cddb and support for multiple devices and simultaneous ripping)
121
+-Add: Converting multiple files at once
122
+-Add: Editing of output options and tags
123
+-Add: Support for discnumber and composer tags for ogg, mp3 and flac files
124
+-Add: Tagging support for wma, ape, mp4, aac, aa and rm files
125
+-Add: Support for Replay Gain in album mode including extended Replay Gain Tool
126
+-Add: Custom profiles (including user defined commands)
127
+-Add: Basic support for hybrid compression
128
+-Add: KIO support (partly)
129
+-Change: GUI cleanups
130
+A big change is that soundKonverter now uses mime types. Unfortunately this causes a lot of problems.
131
+Please report missing/wrong mime types!
132
+
133
+0.2:
134
+Nothing done!
135
+
136
+0.2 rc2:
137
+-Fix: Saving last options works now with different languages
138
+-Fix: Calculation of remaining time corrected
139
+-Fix: Replace / through \ when these characters are in tags that build the new file name
140
+-Fix: When %[aAbBcCgGnNtTyY] is in a tag, it will not be replaced by the tag any longer.
141
+-Fix: After a conversion is completed, the progress is calculated correct now.
142
+Big thanks to Peter.
143
+
144
+0.2 rc1:
145
+-Fix: Several bugs
146
+-Add: Last options are saved now (Thx Angelo)
147
+-Add: German Translation
148
+
149
+0.2 beta2:
150
+-Fix: The output directory text box now isn't cleared after finishing a job. Thx Miguel
151
+-Fix: The backend outputs are now read
152
+-Fix: Setting the backend priority works now. For setting to a higher priority the root password is asked (kdesu)
153
+-Fix: The toolbar works now correct
154
+-Change: The menu can't be hidden now
155
+-Change: The userinterface has been changed a bit. Thx Miguel
156
+-Change: The Cue Editor now adds 0,5 sec. to each track
157
+-Add: Spanish translation (partly) Thx Adrian Capel
158
+
159
+0.2 beta1:
160
+-Fix: Moving the columns in the file list works now
161
+-Change: You can now extend soundkonverter by plugins
162
+-Change: We have now a menu and a (not complete working) toolbar
163
+-Add: Support for ReplayGain
164
+-Add: Convert the next file if an error happens
165
+-Add: Load the last file list, if soundkonverter crashed
166
+-Add: Scan for new backends and plugins on startup
167
+-Add: A ReplayGain tool for tagging/untagging files
168
+-Add: A cue-Editor - just a supplement to all these tag editors out there - documentation will follow
169
+-Add: An amaroK-Script for easily accessing soundKonverter from out of amaroK
170
+-Add: Support for creating output directories by the file's tags/copy the file's source directory structure
171
+
172
+0.1:
173
+-Fix: Some spelling errors
174
+-Fix: A compilation error
175
+(Nothing really new, there is no need to upgrade)
176
+
177
+0.1 RC1:
178
+-Fix: Installation of the servicemenu file
179
+-Fix: Support for wma decoder if only mplayer was found
180
+-Fix: 'Default' button in configuration Dialog
181
+-Fix: Progressbar
182
+-Change: Modifyed the userinterface a little bit
183
+-Change: English handbook is now complete
184
+-Add: German handbook
185
+
186
+0.1 beta2 update:
187
+-Fix: Compilation error
188
+-Fix: Scan for backends automatic
189
+
190
+0.1 beta2:
191
+-Fix: KUniqueApplication works now
192
+-Fix: A few irritations
193
+-Add: Formats: ape, mpc
194
+-Add: Translation: German
195
+-Add: Handbook: English (not jet complete)
196
+-Add: Some small features
197
+
198
+0.1 beta1:
199
+Initial Release

+ 167
- 0
INSTALL View File

@@ -0,0 +1,167 @@
1
+Basic Installation
2
+==================
3
+
4
+   These are generic installation instructions.
5
+
6
+   The `configure' shell script attempts to guess correct values for
7
+various system-dependent variables used during compilation.  It uses
8
+those values to create a `Makefile' in each directory of the package.
9
+It may also create one or more `.h' files containing system-dependent
10
+definitions.  Finally, it creates a shell script `config.status' that
11
+you can run in the future to recreate the current configuration, a file
12
+`config.cache' that saves the results of its tests to speed up
13
+reconfiguring, and a file `config.log' containing compiler output
14
+(useful mainly for debugging `configure').
15
+
16
+   If you need to do unusual things to compile the package, please try
17
+to figure out how `configure' could check whether to do them, and mail
18
+diffs or instructions to the address given in the `README' so they can
19
+be considered for the next release.  If at some point `config.cache'
20
+contains results you don't want to keep, you may remove or edit it.
21
+
22
+   The file `configure.in' is used to create `configure' by a program
23
+called `autoconf'.  You only need `configure.in' if you want to change
24
+it or regenerate `configure' using a newer version of `autoconf'.
25
+
26
+The simplest way to compile this package is:
27
+
28
+  1. `cd' to the directory containing the package's source code and type
29
+     `./configure' to configure the package for your system.  If you're
30
+     using `csh' on an old version of System V, you might need to type
31
+     `sh ./configure' instead to prevent `csh' from trying to execute
32
+     `configure' itself.
33
+
34
+     Running `configure' takes a while.  While running, it prints some
35
+     messages telling which features it is checking for.
36
+
37
+  2. Type `make' to compile the package.
38
+
39
+  3. Type `make install' to install the programs and any data files and
40
+     documentation.
41
+
42
+  4. You can remove the program binaries and object files from the
43
+     source code directory by typing `make clean'.  
44
+
45
+Compilers and Options
46
+=====================
47
+
48
+   Some systems require unusual options for compilation or linking that
49
+the `configure' script does not know about.  You can give `configure'
50
+initial values for variables by setting them in the environment.  Using
51
+a Bourne-compatible shell, you can do that on the command line like
52
+this:
53
+     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
54
+
55
+Or on systems that have the `env' program, you can do it like this:
56
+     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
57
+
58
+Compiling For Multiple Architectures
59
+====================================
60
+
61
+   You can compile the package for more than one kind of computer at the
62
+same time, by placing the object files for each architecture in their
63
+own directory.  To do this, you must use a version of `make' that
64
+supports the `VPATH' variable, such as GNU `make'.  `cd' to the
65
+directory where you want the object files and executables to go and run
66
+the `configure' script.  `configure' automatically checks for the
67
+source code in the directory that `configure' is in and in `..'.
68
+
69
+   If you have to use a `make' that does not supports the `VPATH'
70
+variable, you have to compile the package for one architecture at a time
71
+in the source code directory.  After you have installed the package for
72
+one architecture, use `make distclean' before reconfiguring for another
73
+architecture.
74
+
75
+Installation Names
76
+==================
77
+
78
+   By default, `make install' will install the package's files in
79
+`/usr/local/bin', `/usr/local/man', etc.  You can specify an
80
+installation prefix other than `/usr/local' by giving `configure' the
81
+option `--prefix=PATH'.
82
+
83
+   You can specify separate installation prefixes for
84
+architecture-specific files and architecture-independent files.  If you
85
+give `configure' the option `--exec-prefix=PATH', the package will use
86
+PATH as the prefix for installing programs and libraries.
87
+Documentation and other data files will still use the regular prefix.
88
+
89
+   If the package supports it, you can cause programs to be installed
90
+with an extra prefix or suffix on their names by giving `configure' the
91
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
92
+
93
+Optional Features
94
+=================
95
+
96
+   Some packages pay attention to `--enable-FEATURE' options to
97
+`configure', where FEATURE indicates an optional part of the package.
98
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
99
+is something like `gnu-as' or `x' (for the X Window System).  The
100
+`README' should mention any `--enable-' and `--with-' options that the
101
+package recognizes.
102
+
103
+   For packages that use the X Window System, `configure' can usually
104
+find the X include and library files automatically, but if it doesn't,
105
+you can use the `configure' options `--x-includes=DIR' and
106
+`--x-libraries=DIR' to specify their locations.
107
+
108
+Specifying the System Type
109
+==========================
110
+
111
+   There may be some features `configure' can not figure out
112
+automatically, but needs to determine by the type of host the package
113
+will run on.  Usually `configure' can figure that out, but if it prints
114
+a message saying it can not guess the host type, give it the
115
+`--host=TYPE' option.  TYPE can either be a short name for the system
116
+type, such as `sun4', or a canonical name with three fields:
117
+     CPU-COMPANY-SYSTEM
118
+
119
+See the file `config.sub' for the possible values of each field.  If
120
+`config.sub' isn't included in this package, then this package doesn't
121
+need to know the host type.
122
+
123
+   If you are building compiler tools for cross-compiling, you can also
124
+use the `--target=TYPE' option to select the type of system they will
125
+produce code for and the `--build=TYPE' option to select the type of
126
+system on which you are compiling the package.
127
+
128
+Sharing Defaults
129
+================
130
+
131
+   If you want to set default values for `configure' scripts to share,
132
+you can create a site shell script called `config.site' that gives
133
+default values for variables like `CC', `cache_file', and `prefix'.
134
+`configure' looks for `PREFIX/share/config.site' if it exists, then
135
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
136
+`CONFIG_SITE' environment variable to the location of the site script.
137
+A warning: not all `configure' scripts look for a site script.
138
+
139
+Operation Controls
140
+==================
141
+
142
+   `configure' recognizes the following options to control how it
143
+operates.
144
+
145
+`--cache-file=FILE'
146
+     Use and save the results of the tests in FILE instead of
147
+     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
148
+     debugging `configure'.
149
+
150
+`--help'
151
+     Print a summary of the options to `configure', and exit.
152
+
153
+`--quiet'
154
+`--silent'
155
+`-q'
156
+     Do not print messages saying which checks are being made.
157
+
158
+`--srcdir=DIR'
159
+     Look for the package's source code in directory DIR.  Usually
160
+     `configure' can determine that directory automatically.
161
+
162
+`--version'
163
+     Print the version of Autoconf used to generate the `configure'
164
+     script, and exit.
165
+
166
+`configure' also accepts some other, not widely useful, options.
167
+

+ 22
- 0
Makefile.am View File

@@ -0,0 +1,22 @@
1
+SUBDIRS = $(TOPSUBDIRS)
2
+
3
+$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
4
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
5
+
6
+$(top_srcdir)/subdirs:
7
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
8
+
9
+$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
10
+	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
11
+
12
+MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 
13
+
14
+package-messages:
15
+	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
16
+	$(MAKE) -C po merge
17
+
18
+EXTRA_DIST = admin COPYING configure.in.in
19
+
20
+dist-hook:
21
+	cd $(top_distdir) && perl admin/am_edit -padmin
22
+	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

+ 10
- 0
Makefile.cvs View File

@@ -0,0 +1,10 @@
1
+all: 
2
+	@echo "This Makefile is only for the CVS repository"
3
+	@echo "This will be deleted before making the distribution"
4
+	@echo ""
5
+	$(MAKE) -f admin/Makefile.common cvs
6
+
7
+dist:
8
+	$(MAKE) -f admin/Makefile.common dist
9
+
10
+.SILENT:

+ 0
- 0
NEWS View File


+ 160
- 0
README View File

@@ -0,0 +1,160 @@
1
+
2
+CONTENT
3
+=======
4
+1. About soundKonverter
5
+2. Backends
6
+3. Compile soundKonverter
7
+4. Known bugs
8
+
9
+
10
+1. About soundKonverter 0.3.8
11
+=============================
12
+ - Released by Daniel Faust (hessijames@gmail.com) under the terms of the GPL v2 -
13
+
14
+soundKonverter is frontend to various audio converters.
15
+
16
+The key features are:
17
+- Audio conversion
18
+- Replay Gain calculation
19
+- CD ripping
20
+
21
+It is extendable by plugins and supports many backends:
22
+ En-/decoding: oggenc/oggdec, lame, gogo, faac/faad, mppenc/mppdec, flac, mac, mplayer, ffmpeg, shorten, ttaenc, bonk, ofr, ofs, wavpack, lac, lpac, speexenc/speexdec, timidity
23
+ Replay Gain: vorbisgain, mp3gain, aacgain, replaygain (MusePack), metaflac, wvgain
24
+ CD ripping: kio_audiocd, cdda2wav, cdparanoia
25
+This way you can convert between various audio formats:
26
+ Decoding: ogg, mp3, mp2, m4a/mp4, aac, 3gp, mpc/mp+, flac, ape, wma, asf/asx, ra, rv, rm, avi, mpeg, wmv, qt/mov, flv, ac3, au/snd, shn, tta, bonk, ofr, ofs, wv, la, pac, spx, mid, mod/s3m/stm/ult/uni/xm/m15/mtm/669/it, wav
27
+ Encoing: ogg, mp3, mp2, m4a, aac, mpc, flac, ape, ra, ac3, au, shn, tta, bonk, ofr, ofs, wv, la, pac, spx, wav
28
+
29
+soundKonverter supports reading and writing tags for many formats, so the tags are preserved when converting files.
30
+It comes with an Amarok script that allows you to easily transcode files when transfering to your media device.
31
+And it is avalable in English, German, French, Spanish, Russian, Polish and Brazilian Portuguese.
32
+
33
+2. Backends
34
+===========
35
+
36
+110.oggvorbis.soundkonverter.xml
37
+    http://www.vorbis.com
38
+
39
+120.lame.soundkonverter.xml
40
+    http://lame.sf.net
41
+
42
+122.twolame.soundkonverter.xml
43
+    http://www.twolame.org
44
+
45
+123.toolame.soundkonverter.xml
46
+    http://toolame.sourceforge.net
47
+
48
+125.gogo.soundkonverter.xml
49
+    http://homepage2.nifty.com/kei-i/
50
+
51
+127.faac.soundkonverter.xml
52
+    http://www.audiocoding.com
53
+
54
+130.musepack.soundkonverter.xml
55
+    http://www.musepack.net
56
+
57
+135.flac.soundkonverter.xml
58
+    http://flac.sourceforge.net
59
+
60
+137.mac.soundkonverter.xml
61
+    http://www.monkeysaudio.com
62
+
63
+140.mplayer.soundkonverter.xml
64
+    http://www.mplayerhq.hu
65
+
66
+145.ffmpeg.soundkonverter.xml
67
+    http://ffmpeg.mplayerhq.hu
68
+
69
+146.ffmpeg-lossless.soundkonverter.xml
70
+    Same as above, splitted just for internal use!
71
+
72
+150.shorten.soundkonverter.xml
73
+    http://www.hornig.net/shorten.html
74
+
75
+151.tta.soundkonverter.xml
76
+    http://tta.sourceforge.net
77
+
78
+153.bonk.soundkonverter.xml
79
+    http://www.logarithmic.net/pfh/bonk/
80
+
81
+155.optimfrog.soundkonverter.xml
82
+    http://www.losslessaudio.org
83
+
84
+156.optimfrog-dualstream.soundkonverter.xml
85
+    http://www.losslessaudio.org
86
+
87
+158.wavpack.soundkonverter.xml
88
+    http://www.wavpack.com
89
+
90
+160.lac.soundkonverter.xml
91
+    Important: Rename the encoder "la" to "lac" because "la" is already used on linux!
92
+    http://www.lossless-audio.com
93
+
94
+165.lpac.soundkonverter.xml
95
+    http://www.nue.tu-berlin.de/wer/liebchen/lpac.html
96
+
97
+170.speex.soundkonverter.xml
98
+    http://www.speex.org
99
+
100
+180.timidity.soundkonverter.xml
101
+    http://timidity.sourceforge.net
102
+
103
+210.vorbisgain.soundkonverter.xml
104
+    http://sjeng.org/vorbisgain.html
105
+
106
+220.mp3gain.soundkonverter.xml
107
+    http://mp3gain.sourceforge.net
108
+
109
+225.aacgain.soundkonverter.xml
110
+    http://altosdesign.com/aacgain/
111
+
112
+230.replaygain.soundkonverter.xml
113
+    This is the Replay Gain tool for musepack files!
114
+    http://www.musepack.net
115
+
116
+240.metaflac.soundkonverter.xml
117
+    http://flac.sourceforge.net
118
+
119
+250.wvgain.soundkonverter.xml
120
+    http://www.wavpack.com
121
+
122
+310.cdda2wav.soundkonverter.xml
123
+    http://www.cdda2wav.de
124
+
125
+320.cdparanoia.soundkonverter.xml
126
+    http://xiph.org/paranoia/
127
+
128
+
129
+3. Compile soundKonverter
130
+=========================
131
+
132
+In order to compile soundKonverter, you need:
133
+- taglib-devel 1.4.0 (libtaglib-devel on mandriva)
134
+- cdparanoia (libcdda-devel on mandriva, cdparanoia-devel on fedora)
135
+
136
+On some operating systems, the cdda check (cdparanoia) in ./configure may fail.
137
+This is because sometimes the header files are at another location (eg. /usr/include/cdda instead of /usr/include on ark linux).
138
+In this case remove the cdparanoia check from the configure.in.in file.
139
+
140
+
141
+4. Known bugs
142
+=============
143
+
144
+- The options tabs get out of sync in some very rare cases
145
+- taglib check in ./configure may fail
146
+
147
+Backends that's output cant't be read:
148
+- The progress of some backends can't be read properly
149
+
150
+A big change is that soundKonverter now uses mime types.
151
+If you find problems, please tell me about it.
152
+
153
+
154
+Thanks to all Open Source programmers for their apps that I used to get some code.
155
+Especially Kaffeine and Amarok.
156
+
157
+Have a lot of fun.
158
+
159
+Please send bug reports directly to hessijames@gmail.com
160
+

+ 0
- 0
TODO View File


+ 11810
- 0
acinclude.m4
File diff suppressed because it is too large
View File


+ 259
- 0
config.h.in View File

@@ -0,0 +1,259 @@
1
+/* config.h.in.  Generated from configure.in by autoheader.  */
2
+
3
+/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
4
+#undef HAVE_CARBON_CARBON_H
5
+
6
+/* Define to 1 if you have the <cdda_interface.h> header file. */
7
+#undef HAVE_CDDA_INTERFACE_H
8
+
9
+/* Define if you have the CoreAudio API */
10
+#undef HAVE_COREAUDIO
11
+
12
+/* Define to 1 if you have the <crt_externs.h> header file. */
13
+#undef HAVE_CRT_EXTERNS_H
14
+
15
+/* Defines if your system has the crypt function */
16
+#undef HAVE_CRYPT
17
+
18
+/* Define to 1 if you have the <dlfcn.h> header file. */
19
+#undef HAVE_DLFCN_H
20
+
21
+/* Define to 1 if you have the <inttypes.h> header file. */
22
+#undef HAVE_INTTYPES_H
23
+
24
+/* Define if you have libjpeg */
25
+#undef HAVE_LIBJPEG
26
+
27
+/* Define if you have libpng */
28
+#undef HAVE_LIBPNG
29
+
30
+/* Define if you have a working libpthread (will enable threaded code) */
31
+#undef HAVE_LIBPTHREAD
32
+
33
+/* Define if you have libz */
34
+#undef HAVE_LIBZ
35
+
36
+/* Define to 1 if you have the <memory.h> header file. */
37
+#undef HAVE_MEMORY_H
38
+
39
+/* have mp4v2 */
40
+#undef HAVE_MP4V2
41
+
42
+/* Define to 1 if you have the <mp4.h> header file. */
43
+#undef HAVE_MP4_H
44
+
45
+/* Define if your system needs _NSGetEnviron to set up the environment */
46
+#undef HAVE_NSGETENVIRON
47
+
48
+/* Define if you have res_init */
49
+#undef HAVE_RES_INIT
50
+
51
+/* Define if you have the res_init prototype */
52
+#undef HAVE_RES_INIT_PROTO
53
+
54
+/* Define if you have a STL implementation by SGI */
55
+#undef HAVE_SGI_STL
56
+
57
+/* Define to 1 if you have the `snprintf' function. */
58
+#undef HAVE_SNPRINTF
59
+
60
+/* Define to 1 if you have the <stdint.h> header file. */
61
+#undef HAVE_STDINT_H
62
+
63
+/* Define to 1 if you have the <stdlib.h> header file. */
64
+#undef HAVE_STDLIB_H
65
+
66
+/* Define to 1 if you have the <strings.h> header file. */
67
+#undef HAVE_STRINGS_H
68
+
69
+/* Define to 1 if you have the <string.h> header file. */
70
+#undef HAVE_STRING_H
71
+
72
+/* Define if you have strlcat */
73
+#undef HAVE_STRLCAT
74
+
75
+/* Define if you have the strlcat prototype */
76
+#undef HAVE_STRLCAT_PROTO
77
+
78
+/* Define if you have strlcpy */
79
+#undef HAVE_STRLCPY
80
+
81
+/* Define if you have the strlcpy prototype */
82
+#undef HAVE_STRLCPY_PROTO
83
+
84
+/* Define to 1 if you have the <systems.h> header file. */
85
+#undef HAVE_SYSTEMS_H
86
+
87
+/* Define to 1 if you have the <sys/bitypes.h> header file. */
88
+#undef HAVE_SYS_BITYPES_H
89
+
90
+/* Define to 1 if you have the <sys/stat.h> header file. */
91
+#undef HAVE_SYS_STAT_H
92
+
93
+/* Define to 1 if you have the <sys/types.h> header file. */
94
+#undef HAVE_SYS_TYPES_H
95
+
96
+/* have TagLib */
97
+#undef HAVE_TAGLIB
98
+
99
+/* Define to 1 if you have the <unistd.h> header file. */
100
+#undef HAVE_UNISTD_H
101
+
102
+/* Define to 1 if you have the `vsnprintf' function. */
103
+#undef HAVE_VSNPRINTF
104
+
105
+/* Suffix for lib directories */
106
+#undef KDELIBSUFF
107
+
108
+/* Define a safe value for MAXPATHLEN */
109
+#undef KDEMAXPATHLEN
110
+
111
+/* Name of package */
112
+#undef PACKAGE
113
+
114
+/* Define to the address where bug reports for this package should be sent. */
115
+#undef PACKAGE_BUGREPORT
116
+
117
+/* Define to the full name of this package. */
118
+#undef PACKAGE_NAME
119
+
120
+/* Define to the full name and version of this package. */
121
+#undef PACKAGE_STRING
122
+
123
+/* Define to the one symbol short name of this package. */
124
+#undef PACKAGE_TARNAME
125
+
126
+/* Define to the version of this package. */
127
+#undef PACKAGE_VERSION
128
+
129
+/* The size of `char *', as computed by sizeof. */
130
+#undef SIZEOF_CHAR_P
131
+
132
+/* The size of `int', as computed by sizeof. */
133
+#undef SIZEOF_INT
134
+
135
+/* The size of `long', as computed by sizeof. */
136
+#undef SIZEOF_LONG
137
+
138
+/* The size of `short', as computed by sizeof. */
139
+#undef SIZEOF_SHORT
140
+
141
+/* The size of `size_t', as computed by sizeof. */
142
+#undef SIZEOF_SIZE_T
143
+
144
+/* The size of `unsigned long', as computed by sizeof. */
145
+#undef SIZEOF_UNSIGNED_LONG
146
+
147
+/* Define to 1 if you have the ANSI C header files. */
148
+#undef STDC_HEADERS
149
+
150
+/* Version number of package */
151
+#undef VERSION
152
+
153
+/* Defined if compiling without arts */
154
+#undef WITHOUT_ARTS
155
+
156
+/* Define to 1 if your processor stores words with the most significant byte
157
+   first (like Motorola and SPARC, unlike Intel and VAX). */
158
+#undef WORDS_BIGENDIAN
159
+
160
+/*
161
+ * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
162
+ * headers and I'm too lazy to write a configure test as long as only
163
+ * unixware is related
164
+ */
165
+#ifdef _UNIXWARE
166
+#define HAVE_BOOLEAN
167
+#endif
168
+
169
+
170
+
171
+/*
172
+ * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
173
+ * that defines bzero.
174
+ */
175
+
176
+#if defined(_AIX)
177
+#include <strings.h>
178
+#endif
179
+
180
+
181
+
182
+#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
183
+# include <sys/time.h>
184
+# include <crt_externs.h>
185
+# define environ (*_NSGetEnviron())
186
+#endif
187
+
188
+
189
+
190
+#if !defined(HAVE_RES_INIT_PROTO)
191
+#ifdef __cplusplus
192
+extern "C" {
193
+#endif
194
+int res_init(void);
195
+#ifdef __cplusplus
196
+}
197
+#endif
198
+#endif
199
+
200
+
201
+
202
+#if !defined(HAVE_STRLCAT_PROTO)
203
+#ifdef __cplusplus
204
+extern "C" {
205
+#endif
206
+unsigned long strlcat(char*, const char*, unsigned long);
207
+#ifdef __cplusplus
208
+}
209
+#endif
210
+#endif
211
+
212
+
213
+
214
+#if !defined(HAVE_STRLCPY_PROTO)
215
+#ifdef __cplusplus
216
+extern "C" {
217
+#endif
218
+unsigned long strlcpy(char*, const char*, unsigned long);
219
+#ifdef __cplusplus
220
+}
221
+#endif
222
+#endif
223
+
224
+
225
+
226
+/*
227
+ * On HP-UX, the declaration of vsnprintf() is needed every time !
228
+ */
229
+
230
+#if !defined(HAVE_VSNPRINTF) || defined(hpux)
231
+#if __STDC__
232
+#include <stdarg.h>
233
+#include <stdlib.h>
234
+#else
235
+#include <varargs.h>
236
+#endif
237
+#ifdef __cplusplus
238
+extern "C"
239
+#endif
240
+int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
241
+#ifdef __cplusplus
242
+extern "C"
243
+#endif
244
+int snprintf(char *str, size_t n, char const *fmt, ...);
245
+#endif
246
+
247
+
248
+
249
+#if defined(__SVR4) && !defined(__svr4__)
250
+#define __svr4__ 1
251
+#endif
252
+
253
+
254
+/* type to use in place of socklen_t if not defined */
255
+#undef kde_socklen_t
256
+
257
+/* type to use in place of socklen_t if not defined (deprecated, use
258
+   kde_socklen_t) */
259
+#undef ksize_t

+ 2
- 0
configure.files View File

@@ -0,0 +1,2 @@
1
+./admin/configure.in.min
2
+configure.in.in

+ 282
- 0
configure.in View File

@@ -0,0 +1,282 @@
1
+dnl =======================================================
2
+dnl FILE: ./admin/configure.in.min
3
+dnl =======================================================
4
+
5
+dnl    This file is part of the KDE libraries/packages
6
+dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
7
+ 
8
+dnl    This file is free software; you can redistribute it and/or
9
+dnl    modify it under the terms of the GNU Library General Public
10
+dnl    License as published by the Free Software Foundation; either
11
+dnl    version 2 of the License, or (at your option) any later version.
12
+ 
13
+dnl    This library is distributed in the hope that it will be useful,
14
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
+dnl    Library General Public License for more details.
17
+ 
18
+dnl    You should have received a copy of the GNU Library General Public License
19
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
20
+dnl    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
+dnl    Boston, MA 02110-1301, USA.
22
+
23
+# Original Author was Kalle@kde.org
24
+# I lifted it in some mater. (Stephan Kulow)
25
+# I used much code from Janos Farkas
26
+
27
+dnl Process this file with autoconf to produce a configure script.
28
+
29
+AC_INIT(acinclude.m4) dnl a source file from your sub dir
30
+
31
+dnl This is so we can use kde-common
32
+AC_CONFIG_AUX_DIR(admin)
33
+
34
+dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
35
+unset CDPATH
36
+
37
+dnl Checking host/target/build systems, for make, install etc.
38
+AC_CANONICAL_SYSTEM 
39
+dnl Perform program name transformation
40
+AC_ARG_PROGRAM
41
+
42
+dnl Automake doc recommends to do this only here. (Janos)
43
+AM_INIT_AUTOMAKE(soundkonverter, 0.3.7) dnl searches for some needed programs
44
+
45
+KDE_SET_PREFIX
46
+
47
+dnl generate the config header
48
+AM_CONFIG_HEADER(config.h) dnl at the distribution this done
49
+
50
+dnl Checks for programs.
51
+AC_CHECK_COMPILERS
52
+AC_ENABLE_SHARED(yes)
53
+AC_ENABLE_STATIC(no)
54
+KDE_PROG_LIBTOOL
55
+
56
+dnl for NLS support. Call them in this order!
57
+dnl WITH_NLS is for the po files
58
+AM_KDE_WITH_NLS
59
+
60
+KDE_USE_QT(3.2.0)
61
+AC_PATH_KDE
62
+dnl =======================================================
63
+dnl FILE: configure.in.in
64
+dnl =======================================================
65
+
66
+#MIN_CONFIG(3.2.0)
67
+
68
+dnl PACKAGE set before
69
+AC_C_BIGENDIAN
70
+AC_CHECK_KDEMAXPATHLEN
71
+
72
+
73
+###############################################################################
74
+# BEGIN CDPARANOIA CHECK
75
+###############################################################################
76
+#
77
+#AC_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
78
+#
79
+#if test "$with_cdparanoia" != "yes" ; then
80
+#    soundkonverter_error_nocdparanoia=yes
81
+#    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
82
+#    no_soundkonverter=yes
83
+#
84
+#    echo ""
85
+#    echo "-----------------------------------------"
86
+#    echo "ERROR: Could not find cdparanoia headers."
87
+#    echo "-----------------------------------------"
88
+#    echo ""
89
+#
90
+#    AC_MSG_ERROR([could not find cdparanoia headers])
91
+#fi
92
+#
93
+###############################################################################
94
+# END CDPARANOIA CHECK
95
+###############################################################################
96
+
97
+
98
+dnl -------------------------------------
99
+dnl       cdparanoia check
100
+dnl -------------------------------------
101
+
102
+AC_CHECK_HEADERS(cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
103
+
104
+dnl ----------------------------------
105
+dnl    Can soundkonverter be compiled?
106
+dnl ----------------------------------
107
+
108
+if test x$have_paranoia != xyes; then
109
+    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
110
+    no_paranoia=yes
111
+fi
112
+
113
+###############################################################################
114
+# BEGIN TAGLIB CHECK
115
+###############################################################################
116
+
117
+TAGLIB_REQ_VERSION="1.4.0";
118
+AC_DEFUN([VERSION_TO_NUMBER], [`$1 | awk 'BEGIN { FS = "."; } { printf "%d",  ([$]1* 1000 + [$]2) * 1000 + [$]3;}'`])
119
+
120
+AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, no)
121
+
122
+if test "x$TAGLIB_CONFIG" = "xno" ; then
123
+    soundkonverter_error_notaglib=yes
124
+    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
125
+    no_soundkonverter=yes
126
+else
127
+    AC_DEFINE(HAVE_TAGLIB, 1, [have TagLib])
128
+    taglib_includes=[`$TAGLIB_CONFIG --cflags`]
129
+    taglib_libs=[`$TAGLIB_CONFIG --libs`]
130
+    taglib_version=[`$TAGLIB_CONFIG --version`]
131
+
132
+    if test VERSION_TO_NUMBER(echo $taglib_version) -lt VERSION_TO_NUMBER(echo $TAGLIB_REQ_VERSION); then
133
+        soundkonverter_error_taglibold=yes
134
+        DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
135
+        no_soundkonverter=yes
136
+    fi
137
+fi
138
+
139
+AC_SUBST(taglib_includes)
140
+AC_SUBST(taglib_libs)
141
+
142
+###############################################################################
143
+# END TAGLIB CHECK
144
+###############################################################################
145
+
146
+
147
+###############################################################################
148
+# BEGIN MP4V2 CHECK
149
+###############################################################################
150
+# m4a/aac tag reading and writing needs libmp4v2 from faad2 or better mpeg4ip
151
+
152
+AC_ARG_WITH(mp4v2,
153
+    AC_HELP_STRING([--with-mp4v2],[build soundkonverter with M4A/AAC tag support from mp4v2/faad2]),
154
+    [have_mp4v2=$withval],
155
+    [have_mp4v2=no]
156
+)
157
+
158
+AC_ARG_WITH(mp4v2-dir,
159
+    AC_HELP_STRING([--with-mp4v2-dir],[path to mp4v2  [default=/usr]]),
160
+    [mp4v2_dir="$withval"],
161
+    [mp4v2_dir=/usr]
162
+)
163
+
164
+if test "$have_mp4v2" != "no"; then
165
+    AC_LANG_SAVE
166
+    AC_LANG_CPLUSPLUS
167
+    ac_cxxflags_save=$CXXFLAGS
168
+    CXXFLAGS="$CXXFLAGS -I$mp4v2_dir/include"
169
+    ac_ldflags_save=$LDFLAGS
170
+    LDFLAGS="$LDFLAGS -L$mp4v2_dir/lib"
171
+
172
+    # not even everyone using faad2 has <systems.h>
173
+    if ! test -f config.h; then
174
+        echo "#include \"confdefs.h\"" > config.h
175
+    fi
176
+    ac_cppflags_save=$CPPFLAGS
177
+    CPPFLAGS="$CPPFLAGS -I."
178
+    AC_CHECK_HEADERS(systems.h)
179
+    AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
180
+        [#ifdef HAVE_SYSTEMS_H
181
+         # include <systems.h>
182
+         #endif
183
+        ])
184
+
185
+    AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
186
+
187
+    if test "$have_mp4v2" = "yes" -a "$have_mp4_h" = "yes"; then
188
+        AC_DEFINE(HAVE_MP4V2, 1, [have mp4v2])
189
+        MP4V2_INCLUDES="-I$mp4v2_dir/include"
190
+        MP4V2_LIBS="-L$mp4v2_dir/lib -lmp4v2"
191
+    else
192
+        have_mp4v2=no
193
+    fi
194
+
195
+    CPPFLAGS=$ac_cppflags_save
196
+    CXXFLAGS=$ac_cxxflags_save
197
+    LDFLAGS=$ac_ldflags_save
198
+    AC_LANG_RESTORE
199
+fi
200
+
201
+AC_SUBST(MP4V2_INCLUDES)
202
+AC_SUBST(MP4V2_LIBS)
203
+
204
+AM_CONDITIONAL(with_mp4v2, [test x$have_mp4v2 != xno ])
205
+
206
+###############################################################################
207
+# END MP4V2 CHECK
208
+###############################################################################
209
+
210
+KDE_CREATE_SUBDIRSLIST
211
+AC_CONFIG_FILES([ Makefile ])
212
+AC_CONFIG_FILES([ doc/Makefile ])
213
+AC_CONFIG_FILES([ doc/en/Makefile ])
214
+AC_CONFIG_FILES([ po/Makefile ])
215
+AC_CONFIG_FILES([ src/Makefile ])
216
+AC_CONFIG_FILES([ src/amarokscript/Makefile ])
217
+AC_CONFIG_FILES([ src/metadata/Makefile ])
218
+AC_CONFIG_FILES([ src/metadata/aac/Makefile ])
219
+AC_CONFIG_FILES([ src/metadata/ape/Makefile ])
220
+AC_CONFIG_FILES([ src/metadata/asf/Makefile ])
221
+AC_CONFIG_FILES([ src/metadata/audible/Makefile ])
222
+AC_CONFIG_FILES([ src/metadata/m4a/Makefile ])
223
+AC_CONFIG_FILES([ src/metadata/mp4/Makefile ])
224
+AC_CONFIG_FILES([ src/metadata/optimfrog/Makefile ])
225
+AC_CONFIG_FILES([ src/metadata/rmff/Makefile ])
226
+AC_CONFIG_FILES([ src/metadata/speex/Makefile ])
227
+AC_CONFIG_FILES([ src/metadata/trueaudio/Makefile ])
228
+AC_CONFIG_FILES([ src/metadata/wav/Makefile ])
229
+AC_CONFIG_FILES([ src/metadata/wavpack/Makefile ])
230
+AC_CONFIG_FILES([ src/pics/Makefile ])
231
+AC_CONFIG_FILES([ src/pluginloader/Makefile ])
232
+AC_CONFIG_FILES([ src/plugins/Makefile ])
233
+AC_CONFIG_FILES([ src/plugins/format_infos/Makefile ])
234
+AC_CONFIG_FILES([ src/plugins/mime_types/Makefile ])
235
+AC_CONFIG_FILES([ src/plugins/plugins/Makefile ])
236
+AC_CONFIG_FILES([ src/plugins/rohling/Makefile ])
237
+AC_OUTPUT
238
+# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
239
+if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
240
+  # And if so, warn when they don't match
241
+  if test "$kde_libs_prefix" != "$given_prefix"; then
242
+    # And if kde doesn't know about the prefix yet
243
+    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
244
+    if test $? -ne 0; then
245
+      echo ""
246
+      echo "Warning: you chose to install this package in $given_prefix,"
247
+      echo "but KDE was found in $kde_libs_prefix."
248
+      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
249
+      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
250
+      echo "Then restart KDE."
251
+      echo ""
252
+    fi
253
+  fi
254
+fi
255
+
256
+if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
257
+  echo ""
258
+  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
259
+  echo "was not included. Therefore, GCC symbol visibility support remains disabled."
260
+  echo ""
261
+  echo "For better performance, consider including the Qt visibility supporting patch"
262
+  echo "located at:"
263
+  echo ""
264
+  echo "http://bugs.kde.org/show_bug.cgi?id=109386"
265
+  echo ""
266
+  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
267
+  echo "everything will continue to work just fine without it."
268
+  echo ""
269
+fi
270
+
271
+if test "$all_tests" = "bad"; then
272
+  if test ! "$cache_file" = "/dev/null"; then
273
+    echo ""
274
+    echo "Please remove the file $cache_file after changing your setup"
275
+    echo "so that configure will find the changes next time."
276
+    echo ""
277
+  fi
278
+else
279
+  echo ""
280
+  echo "Good - your configure finished. Start make now"
281
+  echo ""
282
+fi

+ 144
- 0
configure.in.in View File

@@ -0,0 +1,144 @@
1
+#MIN_CONFIG(3.2.0)
2
+
3
+AM_INIT_AUTOMAKE(soundkonverter, 0.3.7)
4
+AC_C_BIGENDIAN
5
+AC_CHECK_KDEMAXPATHLEN
6
+
7
+
8
+###############################################################################
9
+# BEGIN CDPARANOIA CHECK
10
+###############################################################################
11
+#
12
+#AC_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
13
+#
14
+#if test "$with_cdparanoia" != "yes" ; then
15
+#    soundkonverter_error_nocdparanoia=yes
16
+#    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
17
+#    no_soundkonverter=yes
18
+#
19
+#    echo ""
20
+#    echo "-----------------------------------------"
21
+#    echo "ERROR: Could not find cdparanoia headers."
22
+#    echo "-----------------------------------------"
23
+#    echo ""
24
+#
25
+#    AC_MSG_ERROR([could not find cdparanoia headers])
26
+#fi
27
+#
28
+###############################################################################
29
+# END CDPARANOIA CHECK
30
+###############################################################################
31
+
32
+
33
+dnl -------------------------------------
34
+dnl       cdparanoia check
35
+dnl -------------------------------------
36
+
37
+AC_CHECK_HEADERS(cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
38
+
39
+dnl ----------------------------------
40
+dnl    Can soundkonverter be compiled?
41
+dnl ----------------------------------
42
+
43
+if test x$have_paranoia != xyes; then
44
+    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
45
+    no_paranoia=yes
46
+fi
47
+
48
+###############################################################################
49
+# BEGIN TAGLIB CHECK
50
+###############################################################################
51
+
52
+TAGLIB_REQ_VERSION="1.4.0";
53
+AC_DEFUN([VERSION_TO_NUMBER], [`$1 | awk 'BEGIN { FS = "."; } { printf "%d",  ([$]1* 1000 + [$]2) * 1000 + [$]3;}'`])
54
+
55
+AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, no)
56
+
57
+if test "x$TAGLIB_CONFIG" = "xno" ; then
58
+    soundkonverter_error_notaglib=yes
59
+    DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
60
+    no_soundkonverter=yes
61
+else
62
+    AC_DEFINE(HAVE_TAGLIB, 1, [have TagLib])
63
+    taglib_includes=[`$TAGLIB_CONFIG --cflags`]
64
+    taglib_libs=[`$TAGLIB_CONFIG --libs`]
65
+    taglib_version=[`$TAGLIB_CONFIG --version`]
66
+
67
+    if test VERSION_TO_NUMBER(echo $taglib_version) -lt VERSION_TO_NUMBER(echo $TAGLIB_REQ_VERSION); then
68
+        soundkonverter_error_taglibold=yes
69
+        DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
70
+        no_soundkonverter=yes
71
+    fi
72
+fi
73
+
74
+AC_SUBST(taglib_includes)
75
+AC_SUBST(taglib_libs)
76
+
77
+###############################################################################
78
+# END TAGLIB CHECK
79
+###############################################################################
80
+
81
+
82
+###############################################################################
83
+# BEGIN MP4V2 CHECK
84
+###############################################################################
85
+# m4a/aac tag reading and writing needs libmp4v2 from faad2 or better mpeg4ip
86
+
87
+AC_ARG_WITH(mp4v2,
88
+    AC_HELP_STRING([--with-mp4v2],[build soundkonverter with M4A/AAC tag support from mp4v2/faad2]),
89
+    [have_mp4v2=$withval],
90
+    [have_mp4v2=no]
91
+)
92
+
93
+AC_ARG_WITH(mp4v2-dir,
94
+    AC_HELP_STRING([--with-mp4v2-dir],[path to mp4v2  [default=/usr]]),
95
+    [mp4v2_dir="$withval"],
96
+    [mp4v2_dir=/usr]
97
+)
98
+
99
+if test "$have_mp4v2" != "no"; then
100
+    AC_LANG_SAVE
101
+    AC_LANG_CPLUSPLUS
102
+    ac_cxxflags_save=$CXXFLAGS
103
+    CXXFLAGS="$CXXFLAGS -I$mp4v2_dir/include"
104
+    ac_ldflags_save=$LDFLAGS
105
+    LDFLAGS="$LDFLAGS -L$mp4v2_dir/lib"
106
+
107
+    # not even everyone using faad2 has <systems.h>
108
+    if ! test -f config.h; then
109
+        echo "#include \"confdefs.h\"" > config.h
110
+    fi
111
+    ac_cppflags_save=$CPPFLAGS
112
+    CPPFLAGS="$CPPFLAGS -I."
113
+    AC_CHECK_HEADERS(systems.h)
114
+    AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
115
+        [#ifdef HAVE_SYSTEMS_H
116
+         # include <systems.h>
117
+         #endif
118
+        ])
119
+
120
+    AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
121
+
122
+    if test "$have_mp4v2" = "yes" -a "$have_mp4_h" = "yes"; then
123
+        AC_DEFINE(HAVE_MP4V2, 1, [have mp4v2])
124
+        MP4V2_INCLUDES="-I$mp4v2_dir/include"
125
+        MP4V2_LIBS="-L$mp4v2_dir/lib -lmp4v2"
126
+    else
127
+        have_mp4v2=no
128
+    fi
129
+
130
+    CPPFLAGS=$ac_cppflags_save
131
+    CXXFLAGS=$ac_cxxflags_save
132
+    LDFLAGS=$ac_ldflags_save
133
+    AC_LANG_RESTORE
134
+fi
135
+
136
+AC_SUBST(MP4V2_INCLUDES)
137
+AC_SUBST(MP4V2_LIBS)
138
+
139
+AM_CONDITIONAL(with_mp4v2, [test x$have_mp4v2 != xno ])
140
+
141
+###############################################################################
142
+# END MP4V2 CHECK
143
+###############################################################################
144
+

+ 6
- 0
doc/Makefile.am View File

@@ -0,0 +1,6 @@
1
+# the SUBDIRS is filled automatically by am_edit. If files are 
2
+# in this directory they are installed into the english dir
3
+
4
+KDE_LANG = en
5
+KDE_DOCS = soundkonverter
6
+SUBDIRS = $(AUTODIRS)  

+ 2
- 0
doc/en/Makefile.am View File

@@ -0,0 +1,2 @@
1
+KDE_DOCS = soundkonverter
2
+KDE_LANG = en

+ 209
- 0
doc/en/index.docbook View File

@@ -0,0 +1,209 @@
1
+<?xml version="1.0" ?>
2
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
3
+  <!ENTITY soundkonverter "<application>soundKonverter 0.3</application>">
4
+  <!ENTITY kappname "&soundkonverter;"><!-- Do *not* replace kappname-->
5
+  <!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
6
+  <!ENTITY % addindex "IGNORE">
7
+  <!ENTITY % English "INCLUDE"><!-- change language only here -->
8
+  
9
+  
10
+  <!-- Do not define any other entities; instead, use the entities
11
+       from kde-genent.entities and $LANG/user.entities. -->
12
+]>
13
+<!-- kdoctemplate v0.8 October 1 1999 
14
+     Minor update to "Credits and Licenses" section on August 24, 2000
15
+     Removed "Revision history" section on 22 January 2001
16
+     Changed to Installation/Help menu entities 18 October 2001
17
+     Other minor cleanup and changes 18 October 2001 -->
18
+
19
+
20
+<!--
21
+This template was designed by: David Rugge davidrugge@mindspring.com
22
+with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr
23
+and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de
24
+of the KDE DocBook team.
25
+
26
+You may freely use this template for writing any sort of KDE documentation.
27
+If you have any changes or improvements, please let us know.
28
+
29
+Remember:
30
+- in XML, the case of the <tags> and attributes is relevant ;
31
+- also, quote all attributes.
32
+
33
+Please don't forget to remove all these comments in your final documentation,
34
+thanks ;-).
35
+-->
36
+
37
+<!-- ................................................................ -->
38
+
39
+<!-- The language must NOT be changed here. -->
40
+
41
+<book lang="&language;">
42
+
43
+<!-- This header contains all of the meta-information for the document such
44
+as Authors, publish date, the abstract, and Keywords -->
45
+
46
+<bookinfo>
47
+<title>The &soundkonverter; Handbook</title>
48
+
49
+<authorgroup>
50
+<author>
51
+<firstname></firstname>
52
+<othername></othername>
53
+<surname>Daniel Faust</surname>
54
+<affiliation>
55
+<address><email>hessijames@gmail.com</email></address>
56
+</affiliation>
57
+</author>
58
+</authorgroup>
59
+
60
+<!-- TRANS:ROLES_OF_TRANSLATORS -->
61
+
62
+<copyright>
63
+<year>2006</year>
64
+<year>2007</year>
65
+<holder>Daniel Faust</holder>
66
+</copyright>
67
+<!-- Translators: put here the copyright notice of the translation -->
68
+<!-- Put here the FDL notice.  Read the explanation in fdl-notice.docbook
69
+     and in the FDL itself on how to use it. -->
70
+<legalnotice>&FDLNotice;</legalnotice>
71
+
72
+<!-- Date and version information of the documentation
73
+Don't forget to include this last date and this last revision number, we
74
+need them for translation coordination !
75
+Please respect the format of the date (YYYY-MM-DD) and of the version
76
+(V.MM.LL), it could be used by automation scripts.
77
+Do NOT change these in the translation. -->
78
+
79
+<date>2007-01-08</date>
80
+<releaseinfo>0.3</releaseinfo>
81
+
82
+<!-- Abstract about this handbook -->
83
+
84
+<abstract>
85
+<para>
86
+soundKonverter is frontend to various audio converters.
87
+</para>
88
+</abstract>
89
+
90
+<!-- This is a set of Keywords for indexing by search engines.
91
+Please at least include KDE, the KDE package it is in, the name
92
+ of your application, and a few relevant keywords. -->
93
+
94
+<keywordset>
95
+<keyword>KDE</keyword>
96
+<keyword>soundKonverter</keyword>
97
+<keyword>audio</keyword>
98
+<keyword>convert</keyword>
99
+<keyword>transcode</keyword>
100
+<keyword>decode</keyword>
101
+<keyword>encode</keyword>
102
+</keywordset>
103
+
104
+</bookinfo>
105
+
106
+<!-- The contents of the documentation begin here.  Label
107
+each chapter so with the id attribute. This is necessary for two reasons: it
108
+allows you to easily reference the chapter from other chapters of your
109
+document, and if there is no ID, the name of the generated HTML files will vary
110
+from time to time making it hard to manage for maintainers and for the CVS
111
+system. Any chapter labelled (OPTIONAL) may be left out at the author's
112
+discretion. Other chapters should not be left out in order to maintain a
113
+consistent documentation style across all KDE apps. -->
114
+
115
+<chapter id="introduction">
116
+<title>Introduction</title>
117
+
118
+<!-- The introduction chapter contains a brief introduction for the
119
+application that explains what it does and where to report
120
+problems. Basically a long version of the abstract.  Don't include a
121
+revision history. (see installation appendix comment) -->
122
+
123
+<para>soundKonverter is frontend to various audio converters.</para>
124
+<para>
125
+It is extendable by plugins and supports many backends:
126
+lame, oggenc, flac, musepack, faac, mplayer, ffmpeg - just to mention a few.
127
+</para>
128
+<para>
129
+This way you can convert between various audio formats:
130
+mp3, ogg, flac, mpc, aac, m4a, rm and wma, avi, flv (the latter reading only) for example.
131
+</para>
132
+<para>soundKonverter supports reading and writing tags for many formats, so the tags are preserved when converting files.</para>
133
+
134
+<para>
135
+The key features are: Audio conversion, Replay Gain calculation, CD ripping
136
+</para>
137
+
138
+<para>soundKonverter comes with an Amarok script that allows you to easily transcode files when transfering to your media device.</para>
139
+</chapter>
140
+
141
+<chapter id="credits">
142
+
143
+<!-- Include credits for the programmers, documentation writers, and
144
+contributors here. The license for your software should then be included below
145
+the credits with a reference to the appropriate license file included in the KDE
146
+distribution. -->
147
+
148
+<title>Credits and License</title>
149
+
150
+<para>
151
+&soundkonverter;
152
+</para>
153
+<para>
154
+Program copyright 2007 Daniel Faust <email>hessijames@gmail.com</email>
155
+</para>
156
+
157
+<para>
158
+Documentation copyright 2007 Daniel Faust <email>hessijames@gmail.com</email>
159
+</para>
160
+
161
+<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
162
+
163
+&underFDL;               <!-- FDL: do not remove -->
164
+
165
+<!-- Determine which license your application is licensed under, 
166
+     and delete all the remaining licenses below:
167
+
168
+     (NOTE:  All documentation are licensed under the FDL, 
169
+     regardless of what license the application uses) -->
170
+
171
+&underGPL;        	 <!-- GPL License -->
172
+
173
+</chapter>
174
+
175
+<appendix id="installation">
176
+<title>Installation</title>
177
+
178
+<sect1 id="compilation">
179
+<title>Compilation and Installation</title>
180
+
181
+<para>
182
+In order to compile soundKonverter, you need: taglib-devel, cdparanoia
183
+</para>
184
+
185
+<!-- This entity contains the boilerplate text for standard -->
186
+<!-- compilation instructions.  If your application requires any -->
187
+<!-- special handling, remove it, and replace with your own text. -->
188
+
189
+&install.compile.documentation;
190
+
191
+</sect1>
192
+
193
+</appendix>
194
+
195
+&documentation.index;
196
+</book>
197
+
198
+<!--
199
+Local Variables:
200
+mode: sgml
201
+sgml-minimize-attributes:nil
202
+sgml-general-insert-case:lower
203
+sgml-indent-step:0
204
+sgml-indent-data:nil
205
+End:
206
+
207
+vim:tabstop=2:shiftwidth=2:expandtab 
208
+-->
209
+

+ 3
- 0
po/Makefile.am View File

@@ -0,0 +1,3 @@
1
+POFILES = AUTO
2
+noinst_HEADERS = de.po es.po fr.po hu.po it.po nl.po pl.po pt_BR.po pt_PT.po \
3
+	ru.po

+ 1650
- 0
po/de.po
File diff suppressed because it is too large
View File


+ 1661
- 0
po/es.po
File diff suppressed because it is too large
View File


+ 1665
- 0
po/fr.po
File diff suppressed because it is too large
View File


+ 1690
- 0
po/hu.po
File diff suppressed because it is too large
View File


+ 1632
- 0
po/it.po
File diff suppressed because it is too large
View File


+ 1687
- 0
po/nl.po
File diff suppressed because it is too large
View File


+ 1636
- 0
po/pl.po
File diff suppressed because it is too large
View File


+ 1642
- 0
po/pt_BR.po
File diff suppressed because it is too large
View File


+ 1688
- 0
po/pt_PT.po
File diff suppressed because it is too large
View File


+ 1632
- 0
po/ru.po
File diff suppressed because it is too large
View File


+ 58
- 0
src/Makefile.am View File

@@ -0,0 +1,58 @@
1
+# set the include path for X, qt and KDE
2
+INCLUDES = $(all_includes) -I$(top_srcdir)/src/metadata/ \
3
+	-I$(top_srcdir)/src/pluginloader/
4
+
5
+# these are the headers for your project
6
+noinst_HEADERS = cdmanager.h cdopener.h combobutton.h config.h \
7
+	configbackendspage.h configdialog.h configenvironmentpage.h configgeneralpage.h \
8
+	configpagebase.h configpluginspage.h conversionoptions.h convert.h cuesheeteditor.h \
9
+	dcopinterface.h dirdialog.h filelist.h logger.h logviewer.h options.h optionsdetailed.h \
10
+	optionseditor.h optionsrequester.h optionssimple.h outputdirectory.h \
11
+	progressindicator.h replaygain.h replaygainfilelist.h replaygainscanner.h soundkonverter.h \
12
+	soundkonverterapp.h
13
+
14
+# let automoc handle all of the meta source files (moc)
15
+METASOURCES = AUTO
16
+
17
+messages: rc.cpp
18
+	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
19
+	$(XGETTEXT) *.cpp -o $(podir)/soundkonverter.pot
20
+
21
+KDE_ICON = AUTO
22
+
23
+#########################################################################
24
+# APPLICATION SECTION
25
+#########################################################################
26
+# this is the program that gets installed.  it's name is used for all
27
+# of the other Makefile.am variables
28
+bin_PROGRAMS = soundkonverter
29
+
30
+# the application source, library search path, and link libraries
31
+soundkonverter_SOURCES = cddb.cpp cdmanager.cpp cdopener.cpp combobutton.cpp \
32
+	config.cpp configbackendspage.cpp configdialog.cpp configenvironmentpage.cpp \
33
+	configgeneralpage.cpp configpagebase.cpp configpluginspage.cpp conversionoptions.cpp \
34
+	convert.cpp cuesheeteditor.cpp dcopinterface.skel dirdialog.cpp filelist.cpp \
35
+	logger.cpp logviewer.cpp main.cpp options.cpp optionsdetailed.cpp \
36
+	optionseditor.cpp optionsrequester.cpp optionssimple.cpp outputdirectory.cpp paranoia.cpp \
37
+	progressindicator.cpp replaygain.cpp replaygainfilelist.cpp replaygainscanner.cpp \
38
+	soundkonverter.cpp soundkonverterapp.cpp
39
+soundkonverter_LDFLAGS = $(KDE_RPATH) $(all_libraries)
40
+soundkonverter_LDADD = $(LIB_KDEUI) $(LIB_KFILE) metadata/libmetadata.la \
41
+	pluginloader/libpluginloader.la -lcdda_interface -lcdda_paranoia
42
+
43
+xdg_apps_DATA = soundkonverter.desktop
44
+
45
+# this is where the shell's XML-GUI resource file goes
46
+shellrcdir = $(kde_datadir)/soundkonverter
47
+shellrc_DATA = soundkonverterui.rc
48
+
49
+SUBDIRS = amarokscript metadata pics pluginloader plugins
50
+soundkonverter_DEPENDENCIES = metadata/libmetadata.la \
51
+	pluginloader/libpluginloader.la
52
+amarokscriptsdir = $(kde_datadir)/amarok/scripts
53
+servicemenusdir = $(kde_datadir)/konqueror/servicemenus
54
+servicemenus_DATA = audiocd_extract_with_soundkonverter.desktop
55
+amarokscriptdir = $(kde_datadir)/soundkonverter/amarokscript
56
+bin_SCRIPTS = userscript.sh
57
+userscriptdir = $(kde_datadir)/soundkonverter
58
+userscript_SCRIPTS = userscript.sh

+ 3
- 0
src/amarokscript/Makefile.am View File

@@ -0,0 +1,3 @@
1
+amarokscriptdir = $(kde_datadir)/soundkonverter/amarokscript
2
+amarokscript_DATA = README \
3
+                    soundKonverter.rb

+ 43
- 0
src/amarokscript/README View File

@@ -0,0 +1,43 @@
1
+<div align="center"><b>soundKonverter amaroK-Script (v0.3.8)</b></div>
2
+
3
+<p>
4
+<b>About:</b><br>
5
+This script only adds a context menu for easily accesssing the soundKonverter tool.<br>This version was designed to work with soundKonverter 0.2.80+<br>With soundKonverter you can convert audio files into another audio format. And you can add/remove the ReplayGain tag to/from audio files.
6
+</p>
7
+
8
+<p>
9
+<b>Usage:</b><br>
10
+Just run this script and click on one or multiple files in your playlist with the right mouse button. Select soundKonverter and your desired action. After that soundKonverter should start (if you have installed it). Look into the handbook of soundKonverter for further information.
11
+</p>
12
+
13
+<p>
14
+<b>Dependencies:</b><br>
15
+<ul>
16
+<li>amaroK 1.4.0</li>
17
+<li>Ruby 1.6</li>
18
+<li>soundKonverter 0.2.80+</li>
19
+</ul>
20
+</p>
21
+
22
+<p>
23
+<b>ChangeLog:</b><br>
24
+Version 0.1:<br>
25
+<ul>
26
+<li>initial release</li>
27
+</ul>
28
+Version 0.2.80:<br>
29
+<ul>
30
+<li>add: cd ripping menu</li>
31
+</ul>
32
+</p>
33
+
34
+<p>
35
+<b>License:</b><br>
36
+GNU General Public License V2
37
+</p>
38
+
39
+<p>
40
+<b>Author:</b><br>
41
+Daniel Faust (daniel@kaligames.de)
42
+</p>
43
+

+ 296
- 0
src/amarokscript/soundKonverter.rb View File

@@ -0,0 +1,296 @@
1
+#!/usr/bin/env ruby
2
+#
3
+# amaroK-Script for integrating soundKonverter into amaroK
4
+#
5
+# (c) 2005 Daniel Faust <daniel@kaligames.de>
6
+# License: GNU General Public License V2
7
+
8
+
9
+# FIXME after adding some files to soundkonverter, it is impossible to repeat that, until soundkonverter gets closed.
10
+
11
+# FIXME don't open files on every request. load options on startup and save on exit!
12
+
13
+#`dcop amarok playlist addMedia KURL`
14
+#`dcop amarok playlist addMediaList KURL::List`
15
+#`dcop amarok collection scanCollectionChanges`
16
+
17
+
18
+require "uri"
19
+
20
+begin
21
+    require "Qt"
22
+rescue LoadError
23
+    error = 'Qt Ruby bindings are required for this script.'
24
+    `dcop amarok playlist popupMessage "soundKonverter: #{error}"`
25
+    exit
26
+end
27
+
28
+class MainWidget < Qt::Dialog
29
+
30
+slots 'accept()'
31
+
32
+def initialize(parent = nil, name = nil)
33
+    super
34
+
35
+    box = Qt::VBoxLayout.new( self, 11, 6 );
36
+
37
+    lTitle = Qt::Label.new('soundKonverter plugin settings', self)
38
+    box.addWidget( lTitle )
39
+    lTitle.setAlignment(Qt::AlignCenter)
40
+    font = Qt::Font.new()
41
+    font.setPixelSize(18)
42
+    font.setBold(true)
43
+    lTitle.setFont(font)
44
+
45
+    box.addSpacing( 5 )
46
+
47
+    mediaDeviceBox = Qt::GroupBox.new( 1, Qt::Vertical, "Options for transfering to media devices", self )
48
+    box.addWidget( mediaDeviceBox )
49
+    mediaDeviceBox.layout().setSpacing( 6 )
50
+    mediaDeviceBox.layout().setMargin( 6 )
51
+    Qt::Label.new('Profile for lossy conversion:', mediaDeviceBox)
52
+    @cTranscodeProfile = Qt::ComboBox.new(mediaDeviceBox)
53
+    @cTranscodeProfile.insertItem("Very low")
54
+    @cTranscodeProfile.insertItem("Low")
55
+    @cTranscodeProfile.insertItem("Medium")
56
+    @cTranscodeProfile.insertItem("High")
57
+    @cTranscodeProfile.insertItem("Very high")
58
+    @cTranscodeProfile.setCurrentItem( 1 )
59
+
60
+#     box.addSpacing( 5 )
61
+# 
62
+#     rippingBox = Qt::GroupBox.new( 2, Qt::Horizontal, "Use pre-defined options for CD ripping", self )
63
+#     box.addWidget( rippingBox )
64
+#     rippingBox.layout().setSpacing( 6 )
65
+#     rippingBox.layout().setMargin( 6 )
66
+#     rippingBox.setCheckable( true )
67
+#     rippingBox.setEnabled( false )
68
+# 
69
+#     profileBox = Qt::HBoxLayout.new( rippingBox, 6 );
70
+#     lRippingProfile = Qt::Label.new('Profile:', rippingBox)
71
+#     profileBox.addWidget( lRippingProfile )
72
+#     @cRippingProfile = Qt::ComboBox.new(rippingBox)
73
+#     profileBox.addWidget( @cRippingProfile )
74
+#     @cRippingProfile.insertItem("Very low")
75
+#     @cRippingProfile.insertItem("Low")
76
+#     @cRippingProfile.insertItem("Medium")
77
+#     @cRippingProfile.insertItem("High")
78
+#     @cRippingProfile.insertItem("Very high")
79
+#     @cRippingProfile.insertItem("Lossless")
80
+#     @cRippingProfile.insertItem("Last used")
81
+#     @cRippingProfile.setCurrentItem(3)
82
+#     lRippingFormat = Qt::Label.new('Format:', rippingBox)
83
+#     profileBox.addWidget( lRippingFormat )
84
+#     @cRippingFormat = Qt::ComboBox.new(rippingBox)
85
+#     profileBox.addWidget( @cRippingFormat )
86
+#     @cRippingFormat.insertItem("ogg")
87
+#     @cRippingFormat.insertItem("mp3")
88
+#     @cRippingFormat.insertItem("flac")
89
+#     directoryBox = Qt::HBoxLayout.new( rippingBox, 6 );
90
+#     lRippingDirectory = Qt::Label.new('Directory:', rippingBox)
91
+#     directoryBox.addWidget( lRippingDirectory )
92
+#     @cRippingDirectory = Qt::ComboBox.new(rippingBox)
93
+#     directoryBox.addWidget( @cRippingDirectory )
94
+#     @cRippingDirectory.setEditable(true)
95
+#     @cRippingDirectory.insertItem("/home/daniel/soundKonverter/%b/%d - %n - %t")
96
+#     @cRippingDirectory.insertItem("Last used")
97
+
98
+    box.addSpacing( 5 )
99
+
100
+    buttonsBox = Qt::HBoxLayout.new(box)
101
+    buttonsBox.setSpacing(6)
102
+    buttonsBox.addStretch()
103
+    okPushButton = Qt::PushButton.new( self, "ok" )
104
+    buttonsBox.addWidget( okPushButton )
105
+    okPushButton.setText( "OK" )
106
+    okPushButton.setDefault( true )
107
+
108
+    connect( okPushButton, SIGNAL( 'clicked()' ),
109
+             self, SLOT( 'accept()' )
110
+           )
111
+
112
+    cancelPushButton = Qt::PushButton.new( self, "cancel" )
113
+    buttonsBox.addWidget( cancelPushButton )
114
+    cancelPushButton.setText( "Cancel" )
115
+    cancelPushButton.setAccel( Qt::KeySequence.new(Key_Escape) )
116
+
117
+    connect( cancelPushButton, SIGNAL( 'clicked()' ),
118
+             self, SLOT( 'reject()' )
119
+           )
120
+
121
+    file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" )
122
+    if file.open( Qt::IO_ReadOnly )
123
+        ts = Qt::TextStream.new( file )
124
+        content = ''
125
+        ts >> content
126
+        if content == 'Very_low'
127
+            @cTranscodeProfile.setCurrentItem( 0 )
128
+        elsif content == 'Low'
129
+            @cTranscodeProfile.setCurrentItem( 1 )
130
+        elsif content == 'Medium'
131
+            @cTranscodeProfile.setCurrentItem( 2 )
132
+        elsif content == 'High'
133
+            @cTranscodeProfile.setCurrentItem( 3 )
134
+        elsif content == 'Very_high'
135
+            @cTranscodeProfile.setCurrentItem( 4 )
136
+        end
137
+        file.close()
138
+    end
139
+
140
+#     file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/profiles" )
141
+#     if file.open( Qt::IO_ReadOnly )
142
+#         ts = Qt::TextStream.new( file )
143
+#         while !ts.eof()
144
+#             content = ''
145
+#             ts >> content
146
+#             @cProfile.insertItem( content )
147
+#             ts >> content
148
+#         end
149
+# 
150
+#         file.close()
151
+#     end
152
+end
153
+
154
+
155
+def accept()
156
+    file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" )
157
+    if file.open( Qt::IO_WriteOnly )
158
+        ts = Qt::TextStream.new( file )
159
+        if @cTranscodeProfile.currentText() == 'Very low'
160
+            content = 'Very_low'
161
+        elsif @cTranscodeProfile.currentText() == 'Low'
162
+            content = 'Low'
163
+        elsif @cTranscodeProfile.currentText() == 'Medium'
164
+            content = 'Medium'
165
+        elsif @cTranscodeProfile.currentText() == 'High'
166
+            content = 'High'
167
+        elsif @cTranscodeProfile.currentText() == 'Very high'
168
+            content = 'Very_high'
169
+        end
170
+        ts << content + "\n"
171
+        file.close()
172
+    end
173
+
174
+    super
175
+end
176
+
177
+end
178
+
179
+
180
+MenuItemName1 = "soundKonverter \"Convert selected files\""
181
+MenuItemName2 = "soundKonverter \"Add Replay Gain to selected files\""
182
+MenuItemName3 = "soundKonverter \"Rip and play audio CD\""
183
+
184
+
185
+def cleanup()
186
+    `dcop amarok script removeCustomMenuItem #{MenuItemName1}`
187
+    `dcop amarok script removeCustomMenuItem #{MenuItemName2}`
188
+    `dcop amarok script removeCustomMenuItem #{MenuItemName3}`
189
+end
190
+
191
+
192
+trap( "SIGTERM" ) { cleanup() }
193
+
194
+`dcop amarok script addCustomMenuItem #{MenuItemName1}`
195
+`dcop amarok script addCustomMenuItem #{MenuItemName2}`
196
+`dcop amarok script addCustomMenuItem #{MenuItemName3}`
197
+
198
+loop do
199
+    message = gets().chomp()
200
+    command = /[A-Za-z]*/.match( message ).to_s()
201
+
202
+    case command
203
+        when "configure"
204
+            app = Qt::Application.new(ARGV)
205
+            widget = MainWidget.new
206
+            app.setMainWidget(widget)
207
+            widget.show()
208
+            app.exec()
209
+
210
+        when "transcode"
211
+            args = message.split()
212
+            filename = args[1]
213
+            #uri = URI.parse( args[1] )
214
+            #filename = URI.unescape( uri.path() )
215
+            filetype = args[2]
216
+            profile = ''
217
+
218
+            file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/formats" )
219
+            if file.open( Qt::IO_ReadOnly )
220
+                ts = Qt::TextStream.new( file )
221
+                while !ts.eof()
222
+                    mode = ''
223
+                    formats = ''
224
+                    ts >> mode
225
+                    ts >> formats
226
+                    if formats.split(',').include?( filetype )
227
+                        profile = mode
228
+                    end
229
+                end
230
+                file.close()
231
+            end
232
+
233
+            if profile == ''
234
+                file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" )
235
+                if file.open( Qt::IO_ReadOnly )
236
+                    ts = Qt::TextStream.new( file )
237
+                    content = ''
238
+                    ts >> content
239
+                    if content == 'Very_low'
240
+                        profile = 'Very low'
241
+                elsif content == 'Low'
242
+                        profile = 'Low'
243
+                elsif content == 'Medium'
244
+                        profile = 'Medium'
245
+                elsif content == 'High'
246
+                        profile = 'High'
247
+                elsif content == 'Very_high'
248
+                        profile = 'Very high'
249
+                    end
250
+                    file.close()
251
+              else
252
+                    profile = 'Low'
253
+                end
254
+            end
255
+
256
+            `dcop amarok playlist shortStatusMessage "starting soundKonverter in background"`
257
+            `soundkonverter --invisible --profile '#{profile}' --format '#{filetype}' --output '/tmp' --command "dcop amarok mediabrowser transcodingFinished %u file://%o" '#{filename}'`
258
+
259
+        when "customMenuClicked"
260
+            if message.include?( "Convert selected files" )
261
+                args = message.split()
262
+                # Remove the command args
263
+                5.times() { args.delete_at( 0 ) }
264
+
265
+                # Iterate over all selected files
266
+                files = ''
267
+                args.each() do |arg|
268
+                    uri = URI.parse( arg )
269
+                    file = URI.unescape( uri.path() )
270
+                    files += ' "'+file+'"'
271
+                end
272
+                `dcop amarok playlist shortStatusMessage "starting soundKonverter"`
273
+                `soundkonverter #{files}`
274
+            end
275
+            if message.include?( "Add Replay Gain to selected files" )
276
+                args = message.split()
277
+                # Remove the command args
278
+                8.times() { args.delete_at( 0 ) }
279
+
280
+                files = ''
281
+                args.each() do |arg|
282
+                    uri = URI.parse( arg )
283
+                    file = URI.unescape( uri.path() )
284
+                    files += ' "'+file+'"'
285
+                end
286
+                `dcop amarok playlist shortStatusMessage "starting soundKonverter"`
287
+                `soundkonverter --replaygain #{files}`
288
+            end
289
+            if message.include?( "Rip and play audio CD" )
290
+                `dcop amarok playlist popupMessage "Select all tracks to rip and press 'Start' in order to start ripping.\nThe tracks will be added to the playlist, when they are ready."`
291
+                #`dcop amarok playlist shortStatusMessage "starting soundKonverter"`
292
+                `soundkonverter --invisible --rip auto --command "dcop amarok playlist addMedia %o"`
293
+            end
294
+    end
295
+end
296
+

+ 11
- 0
src/audiocd_extract_with_soundkonverter.desktop View File

@@ -0,0 +1,11 @@
1
+[Desktop Entry]
2
+Actions=ExtractSoundKonverter
3
+ServiceTypes=media/audiocd
4
+Icon=soundkonverter
5
+X-KDE-Priority=TopLevel
6
+
7
+[Desktop Action ExtractSoundKonverter]
8
+Exec=soundkonverter --rip %u
9
+Icon=soundkonverter
10
+Name=Extract with soundKonverter
11
+Name[de]=Mit soundKonverter auslesen

+ 669
- 0
src/cddb.cpp View File

@@ -0,0 +1,669 @@
1
+/*
2
+   Copyright (C) 2000 Michael Matz <matz@kde.org>
3
+
4
+   This program is free software; you can redistribute it and/or modify
5
+   it under the terms of the GNU General Public License as published by
6
+   the Free Software Foundation; either version 2 of the License, or
7
+   (at your option) any later version.
8
+
9
+   This program is distributed in the hope that it will be useful,
10
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+   GNU General Public License for more details.
13
+
14
+   You should have received a copy of the GNU General Public License
15
+   along with this program; if not, write to the Free Software
16
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
+*/
18
+
19
+#include <config.h>
20
+#ifdef HAVE_SYS_TIME_H
21
+#include <sys/time.h>
22
+#endif
23
+#include <sys/types.h>
24
+#ifdef HAVE_SYS_SOCKET_H
25
+#include <sys/socket.h>
26
+#endif
27
+#ifdef HAVE_SYS_SELECT_H
28
+#include <sys/select.h>
29
+#endif
30
+#include <errno.h>
31
+#include <unistd.h>
32
+#include <qdir.h>
33
+#include <qtextstream.h>
34
+#include <qregexp.h>
35
+//#include <qapp.h>
36
+#include <qstring.h>
37
+// #include <qcursor.h>
38
+//#include <kdebug.h>
39
+#include <ksock.h>
40
+#include <kextsock.h>
41
+#include <klocale.h>
42
+#include <kinputdialog.h>
43
+
44
+#include "cddb.h"
45
+#include "cddb.moc"
46
+
47
+// FIXME //kdDebug
48
+
49
+CDDB::CDDB()
50
+  : ks(0), port(80), remote(false), save_local(false)
51
+{
52
+  QString s = QDir::homeDirPath()+"/.cddb";
53
+  cddb_dirs +=s;
54
+}
55
+
56
+
57
+
58
+CDDB::~CDDB()
59
+{
60
+  deinit();
61
+}
62
+
63
+
64
+
65
+bool
66
+CDDB::set_server(const char *hostname, unsigned short int _port)
67
+{
68
+  if (ks)
69
+    {
70
+      if (h_name == hostname && port == _port)
71
+        return true;
72
+      deinit();
73
+    }
74
+  remote = (hostname != 0) && (*hostname != 0);
75
+  //kdDebug(7101) << "CDDB: set_server, host=" << hostname << "port=" << _port << endl;
76
+  if (remote)
77
+    {
78
+      ks = new KExtendedSocket(hostname, _port);
79
+      if (ks->connect() < 0)
80
+	{
81
+	  //kdDebug(7101) << "CDDB: Can't connect!" << endl;
82
+	  delete ks;
83
+	  ks = 0;
84
+          return false;
85
+	}
86
+
87
+      h_name = hostname;
88
+      port = _port;
89
+      QCString r;
90
+      readLine(r); // the server greeting
91
+      writeLine("cddb hello kde-user blubb kio_audiocd 0.4");
92
+      readLine(r);
93
+    }
94
+  return true;
95
+}
96
+
97
+
98
+
99
+bool
100
+CDDB::deinit()
101
+{
102
+  if (ks)
103
+    {
104
+      writeLine("quit");
105
+      QCString r;
106
+      readLine(r);
107
+      ks->close();
108
+    }
109
+  h_name.resize(0);
110
+  port = 0;
111
+  remote = false;
112
+  ks = 0;
113
+  return true;
114
+}
115
+
116
+
117
+
118
+bool
119
+CDDB::readLine(QCString& ret)
120
+{
121
+  int read_length = 0;
122
+  char small_b[128];
123
+  //fd_set set;
124
+
125
+  ret.resize(0);
126
+  while (read_length < 40000)
127
+    {
128
+      // Look for a \n in buf
129
+      int ni = buf.find('\n');
130
+      if (ni >= 0)
131
+        {
132
+	  // Nice, so return this substring (without the \n),
133
+	  // and truncate buf accordingly
134
+	  ret = buf.left(ni);
135
+	  if (ret.length() && ret[ret.length()-1] == '\r')
136
+	    ret.resize(ret.length());
137
+	  buf.remove(0, ni+1);
138
+	  //kdDebug(7101) << "CDDB: got  `" << ret << "'" << endl;
139
+	  return true;
140
+	}
141
+
142
+      // Try to refill the buffer
143
+      ks->waitForMore(60 * 1000);
144
+      ssize_t l = ks->readBlock(small_b, sizeof(small_b)-1);
145
+      if (l <= 0)
146
+        {
147
+	  // l==0 normally means fd got closed, but we really need a lineend
148
+	  return false;
149
+	}
150
+      small_b[l] = 0;
151
+      read_length += l;
152
+      buf += small_b;
153
+    }
154
+  return false;
155
+}
156
+
157
+
158
+
159
+bool
160
+CDDB::writeLine(const QCString& line)
161
+{
162
+  const char *b = line.data();
163
+  int l = line.length();
164
+  //kdDebug(7101) << "CDDB: send `" << line << "'" << endl;
165
+  while (l)
166
+    {
167
+      ssize_t wl = ks->writeBlock(b, l);
168
+      if (wl < 0 && errno != EINTR)
169
+        return false;
170
+      if (wl < 0)
171
+        wl = 0;
172
+      l -= wl;
173
+      b += wl;
174
+    }
175
+  l = line.length();
176
+  if (l && line.data()[l-1] != '\n')
177
+    {
178
+      char c = '\n';
179
+      ssize_t wl;
180
+      do {
181
+	wl = ks->writeBlock(&c, 1);
182
+      } while (wl <= 0 && errno == EINTR);
183
+      if (wl<=0 && errno != EINTR)
184
+        return false;
185
+    }
186
+  return true;
187
+}
188
+
189
+
190
+
191
+unsigned int
192
+CDDB::get_discid(QValueList<int>& track_ofs)
193
+{
194
+    unsigned int id = 0;
195
+    int num_tracks = track_ofs.count() - 2;
196
+
197
+    // the last two track_ofs[] are disc begin and disc end
198
+
199
+    for (int i = num_tracks - 1; i >= 0; i--)
200
+      {
201
+	int n = track_ofs[i];
202
+	n /= 75;
203
+	while (n > 0)
204
+	  {
205
+	    id += n % 10;
206
+	    n /= 10;
207
+	  }
208
+      }
209
+    unsigned int l = track_ofs[num_tracks + 1];
210
+    l -= track_ofs[num_tracks];
211
+    l /= 75;
212
+    id = ((id % 255) << 24) | (l << 8) | num_tracks;
213
+    return id;
214
+}
215
+
216
+
217
+
218
+static int
219
+get_code (const QCString &s)