Blender  V2.59
Public Member Functions
AUD_ChannelMapperFactory Class Reference

#include <AUD_ChannelMapperFactory.h>

Inheritance diagram for AUD_ChannelMapperFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_ChannelMapperFactory (AUD_IFactory *factory, AUD_DeviceSpecs specs)
virtual ~AUD_ChannelMapperFactory ()
float ** getMapping (int ic)
void deleteMapping (int ic)
virtual AUD_IReadercreateReader () const

Detailed Description

This factory creates a reader that maps a sound source's channels to a specific output channel count.

Definition at line 41 of file AUD_ChannelMapperFactory.h.


Constructor & Destructor Documentation

AUD_ChannelMapperFactory::AUD_ChannelMapperFactory ( AUD_IFactory factory,
AUD_DeviceSpecs  specs 
)

Definition at line 37 of file AUD_ChannelMapperFactory.cpp.

AUD_ChannelMapperFactory::~AUD_ChannelMapperFactory ( ) [virtual]

Definition at line 44 of file AUD_ChannelMapperFactory.cpp.

References deleteMapping(), and i.


Member Function Documentation

AUD_IReader * AUD_ChannelMapperFactory::createReader ( ) const [virtual]

Creates a reader for playback of the sound source.

Returns:
A pointer to an AUD_IReader object or NULL if there has been an error.
Exceptions:
AUD_ExceptionAn exception may be thrown if there has been a more unexpected error during reader creation.

Implements AUD_IFactory.

Definition at line 105 of file AUD_ChannelMapperFactory.cpp.

References AUD_Specs::channels, getMapping(), AUD_MixerFactory::getReader(), and AUD_IReader::getSpecs().

Referenced by AUD_readSound().

void AUD_ChannelMapperFactory::deleteMapping ( int  ic)

Deletes the current channel mapping.

Definition at line 83 of file AUD_ChannelMapperFactory.cpp.

References i.

Referenced by getMapping(), and ~AUD_ChannelMapperFactory().

float ** AUD_ChannelMapperFactory::getMapping ( int  ic)

Returns the mapping array for editing.

Parameters:
icThe count of input channels the array should have.
Note:
The count of output channels is read of the desired output specs.

Definition at line 50 of file AUD_ChannelMapperFactory.cpp.

References AUD_DeviceSpecs::channels, deleteMapping(), i, and AUD_MixerFactory::m_specs.

Referenced by createReader(), and AUD_DefaultMixer::prepare().


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