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

A class that encodes and decodes the HRTF format. More...

#include <omSoundHRTFTranscoder.h>

Inheritance diagram for om::sound::io::HRTFTranscoder:
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 Bool canEncode (const HRTF &hrtf) const
 Return whether or not this transcoder is able to encode the specified resource. More...
 
virtual Bool encode (const ResourceID &identifier, const HRTF &hrtf, const ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0))
 Save the specified HRTF at the specified ID location. 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 HRTFdecode (ResourceID &identifier, ResourceSet *resourceSet=((void *) 0), ResourceManager *manager=((void *) 0))
 Load the HRTF 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...
 

Static Public Attributes

static const ResourceFormat FORMAT
 The resource format for HRTFs. More...
 

Detailed Description

A class that encodes and decodes the HRTF format.

Version 1 of the HRTF binary format.

Primitive types:

The version-independent 16-byte header for the file is as follows:

The version-specific HRTF header contains basic information about the HRTF:

The channels for the HRTF: (per channel)

Each IR sample for a channel:

Member Function Documentation

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

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

Implements om::resources::ResourceTranscoder.

virtual Bool om::sound::io::HRTFTranscoder::canEncode ( const HRTF hrtf) const
virtual

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

virtual Bool om::sound::io::HRTFTranscoder::encode ( const ResourceID identifier,
const HRTF hrtf,
const ResourceSet resourceSet = ((void *) 0),
ResourceManager manager = ((void *) 0) 
)
virtual

Save the specified HRTF at the specified ID location.

The method returns whether or not the resource was successfully written.

virtual Bool om::sound::io::HRTFTranscoder::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 HRTF* om::sound::io::HRTFTranscoder::decode ( ResourceID identifier,
ResourceSet resourceSet = ((void *) 0),
ResourceManager manager = ((void *) 0) 
)
virtual

Load the HRTF pointed to by the specified identifier.

The caller can supply a pointer to a resource manager which can be used to manage the creation of child resources.

If the method fails, the return value will be NULL.

Implements om::resources::ResourceTypeTranscoder< DataType >.

Member Data Documentation

const ResourceFormat om::sound::io::HRTFTranscoder::FORMAT
static

The resource format for HRTFs.


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