Blender  V2.59
Public Member Functions
AUD_VolumeFactory Class Reference

#include <AUD_VolumeFactory.h>

Inheritance diagram for AUD_VolumeFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AUD_VolumeFactory (AUD_IFactory *factory, float volume)
float getVolume () const
virtual AUD_IReadercreateReader () const

Detailed Description

This factory changes the volume of another factory. The set volume should be a value between 0.0 and 1.0, higher values at your own risk!

Definition at line 42 of file AUD_VolumeFactory.h.


Constructor & Destructor Documentation

AUD_VolumeFactory::AUD_VolumeFactory ( AUD_IFactory factory,
float  volume 
)

Creates a new volume factory.

Parameters:
factoryThe input factory.
volumeThe desired volume.

Definition at line 35 of file AUD_VolumeFactory.cpp.


Member Function Documentation

AUD_IReader * AUD_VolumeFactory::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 46 of file AUD_VolumeFactory.cpp.

References AUD_EffectFactory::getReader().

float AUD_VolumeFactory::getVolume ( ) const

Returns the volume.

Definition at line 41 of file AUD_VolumeFactory.cpp.


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