Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
AudioEventInfo Struct Reference

#include <AudioEventInfo.h>

Inherits MemoryPoolObject.

Inherited by DynamicAudioEventInfo.

Public Member Functions

virtual Bool isLevelSpecific () const
 If true, this sound is only defined on the current level and can be deleted when that level ends.
 
virtual DynamicAudioEventInfogetDynamicAudioEventInfo ()
 If this object is REALLY a DynamicAudioEventInfo, return a pointer to the derived class.
 
virtual const DynamicAudioEventInfogetDynamicAudioEventInfo () const
 If this object is REALLY a DynamicAudioEventInfo, return a pointer to the derived class.
 
Bool isPermanentSound () const
 
const FieldParsegetFieldParse (void) const
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Public Attributes

AsciiString m_audioName
 
AsciiString m_filename
 
Real m_volume
 
Real m_volumeShift
 
Real m_minVolume
 
Real m_pitchShiftMin
 
Real m_pitchShiftMax
 
Int m_delayMin
 
Int m_delayMax
 
Int m_limit
 
Int m_loopCount
 
AudioPriority m_priority
 
UnsignedInt m_type
 
UnsignedInt m_control
 
std::vector< AsciiStringm_soundsMorning
 
std::vector< AsciiStringm_sounds
 
std::vector< AsciiStringm_soundsNight
 
std::vector< AsciiStringm_soundsEvening
 
std::vector< AsciiStringm_attackSounds
 
std::vector< AsciiStringm_decaySounds
 
Real m_lowPassFreq
 
Real m_minDistance
 
Real m_maxDistance
 
AudioType m_soundType
 

Static Public Attributes

static const FieldParse m_audioEventInfo []
 the parse table for INI definition
 

Additional Inherited Members

- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 87 of file AudioEventInfo.h.

Member Function Documentation

◆ getDynamicAudioEventInfo() [1/2]

virtual DynamicAudioEventInfo * AudioEventInfo::getDynamicAudioEventInfo ( )
inlinevirtual

If this object is REALLY a DynamicAudioEventInfo, return a pointer to the derived class.

Reimplemented in DynamicAudioEventInfo.

Definition at line 126 of file AudioEventInfo.h.

◆ getDynamicAudioEventInfo() [2/2]

virtual const DynamicAudioEventInfo * AudioEventInfo::getDynamicAudioEventInfo ( ) const
inlinevirtual

If this object is REALLY a DynamicAudioEventInfo, return a pointer to the derived class.

Reimplemented in DynamicAudioEventInfo.

Definition at line 127 of file AudioEventInfo.h.

◆ getFieldParse()

const FieldParse * AudioEventInfo::getFieldParse ( void ) const
inline

Definition at line 134 of file AudioEventInfo.h.

◆ isLevelSpecific()

virtual Bool AudioEventInfo::isLevelSpecific ( ) const
inlinevirtual

If true, this sound is only defined on the current level and can be deleted when that level ends.

Reimplemented in DynamicAudioEventInfo.

Definition at line 125 of file AudioEventInfo.h.

◆ isPermanentSound()

Bool AudioEventInfo::isPermanentSound ( ) const
inline

Is this a permenant sound? That is, if I start this sound up, will it ever end "on its own" or only if I explicitly kill it?

Definition at line 131 of file AudioEventInfo.h.

Member Data Documentation

◆ m_attackSounds

std::vector<AsciiString> AudioEventInfo::m_attackSounds

Definition at line 114 of file AudioEventInfo.h.

◆ m_audioEventInfo

