#include <tts/mp3encoder.h>
Public Member Functions | |
wxMP3Encoder () | |
~wxMP3Encoder () | |
void | Init () |
Member initialisation. | |
virtual bool | Encode (const wxString &inputFilename, const wxString &outputFilename, int options=0) |
Encode the WAV file as MP3. | |
virtual bool | IsEncoding () |
Is it encoding? | |
virtual bool | Stop () |
Stop encoding. | |
void | SetOptions (int options) |
Set/get the options. | |
int | GetOptions () const |
void | SetInfo (const wxMP3EncoderInfo &info) |
Set/get info. | |
const wxMP3EncoderInfo & | GetInfo () const |
void | SetProgramLocation (const wxString &location) |
Set/get the program location. | |
const wxString & | GetProgramLocation () const |
void | SetExtraSwitches (const wxString &switches) |
Set/get extra switches. | |
const wxString & | GetExtraSwitches () const |
void | SetID3 (const wxID3Info &info) |
Set/get the ID3 data. | |
const wxID3Info & | GetID3Info () const |
void | SetBitRate (int bitRate) |
Set/get the bitrate. | |
int | GetBitRate () const |
void | SetLastCommand (const wxString &command) |
Set/get the last command. | |
const wxString & | GetLastCommand () const |
void | SetErrorCode (int errorCode) |
Set/get the error code. | |
int | GetErrorCode () const |
void | SetPID (long pid) |
Set/get the process id. | |
long | GetPID () const |
void | SetOutput (const wxArrayString &output) |
Set/get the output from espeak. | |
const wxArrayString & | GetOutput () const |
void | WriteOutput (const wxString &output) |
Add a line of output. | |
bool | ProcessInput () |
Process any pending input. | |
void | SetProcess (wxMP3EncoderProcess *process) |
Set/get process. | |
wxMP3EncoderProcess * | GetProcess () const |
Protected Attributes | |
int | m_options |
wxMP3EncoderInfo | m_info |
wxString | m_command |
wxString | m_extraSwitches |
wxArrayString | m_output |
wxID3Info | m_id3Info |
int | m_errorCode |
wxMP3EncoderProcess * | m_process |
long | m_pid |
wxMP3Encoder::wxMP3Encoder | ( | ) |
wxMP3Encoder::~wxMP3Encoder | ( | ) |
bool wxMP3Encoder::Encode | ( | const wxString & | inputFilename, | |
const wxString & | outputFilename, | |||
int | options = 0 | |||
) | [virtual] |
Encode the WAV file as MP3.
int wxMP3Encoder::GetBitRate | ( | ) | const [inline] |
int wxMP3Encoder::GetErrorCode | ( | ) | const [inline] |
const wxString& wxMP3Encoder::GetExtraSwitches | ( | ) | const [inline] |
const wxID3Info& wxMP3Encoder::GetID3Info | ( | ) | const [inline] |
const wxMP3EncoderInfo& wxMP3Encoder::GetInfo | ( | ) | const [inline] |
const wxString& wxMP3Encoder::GetLastCommand | ( | ) | const [inline] |
int wxMP3Encoder::GetOptions | ( | ) | const [inline] |
const wxArrayString& wxMP3Encoder::GetOutput | ( | ) | const [inline] |
long wxMP3Encoder::GetPID | ( | ) | const [inline] |
wxMP3EncoderProcess* wxMP3Encoder::GetProcess | ( | ) | const [inline] |
const wxString& wxMP3Encoder::GetProgramLocation | ( | ) | const [inline] |
void wxMP3Encoder::Init | ( | ) |
Member initialisation.
virtual bool wxMP3Encoder::IsEncoding | ( | ) | [inline, virtual] |
Is it encoding?
bool wxMP3Encoder::ProcessInput | ( | ) |
Process any pending input.
void wxMP3Encoder::SetBitRate | ( | int | bitRate | ) | [inline] |
Set/get the bitrate.
void wxMP3Encoder::SetErrorCode | ( | int | errorCode | ) | [inline] |
Set/get the error code.
void wxMP3Encoder::SetExtraSwitches | ( | const wxString & | switches | ) | [inline] |
Set/get extra switches.
void wxMP3Encoder::SetID3 | ( | const wxID3Info & | info | ) | [inline] |
Set/get the ID3 data.
void wxMP3Encoder::SetInfo | ( | const wxMP3EncoderInfo & | info | ) | [inline] |
Set/get info.
void wxMP3Encoder::SetLastCommand | ( | const wxString & | command | ) | [inline] |
Set/get the last command.
void wxMP3Encoder::SetOptions | ( | int | options | ) | [inline] |
Set/get the options.
void wxMP3Encoder::SetOutput | ( | const wxArrayString & | output | ) | [inline] |
Set/get the output from espeak.
void wxMP3Encoder::SetPID | ( | long | pid | ) | [inline] |
Set/get the process id.
void wxMP3Encoder::SetProcess | ( | wxMP3EncoderProcess * | process | ) | [inline] |
Set/get process.
void wxMP3Encoder::SetProgramLocation | ( | const wxString & | location | ) | [inline] |
Set/get the program location.
bool wxMP3Encoder::Stop | ( | ) | [virtual] |
Stop encoding.
void wxMP3Encoder::WriteOutput | ( | const wxString & | output | ) | [inline] |
Add a line of output.
wxString wxMP3Encoder::m_command [protected] |
int wxMP3Encoder::m_errorCode [protected] |
wxString wxMP3Encoder::m_extraSwitches [protected] |
wxID3Info wxMP3Encoder::m_id3Info [protected] |
wxMP3EncoderInfo wxMP3Encoder::m_info [protected] |
int wxMP3Encoder::m_options [protected] |
wxArrayString wxMP3Encoder::m_output [protected] |
long wxMP3Encoder::m_pid [protected] |
wxMP3EncoderProcess* wxMP3Encoder::m_process [protected] |