#include <plSound.h>
Public Types |
enum | Property {
kPropIs3DSound = 0x1,
kPropDisableLOD = 0x2,
kPropLooping = 0x4,
kPropAutoStart = 0x8,
kPropLocalOnly = 0x10,
kPropLoadOnlyOnCall = 0x20,
kPropFullyDisabled = 0x40,
kPropDontFade = 0x80,
kPropIncidental = 0x100
} |
enum | Type {
kStartType = 0,
kSoundFX = kStartType,
kAmbience,
kBackgroundMusic,
kGUISound,
kNPCVoices,
kNumTypes
} |
enum | StreamType { kNoStream,
kStreamFromRAM,
kStreamFromDisk,
kStreamCompressed
} |
enum | Flags {
kDontDirty = 0x1,
kSendReliably = 0x2,
kHasConstantNetGroup = 0x4,
kDontSynchGameMessages = 0x8,
kExcludePersistentState = 0x10,
kExcludeAllPersistentState = 0x20,
kLocalOnly = kExcludeAllPersistentState | kDontSynchGameMessages,
kHasVolatileState = 0x40,
kAllStateIsVolatile = 0x80
} |
enum | SDLSendFlags {
kBCastToClients = 0x1,
kForceFullSend = 0x2,
kSkipLocalOwnershipCheck = 0x4,
kSendImmediately = 0x8,
kDontPersistOnServer = 0x10,
kUseRelevanceRegions = 0x20,
kNewState = 0x40,
kIsAvatarState = 0x80
} |
Member Enumeration Documentation
- Enumerator:
kPropIs3DSound |
|
kPropDisableLOD |
|
kPropLooping |
|
kPropAutoStart |
|
kPropLocalOnly |
|
kPropLoadOnlyOnCall |
|
kPropFullyDisabled |
|
kPropDontFade |
|
kPropIncidental |
|
- Enumerator:
kNoStream |
|
kStreamFromRAM |
|
kStreamFromDisk |
|
kStreamCompressed |
|
- Enumerator:
kStartType |
|
kSoundFX |
|
kAmbience |
|
kBackgroundMusic |
|
kGUISound |
|
kNPCVoices |
|
kNumTypes |
|
Constructor & Destructor Documentation
Member Function Documentation
float plSound::getCurrVolume |
( |
| ) |
const |
plKey plSound::getDataBuffer |
( |
| ) |
const |
float plSound::getDesiredVolume |
( |
| ) |
const |
float plSound::getFadedVolume |
( |
| ) |
const |
int plSound::getInnerCone |
( |
| ) |
const |
int plSound::getMaxFalloff |
( |
| ) |
const |
int plSound::getMinFalloff |
( |
| ) |
const |
int plSound::getOuterCone |
( |
| ) |
const |
int plSound::getOuterVol |
( |
| ) |
const |
unsigned char plSound::getPriority |
( |
| ) |
const |
unsigned int plSound::getProperties |
( |
| ) |
const |
plKey plSound::getSoftOcclusionRegion |
( |
| ) |
const |
plKey plSound::getSoftRegion |
( |
| ) |
const |
plString plSound::getSubtitleId |
( |
| ) |
const |
double plSound::getTime |
( |
| ) |
const |
unsigned char plSound::getType |
( |
| ) |
const |
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 plSynchedObject.
Reimplemented in plDirectMusicSound, plWin32GroupedSound, and plWin32Sound.
bool plSound::isPlaying |
( |
| ) |
const |
void plSound::setCone |
( |
int |
inner, |
|
|
int |
outer |
|
) |
| |
void plSound::setCurrVolume |
( |
float |
vol | ) |
|
void plSound::setDataBuffer |
( |
plKey |
buffer | ) |
|
void plSound::setDesiredVolume |
( |
float |
vol | ) |
|
void plSound::setFadedVolume |
( |
float |
vol | ) |
|
void plSound::setFalloff |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
void plSound::setOuterVol |
( |
int |
vol | ) |
|
void plSound::setPlaying |
( |
bool |
playing | ) |
|
void plSound::setPriority |
( |
unsigned char |
priority | ) |
|
void plSound::setProperties |
( |
unsigned int |
props | ) |
|
void plSound::setSoftOcclusionRegion |
( |
plKey |
region | ) |
|
void plSound::setSoftRegion |
( |
plKey |
region | ) |
|
void plSound::setSubtitleId |
( |
const plString & |
subtitle | ) |
|
void plSound::setTime |
( |
double |
time | ) |
|
void plSound::setType |
( |
unsigned char |
type | ) |
|
Member Data Documentation
float plSound::fCurrVolume |
|
protected |
plKey plSound::fDataBuffer |
|
protected |
float plSound::fDesiredVol |
|
protected |
float plSound::fFadedVolume |
|
protected |
unsigned char plSound::fPriority |
|
protected |
unsigned int plSound::fProperties |
|
protected |
plKey plSound::fSoftOcclusionRegion |
|
protected |
plKey plSound::fSoftRegion |
|
protected |
unsigned char plSound::fType |
|
protected |
The documentation for this class was generated from the following file: