The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:SoundTable (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> SoundTable
Package: 
U2

SoundTable.uc $Author: Mfox $ $Date: 12/14/02 8:36p $ $Revision: 19 $

Properties

Property group 'Sounds'

SoundList

Type: array<SoundInfoT>

list of all sounds for this class

Internal variables

DefaultSoundSlot

Type: Actor.ESoundSlot


Default value: SLOT_Talk

Structs

SoundInfoT

string SoundString 
name for actual sound to play
SoundSlotInterf.ESoundTableSlot SoundTableSlot 
sound category (can have multiple sounds per slot)
bool bPlayed 
this sound has been already played (for LRU)

Functions

Static functions

GetInstance

static function SoundTable GetInstance (Actor ContextActor, string InVoicePackage)


Native functions

Initialize

native function bool Initialize (string VoicePackage)


StringToSlot

native function bool StringToSlot (string SlotString, SoundSlotInterf.ESoundTableSlot SlotEnum)


Other instance functions

Dump

function Dump (Actor Helper)


GetNumSounds

function int GetNumSounds (SoundSlotInterf.ESoundTableSlot InSlot)


LoadAndPlaySound

function Sound LoadAndPlaySound (U2Pawn U2P, int SelectedIndex, Actor.ESoundSlot SelectedSoundSlot)


PlayRandomSlotSound

function Sound PlayRandomSlotSound (U2Pawn U2P, SoundSlotInterf.ESoundTableSlot SoundTableSlot, Actor.ESoundSlot SelectedSoundSlot)


PlaySlotSound

function Sound PlaySlotSound (U2Pawn U2P, SoundSlotInterf.ESoundTableSlot SoundTableSlot, optional bool bSpecialSoundSlot, optional Actor.ESoundSlot SpecialSoundSlot)


SetupAndPlaySound

function SetupAndPlaySound (U2Pawn U2P, Sound SelectedSound, Actor.ESoundSlot SelectedSoundSlot)


StopSlotSound

function StopSlotSound (U2Pawn U2P, SoundSlotInterf.ESoundTableSlot SoundTableSlot)