UE3:UTMusicManager (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 07:40, 23 May 2008 by Unknown user (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
UT3 Object >> Actor >> Info >> UTMusicManager
Package:
UTGame
Direct subclass:
UTOnslaughtMusicManager
This class in other games:

Todo: add ability to use the TempoOverride Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties

bPendingAction

Type: bool

Time at which last "action event" occurred - used to determine when to fade out action track.

CurrentState

Type: EMusicState


CurrentTrack

Type: AudioComponent


CurrFadeFactor

Type: float

Modifiers: private


CurrTempo

Type: float

Modifiers: private

This is the temp (in Beats Per Minutes) of the track that is currently playing *

LastActionEventTime

Type: float

Maximum volume for music audiocomponents (max value for VolumeMultiplier).

Default value: -1000.0

LastBeat

Type: int

Time at which current track started playing

MusicStartTime

Type: float


MusicTracks

Type: AudioComponent

Array size: 6

Track being ramped up, rather than faded out

MusicVolume

Type: float

Modifiers: globalconfig

Owner of this MusicManager

Default value: 0.36

PendingEvent

Type: int

Current Music state (reflects which track is active).

PendingEventDelay

Type: float


Default value: 0.125

PendingEventPlayTime

Type: float

Pending music event - will be processed on next beat.

PlayerOwner

Type: UTPlayerController

Pre-computed MusicVolume/CrossFadeTime deltatime multiplier for cross-fading

StingerVolumeMultiplier

Type: float

Modifiers: config

If true, switch to action on next beat

Default value: 1.1

Default values

Property Value
CollisionType COLLIDE_CustomDefault

Subobjects

Sprite

Class: Engine.SpriteComponent

Inherits from: Info.Sprite

No new values.

Enums

EMusicState

MST_Ambient
MST_Tension
MST_Suspense
MST_Action
MST_Victory

Functions

Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay

Music Tracks - see ChangeTrack() for definition of slots.

Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

AlreadyInActionMusic

function bool AlreadyInActionMusic ()


ChangeTrack

function ChangeTrack (EMusicState NewState)

ChangeTrack()

Parameters:

  • NewState - New music state (track to ramp up).

CreateNewTrack

function AudioComponent CreateNewTrack (SoundCue MusicCue)


IntroFinished

function IntroFinished (AudioComponent AC)

delegate set to intro music's AudioComponent to detect when the music has completed

MusicEvent

function MusicEvent (int NewEventIndex)


ProcessMusicEvent

function ProcessMusicEvent ()

ProcessMusicEvent() process PendingEvent. Called from Tick() on a beat.

StartMusic

function StartMusic ()

StartMusic() Initialize MusicManager and start intro track.