Om
1.0.0
A universal framework for multimedia simulation
|
A class thats encode and decodes the compressed FLAC audio format. More...
#include <omSoundFLACTranscoder.h>
Public Member Functions | |
virtual const ResourceFormat & | getResourceFormat () const |
Return an object that represents the resource format that this transcoder can read and write. More... | |
virtual SoundFormat | getSoundFormat () const |
Return an object that represents the format that this transcoder can encode and decode. More... | |
virtual Bool | canEncode (const Sound &resource) const |
Return whether or not this transcoder is able to encode the specified resource. More... | |
virtual Bool | encode (DataOutputStream &stream, const Sound &sound) |
Encode a sound to the specified output stream. More... | |
virtual Bool | canDecode (const ResourceID &identifier) const |
Return whether or not the specified identifier refers to a valid resource for this transcoder. More... | |
virtual Bool | decode (DataInputStream &stream, Sound &sound) |
Decode a sound from the specified output stream. More... | |
virtual Bool | decode (const Shared< DataInputStream > &stream, Sound &sound) |
Decode a sound from the specified persistent output stream. More... | |
Public Member Functions inherited from om::sound::io::SoundTranscoder | |
virtual Bool | encode (const ResourceID &identifier, const Sound &sound, const ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0)) |
Save the specified sound resource at the specified ID location. More... | |
virtual Sound * | decode (ResourceID &identifier, ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0)) |
Load the sound pointed to by the specified identifier. More... | |
Public Member Functions inherited from om::resources::ResourceTypeTranscoder< DataType > | |
virtual const ResourceType & | getResourceType () const |
Return an object that represents the resource type that this transcoder can read and write. More... | |
virtual Bool | canEncode (const DataType &resource) const =0 |
Return whether or not this transcoder is able to encode the specified resource. More... | |
virtual Bool | encode (const ResourceID &identifier, const DataType &resource, const ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0))=0 |
Save the specified resource object at the specified ID location. More... | |
Public Member Functions inherited from om::resources::ResourceTranscoder | |
virtual | ~ResourceTranscoder () |
Destroy a resource transcoder and release all of its resources. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from om::sound::io::SoundTranscoder | |
static Bool | encodeToStream (const Sound &sound, SoundOutputStream &encoder) |
Encode a sound to the given sound output stream. More... | |
static Bool | decodeFromStream (Sound &sound, SoundInputStream &decoder) |
Decode a sound from the given sound output stream. More... | |
A class thats encode and decodes the compressed FLAC audio format.
|
virtual |
Return an object that represents the resource format that this transcoder can read and write.
Implements om::resources::ResourceTranscoder.
|
virtual |
Return an object that represents the format that this transcoder can encode and decode.
Implements om::sound::io::SoundTranscoder.
Return whether or not this transcoder is able to encode the specified resource.
|
virtual |
Encode a sound to the specified output stream.
Implements om::sound::io::SoundTranscoder.
|
virtual |
Return whether or not the specified identifier refers to a valid resource for this transcoder.
If the identifier represents a valid resource, TRUE is returned. Otherwise, if the resource is not valid, FALSE is returned.
Implements om::resources::ResourceTranscoder.
|
virtual |
Decode a sound from the specified output stream.
Implements om::sound::io::SoundTranscoder.
|
virtual |
Decode a sound from the specified persistent output stream.
Implements om::sound::io::SoundTranscoder.