00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef VORBISAUDIOWRITER_H
00023 #define VORBISAUDIOWRITER_H
00024
00025 #include "AbstractAudioWriter.h"
00026 #include "defines.h"
00027
00028
00029 class QString;
00030
00031 class VorbisAudioWriter : public AbstractAudioWriter
00032 {
00033
00034 public:
00035 VorbisAudioWriter();
00036 ~VorbisAudioWriter();
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 bool writeOggHeaders();
00044 nframes_t write_private(void* buffer, nframes_t frameCount);
00045 long flushVorbis();
00046 void cleanup();
00047 bool close_private();
00048
00049 class Private;
00050 Private* d;
00051 };
00052
00053 #endif