Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::sound::io::FLACTranscoder Class Reference

A class thats encode and decodes the compressed FLAC audio format. More...

#include <omSoundFLACTranscoder.h>

Inheritance diagram for om::sound::io::FLACTranscoder:
om::sound::io::SoundTranscoder om::resources::ResourceTypeTranscoder< DataType > om::resources::ResourceTranscoder

Public Member Functions

virtual const ResourceFormatgetResourceFormat () 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 Sounddecode (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 ResourceTypegetResourceType () 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...
 

Detailed Description

A class thats encode and decodes the compressed FLAC audio format.

Member Function Documentation

virtual const ResourceFormat& om::sound::io::FLACTranscoder::getResourceFormat ( ) const
virtual

Return an object that represents the resource format that this transcoder can read and write.

Implements om::resources::ResourceTranscoder.

virtual SoundFormat om::sound::io::FLACTranscoder::getSoundFormat ( ) const
virtual

Return an object that represents the format that this transcoder can encode and decode.

Implements om::sound::io::SoundTranscoder.

virtual Bool om::sound::io::FLACTranscoder::canEncode ( const Sound resource) const
virtual

Return whether or not this transcoder is able to encode the specified resource.

virtual Bool om::sound::io::FLACTranscoder::encode ( DataOutputStream stream,
const Sound sound 
)
virtual

Encode a sound to the specified output stream.

Implements om::sound::io::SoundTranscoder.

virtual Bool om::sound::io::FLACTranscoder::canDecode ( const ResourceID identifier) const
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 Bool om::sound::io::FLACTranscoder::decode ( DataInputStream stream,
Sound sound 
)
virtual

Decode a sound from the specified output stream.

Implements om::sound::io::SoundTranscoder.

virtual Bool om::sound::io::FLACTranscoder::decode ( const Shared< DataInputStream > &  stream,
Sound sound 
)
virtual

Decode a sound from the specified persistent output stream.

Implements om::sound::io::SoundTranscoder.


The documentation for this class was generated from the following file: