PTLib
Version 2.10.11
|
Abstract factory class for handling WAV files formats. More...
#include <pwavfile.h>
Public Member Functions | |
virtual | ~PWAVFileFormat () |
virtual unsigned | GetFormat () const =0 |
Return a PWAVFile format code. More... | |
virtual PString | GetFormatString () const =0 |
Return a string that can be used as a media format. More... | |
virtual PString | GetDescription () const =0 |
Return a string that can be used as a text description. More... | |
virtual bool | CanSetChannels (unsigned channels) const =0 |
Check that this format can be set to the number of channels. More... | |
virtual void | CreateHeader (PWAV::FMTChunk &header, PBYTEArray &extendedHeader)=0 |
Populate the header with the correct values. More... | |
virtual void | UpdateHeader (PWAV::FMTChunk &, PBYTEArray &) |
Populate the header with the correct values after initial parameters are set. More... | |
virtual PBoolean | WriteExtraChunks (PWAVFile &) |
Write any extra headers after the FORMAT chunk. More... | |
virtual PBoolean | ReadExtraChunks (PWAVFile &) |
Read any extra headers after the FORMAT chunk. More... | |
virtual void | OnStart () |
Called before the reading/writing starts. More... | |
virtual void | OnStop () |
Called after the reading/writing stops. More... | |
virtual PBoolean | Read (PWAVFile &file, void *buf, PINDEX &len) |
Write data to the file. More... | |
virtual PBoolean | Write (PWAVFile &file, const void *buf, PINDEX &len) |
Read data from the file. More... | |
Abstract factory class for handling WAV files formats.
|
inlinevirtual |
|
pure virtual |
Check that this format can be set to the number of channels.
|
pure virtual |
Populate the header with the correct values.
|
pure virtual |
Return a string that can be used as a text description.
|
pure virtual |
Return a PWAVFile format code.
|
pure virtual |
Return a string that can be used as a media format.
|
inlinevirtual |
Called before the reading/writing starts.
|
inlinevirtual |
Called after the reading/writing stops.
Write data to the file.
Read any extra headers after the FORMAT chunk.
|
inlinevirtual |
Populate the header with the correct values after initial parameters are set.
Read data from the file.
Write any extra headers after the FORMAT chunk.