blob: 3ba4eb140fd6de0938417674cdf0ee44bc2b13d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/***************************************************************************
copyright : (C) 2003 by Arnold Krille
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 TQFile;
class KRecExport_MP3 : public KRecExportItem {
TQ_OBJECT
public:
KRecExport_MP3( TQObject*, const char* =0, const TQStringList& =0 );
~KRecExport_MP3();
KRecExport_MP3* newItem();
TQStringList extensions();
TQString exportFormat() { return TQString( "Wave" ); }
public slots:
bool initialize( const TQString & );
bool process();
bool finalize();
private:
TQFile* _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
|