00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef LAMEAUDIOWRITER_H
00023 #define LAMEAUDIOWRITER_H
00024
00025 #include "AbstractAudioWriter.h"
00026 #include "defines.h"
00027
00028
00029 class QString;
00030
00031 class LameAudioWriter : public AbstractAudioWriter
00032 {
00033
00034 public:
00035 LameAudioWriter();
00036 ~LameAudioWriter();
00037
00038 bool set_format_attribute(const QString& key, const QString& value);
00039 const char* get_extension();
00040
00041 protected:
00042 bool open_private();
00043 nframes_t write_private(void* buffer, nframes_t frameCount);
00044 bool close_private();
00045
00046 struct LameInfo;
00047 LameInfo* m_lameInfo;
00048
00049 char *m_buffer;
00050 long m_bufferSize;
00051 FILE* m_fid;
00052
00053 int m_method;
00054 int m_minBitrate;
00055 int m_maxBitrate;
00056 int m_quality;
00057 };
00058
00059 #endif