Search public documentation:
Unreal Engine 3 provides several different types of actors that can be used to produce or modify ambient sounds within the level.
AmbientSound Actors are placed in maps to trigger SoundCues. When Actor Classes\Keypoint\AmbientSound is highlighted in the Generic Browser, these actors can be added virtually anywhere within the map by right clicking on desired location in any of the browser windows and selecting Add AmbientSound Here. This Actor is largely used for triggering ambient looping sounds but it can also trigger non-looping sounds. When listener enters the radii defined in the SoundCue Editor the Actor is trigger once. If the Looping Node is utilized, it'll play repeatedly within the radii and respond to all properties defined in the SoundCue. If the Looping Node is not utilized the audio file will trigger once when listener enters radii. The only controllable parameters on this actor are Pitch and Volume. The Radii must be defined in the SoundCue and there isn't a graphic representation of it in the editor. Use this actor when the flexibility of the SoundCue Editor to create complex sounds is more desirable than radii control\visibility. If you want to trigger the same Cue in multiple locations with different radii settings you'll need to create duplicate Cues for each instance.
The functionality of the AmbientSoundSimple Actor is similar to that of the AmbientSound Actor only instead of triggering SoundCues it triggers audio files directly. So in many ways this Actor is more similar to AmbientSound Actors found in previous Unreal engines. This allows per Actor control over Attenuation, Spatialization, Radii, and Modulation. Relative Volume and Pitch adjustments are accomplished by using Volume Modulation and Pitch Modulation. The Min\Max Radii can be seen in the editor graphically as spheres and can be adjusted in real-time by click dragging the Red\Green\Blue Actor arrows.
AmbientSoundNonLoop Actors are placed in maps to trigger Non-Looping sounds randomly within a particular radius. When listener enters the radius it'll continue triggering sounds as defined in the Actor until listener exits the radii. As with AmbientSoundSimple this Actor triggers audio files directly.
- Delay Time controls the Minimum and Maximum amount of silence between triggers in seconds. Each time an audio file is triggered it'll randomly pick a delay time between that range.
- Volume Modulation + Pitch Modulation are used to define overall Actor Volume + Pitch
- Sound Slots are added for each Wav file by clicking the small green icon located on the right side of the SoundSlots tab. Each Sound Slot features per slot volume, pitch, and weight properties. Weight controls the probability a Sound Slot will be triggered relative to other Sound Slots in the Actor.
- The `Wave' slot located at the bottom of the Actors window should be ignored and not used.
- The Min\Max Radii can be seen in the editor graphically as spheres and can be adjusted in real-time by click dragging the Red\Green\Blue Actor arrows.
In AmbientSoundSpline the sound location is not given in one point. The whole spline can be treated as a sound source. Virtual speaker position is estimated based on set of points on a spline (those points are generated automatically) and listener's position. This type of actor was created mainly to cover long/large areas with a movable sound using only one SoundActor as a source. For example you can use it to apply sounds to: river flowing by, wind on the cliff, distant battle soundscape, etc. How to create:
- Open Content Browser, select Actor Classes tab, expand Keypoint -> AmbientSoundSpline
- Pick the one you want (Simple, NonLoop or MultiCue)and drag it onto game's world
- Draw the curve on which sound will travel. Best possible way is to select the TOP view in view-port. Then press and hold left mouse button on white square in the center of actor icon. While keeping left mouse button pressed you will have to press PERIOD and move your mouse to add a new point. Then you will see that a new point has been created.
- If you wish to delete extra points on your spline you need to use BACKSPACE. it can be only done by starting from the last one towards the first one.
- If you wish to change the shape of your spline just grab one of the white squares and move it into appropriate position
- Blue point shows the virtual speaker's position.
- White - spline curve control points.
- Light violet - points with a sound range defined.
- Green - points inside the listener's scope.
- Red circle represents listener's hearing scope. Red point represents listener's position (draggable).
- AmbientSoundSplineSimple - holds properties of regular AmbientSoundSimple
- AmbientSoundSimpleSplineNonLoop holds properties of regular AmbientSoundNonLoop
- AmbientSoundSplineMultiCue - holds properties of regular AmbientSound
- Edited Slot - shows currently edited Sound Slot on the spline
- Spline Component - you can change curvature type by expanding Ambient Sound Spline -> Spline Component -> Spline Info -> Points
- Sound Slots -> Start Point - place on spline where sound starts to track the camera. -1 = 1st point on the spline
- Sound Slots -> End Point - place on the spline where sound finishes to track the camera. -1 = last point on the spline
If you make any reverb volume changes, they will not work in realtime in the editor. You need to rebuild the geometry of the sub-level that contains your ReverbVolumes when you make ANY changes to the reverb volume(s).
UE has the ability to generate one shot audio events without any Kismet usage. It has been achieved by adding a possibility of creating the SoundTriggeringVolume. You can apply this one to any part of existing map’s geometry. The advantage of this approach is that it is very easy to create and use. Apart it gives you numerous possibilities of usage. Here would be an example. Player approaches a rocky cliff. When he is close enough he enters this volume and engine triggers one shot sound of rocks falling down the path. How to create:
- Create a volume using brush builder. When done please pick SoundTriggeringVolume by right mouse click from volumes selector
- When done press F4 (properties) and click on the padlock symbol while you keep SoundTriggeringVolume selected
- Mark (in viewport, or scene manager) actor/actors you want to be triggered and then press "use selected object in content browser" (green arrow symbol)
- This will add scene actors to the SoundTriggeringVolume
- Once you enter it every SoundActor hooked will be played.
- After being played this SoundActor will be moved to garbage collector (unless it is a looped sound). If, for some reason, you need to leave this actor in memory please uncheck ‘Delete After Play’ flag in actor’s properites
This module is another feature added to SoundActor & SoundCue. It will allow you to change sound parameters in time domain (using graphic interface) such as pitch and volume. It is available as a single block in a SoundCue or you can use it as a property of all sound actors. How to create:
- insert chosen SoundActor in game world
- open its properties
- select 'create new object' in Enveloper slot
- it will create an Enveloper module with 3 properties: Looping, Envelope, Modulation
- Loop Start - envelope's start point of loop
- Loop End - envelope's end point of loop
- Duration After Loop - fade out time after which looping is finished
- Loop Count - quantity of loops
- Loop Indefinately - switch yes/no
- Loop - switch yes/no (designed to work with Loop Count switch)
- Volume Interp Curve - volume envelope which you can define. expand structure until you see 'Points'. Where: InVal = time in seconds, OutVal = volume multiplier, InterpMode = type of curve
- PitchInterpCurve - pitch envelope which you can define. expand structure until you see 'Points'. Where: InVal_= time in seconds, _OutVal = pitch multiplier, InterpMode = type of curve
- PanLeftRightInterCurve - panning envelope which you can define. expand structure until you see 'Points'. Where: InVal_= time in seconds, _OutVal = panning multiplier (1 = 100% left, 0 = center, -1 = 100% right. works only with mono sounds, needs Spatliaze flag on actor to be switch off), InterpMode = type of curve
- PanFrontBackInterCurve - panning envelope which you can define. expand structure until you see 'Points'. Where: InVal_= time in seconds, _OutVal = panning multiplier (1 = 100% front, 0 = center, -1 = 100% back. works only with mono sounds, requires 'Spatialize' flag on actor to be switch off), InterpMode = type of curve
- PitchMin - minimal value of played pitch
- PitchMax - maximal value of played pitch
- VolumeMin - minimal value of played volume
- VolumeMax - maximal value of played volume
Omni Radius this one sets the range of spatializing radius in which bleed between channels occur. It prevents sound source from sudden jumps between channels when you stand very close to actual Sound Actor and start to strafe. It has inverse LogReverse falloff characteristic. When used in conjunction with AmbientSoundSpline actor this is called Flatten Attenuation Radius