libHSPlasma
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
plWin32GroupedSound Class Reference

#include <plWin32StaticSound.h>

Inheritance diagram for plWin32GroupedSound:
plWin32StaticSound plWin32Sound plSound plSynchedObject hsKeyedObject plCreatable

Public Member Functions

size_t getNumVolumes () const
uint32_t getPosition (size_t idx) const
float getVolume (size_t idx) const
void setVolumes (size_t count, uint32_t *positions, float *volumes)

Protected Member Functions

virtual void IPrcWrite (pfPrcHelper *prc)
virtual void IPrcParse (const pfPrcTag *tag, plResManager *mgr)
virtual void IRead (hsStream *S, plResManager *mgr)
virtual void IWrite (hsStream *S, plResManager *mgr)

Protected Attributes

std::vector< uint32_t > fStartPositions
std::vector< float > fVolumes

Additional Inherited Members

- Public Types inherited from plWin32Sound
enum  ChannelSelect { kLeftChannel, kRightChannel }

Member Function Documentation

size_t plWin32GroupedSound::getNumVolumes ( ) const
uint32_t plWin32GroupedSound::getPosition ( size_t  idx) const
float plWin32GroupedSound::getVolume ( size_t  idx) const
virtual void plWin32GroupedSound::IPrcParse ( const pfPrcTag tag,
plResManager mgr 
)
protectedvirtual

This must be overloaded by subclasses to parse PRC data specific to the class from the PRC document. It is called once for each tag that is a child to the Creatable tag itself, so subclasses should check for each supported tag and handle it accordingly if it matches. If the tag is not recognized, it should be passed along to the parent class.

Reimplemented from plWin32Sound.

virtual void plWin32GroupedSound::IPrcWrite ( pfPrcHelper prc)
protectedvirtual

This must be overloaded by subclasses to write PRC data specific to the class to the PRC document. Do not write the top-level creatable tag, that is handled by prcWrite().

Reimplemented from plWin32Sound.

virtual void plWin32GroupedSound::IRead ( hsStream S,
plResManager mgr 
)
protectedvirtual

Reimplemented from plWin32Sound.

virtual void plWin32GroupedSound::IWrite ( hsStream S,
plResManager mgr 
)
protectedvirtual

Reimplemented from plWin32Sound.

void plWin32GroupedSound::setVolumes ( size_t  count,
uint32_t *  positions,
float *  volumes 
)

Member Data Documentation

std::vector<uint32_t> plWin32GroupedSound::fStartPositions
protected
std::vector<float> plWin32GroupedSound::fVolumes
protected

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