CLAM-Development
1.4.0
|
A codec implements a file audio format support. More...
#include <AudioCodec.hxx>
Public Member Functions | |
virtual | ~Codec () |
virtual bool | IsReadable (std::string filename) const =0 |
Returns whether the filename is readable by the codec. | |
virtual bool | IsWritable (std::string filename, const AudioFileHeader &) const =0 |
Returns whether codec can write a file with such name and header parameters. | |
virtual Stream * | GetStreamFor (const AudioFile &)=0 |
Returns an Stream object to read or write on. | |
virtual void | RetrieveHeaderData (std::string uri, AudioFileHeader &)=0 |
Returns a header structure containing file information (length, encoding...) | |
virtual void | RetrieveTextDescriptors (std::string uri, AudioTextDescriptors &) |
Returns textual meta information embedded on the audio file such ID3 tags. |
Static Public Member Functions | |
static bool | FileExists (std::string filename) |
A codec implements a file audio format support.
Subclasses should reimplement its methods to support a concrete audio file format.
Definition at line 43 of file AudioCodec.hxx.
|
virtual |
Definition at line 31 of file AudioCodec.cxx.
|
static |
Definition at line 36 of file AudioCodec.cxx.
References NULL.
Referenced by CLAM::AudioFile::ResolveCodec().
Returns an Stream object to read or write on.
Implemented in CLAM::AudioCodecs::MpegCodec, CLAM::AudioCodecs::OggVorbisCodec, and CLAM::AudioCodecs::PCMCodec.
Referenced by CLAM::AudioFile::GetStream().
|
pure virtual |
Returns whether the filename is readable by the codec.
Implemented in CLAM::AudioCodecs::MpegCodec, CLAM::AudioCodecs::OggVorbisCodec, and CLAM::AudioCodecs::PCMCodec.
Referenced by CLAM::AudioFile::IsReadable().
|
pure virtual |
Returns whether codec can write a file with such name and header parameters.
Implemented in CLAM::AudioCodecs::MpegCodec, CLAM::AudioCodecs::OggVorbisCodec, and CLAM::AudioCodecs::PCMCodec.
Referenced by CLAM::AudioFile::IsWritable().
|
pure virtual |
Returns a header structure containing file information (length, encoding...)
Implemented in CLAM::AudioCodecs::MpegCodec, CLAM::AudioCodecs::OggVorbisCodec, and CLAM::AudioCodecs::PCMCodec.
Referenced by CLAM::AudioFile::ActivateCodec().
|
virtual |
Returns textual meta information embedded on the audio file such ID3 tags.
Reimplemented in CLAM::AudioCodecs::MpegCodec, and CLAM::AudioCodecs::OggVorbisCodec.
Definition at line 57 of file AudioCodec.cxx.
Referenced by CLAM::AudioFile::ActivateCodec().