summaryrefslogtreecommitdiffstats
path: root/krec/mp3_export/krecexport_mp3.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /krec/mp3_export/krecexport_mp3.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krec/mp3_export/krecexport_mp3.h')
-rw-r--r--krec/mp3_export/krecexport_mp3.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/krec/mp3_export/krecexport_mp3.h b/krec/mp3_export/krecexport_mp3.h
new file mode 100644
index 00000000..8bf243b3
--- /dev/null
+++ b/krec/mp3_export/krecexport_mp3.h
@@ -0,0 +1,52 @@
+/***************************************************************************
+ copyright : (C) 2003 by Arnold Krille
+ email : arnold@arnoldarts.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; version 2 of the License. *
+ * *
+ ***************************************************************************/
+
+#ifndef KREC_EXPORT_MP3_H
+#define KREC_EXPORT_MP3_H
+
+#include "krecexport_template.h"
+
+#include <lame/lame.h>
+
+class KTempFile;
+class QFile;
+
+class KRecExport_MP3 : public KRecExportItem {
+ Q_OBJECT
+public:
+ KRecExport_MP3( QObject*, const char* =0, const QStringList& =0 );
+ ~KRecExport_MP3();
+
+ KRecExport_MP3* newItem();
+
+ QStringList extensions();
+ QString exportFormat() { return QString( "Wave" ); }
+public slots:
+ bool initialize( const QString & );
+ bool process();
+ bool finalize();
+
+private:
+ QFile* _file;
+ // Lame MP3 encoder
+ void setLameParameters();
+ lame_global_flags *gfp;
+ unsigned char mp3buf[ LAME_MAXMP3BUFFER ];
+ bool error_occurred;
+ bool write_id3;
+ bool init_done;
+};
+
+#endif
+
+// vim:sw=4:ts=4