const FieldParse AudioEventInfo::m_audioEventInfo
static
Initial value:
=
{
{ "Filename", INI::parseAsciiString, NULL, offsetof( AudioEventInfo, m_filename) },
{ "Volume", INI::parsePercentToReal, NULL, offsetof( AudioEventInfo, m_volume ) },
{ "VolumeShift", INI::parsePercentToReal, NULL, offsetof( AudioEventInfo, m_volumeShift ) },
{ "MinVolume", INI::parsePercentToReal, NULL, offsetof( AudioEventInfo, m_minVolume ) },
{ "PitchShift", parsePitchShift, NULL, 0 },
{ "Delay", parseDelay, NULL, 0 },
{ "Limit", INI::parseInt, NULL, offsetof( AudioEventInfo, m_limit ) },
{ "LoopCount", INI::parseInt, NULL, offsetof( AudioEventInfo, m_loopCount ) },
{ "Priority", INI::parseIndexList, theAudioPriorityNames, offsetof( AudioEventInfo, m_priority ) },
{ "Type", INI::parseBitString32, theSoundTypeNames, offsetof( AudioEventInfo, m_type ) },
{ "Control", INI::parseBitString32, theAudioControlNames, offsetof( AudioEventInfo, m_control ) },
{ "Sounds", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_sounds ) },
{ "SoundsNight", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_soundsNight ) },
{ "SoundsEvening", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_soundsEvening ) },
{ "SoundsMorning", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_soundsMorning ) },
{ "Attack", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_attackSounds ) },
{ "Decay", INI::parseSoundsList, NULL, offsetof( AudioEventInfo, m_decaySounds ) },
{ "MinRange", INI::parseReal, NULL, offsetof( AudioEventInfo, m_minDistance) },
{ "MaxRange", INI::parseReal, NULL, offsetof( AudioEventInfo, m_maxDistance) },
{ "LowPassCutoff", INI::parsePercentToReal, NULL, offsetof( AudioEventInfo, m_lowPassFreq) },
}
char * theSoundTypeNames[]
char * theAudioPriorityNames[]
char * theAudioControlNames[]
#define NULL
Definition BaseType.h:92
static void parseIndexList(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:1399
static void parsePercentToReal(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:873
static void parseInt(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:538
static void parseAsciiString(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:653
static void parseReal(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:558
static void parseBitString32(INI *ini, void *instance, void *store, const void *userData)
Definition INI.cpp:903
static void parseSoundsList(INI *ini, void *instance, void *store, const void *)
Definition INI.cpp:1788
std::vector< AsciiString > m_attackSounds
std::vector< AsciiString > m_decaySounds
std::vector< AsciiString > m_soundsEvening
AudioPriority m_priority
AsciiString m_filename
UnsignedInt m_control
std::vector< AsciiString > m_soundsMorning
UnsignedInt m_type
std::vector< AsciiString > m_soundsNight
std::vector< AsciiString > m_sounds

the parse table for INI definition

Definition at line 130 of file AudioEventInfo.h.

◆ m_audioName

AsciiString AudioEventInfo::m_audioName

Definition at line 92 of file AudioEventInfo.h.

◆ m_control

UnsignedInt AudioEventInfo::m_control

Definition at line 107 of file AudioEventInfo.h.

◆ m_decaySounds

std::vector<AsciiString> AudioEventInfo::m_decaySounds

Definition at line 115 of file AudioEventInfo.h.

◆ m_delayMax

Int AudioEventInfo::m_delayMax

Definition at line 101 of file AudioEventInfo.h.

◆ m_delayMin

Int AudioEventInfo::m_delayMin

Definition at line 100 of file AudioEventInfo.h.

◆ m_filename

AsciiString AudioEventInfo::m_filename

Definition at line 93 of file AudioEventInfo.h.

◆ m_limit

Int AudioEventInfo::m_limit

Definition at line 102 of file AudioEventInfo.h.

◆ m_loopCount

Int AudioEventInfo::m_loopCount

Definition at line 103 of file AudioEventInfo.h.

◆ m_lowPassFreq

Real AudioEventInfo::m_lowPassFreq

Definition at line 117 of file AudioEventInfo.h.

◆ m_maxDistance

Real AudioEventInfo::m_maxDistance

Definition at line 119 of file AudioEventInfo.h.

◆ m_minDistance

Real AudioEventInfo::m_minDistance

Definition at line 118 of file AudioEventInfo.h.

◆ m_minVolume

Real AudioEventInfo::m_minVolume

Definition at line 97 of file AudioEventInfo.h.

◆ m_pitchShiftMax

Real AudioEventInfo::m_pitchShiftMax

Definition at line 99 of file AudioEventInfo.h.

◆ m_pitchShiftMin

Real AudioEventInfo::m_pitchShiftMin

Definition at line 98 of file AudioEventInfo.h.

◆ m_priority

AudioPriority AudioEventInfo::m_priority

Definition at line 105 of file AudioEventInfo.h.

◆ m_sounds

std::vector<AsciiString> AudioEventInfo::m_sounds

Definition at line 110 of file AudioEventInfo.h.

◆ m_soundsEvening

std::vector<AsciiString> AudioEventInfo::m_soundsEvening

Definition at line 112 of file AudioEventInfo.h.

◆ m_soundsMorning

std::vector<AsciiString> AudioEventInfo::m_soundsMorning

Definition at line 109 of file AudioEventInfo.h.

◆ m_soundsNight

std::vector<AsciiString> AudioEventInfo::m_soundsNight

Definition at line 111 of file AudioEventInfo.h.

◆ m_soundType

AudioType AudioEventInfo::m_soundType

Definition at line 121 of file AudioEventInfo.h.

◆ m_type

UnsignedInt AudioEventInfo::m_type

Definition at line 106 of file AudioEventInfo.h.

◆ m_volume

Real AudioEventInfo::m_volume

Definition at line 95 of file AudioEventInfo.h.

◆ m_volumeShift

Real AudioEventInfo::m_volumeShift

Definition at line 96 of file AudioEventInfo.h.


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