Class WindAircraftSoundComponent
Aircraft sound component for wind noise generated by airflow over the fuselage and cockpit. Volume and pitch increase proportionally with airspeed to simulate increased wind noise at higher speeds.
Inheritance
Inherited Members
Namespace: NWH.Aerodynamics.AircraftController.Sound.SoundComponents
Assembly: NWH.Aerodynamics.dll
Syntax
[Serializable]
public class WindAircraftSoundComponent : AircraftSoundComponentBehaviour
Remarks
Wind noise is typically most noticeable above 20 m/s (40 kts) and increases significantly with airspeed. The component continuously plays a looping wind sound with dynamic volume and pitch modulation based on the aircraft's current airspeed.
Fields
| Edit this page View SourcepitchRange
Maximum pitch variation range applied at maximum airspeed. The pitch increases from basePitch to basePitch + pitchRange as airspeed increases. Typical values: 0.1-0.3 for subtle variation, 0.4-0.6 for pronounced variation.
Declaration
public float pitchRange
Field Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceGetDefaultClipName()
Gets the default audio clip name for wind sound.
Declaration
public override string GetDefaultClipName()
Returns
| Type | Description |
|---|---|
| string | Default clip name "Wind". |
Overrides
| Edit this page View SourceGetMixerGroupName()
Gets the audio mixer group name for this sound component.
Declaration
public override string GetMixerGroupName()
Returns
| Type | Description |
|---|---|
| string | Mixer group name "Noise". |
Overrides
| Edit this page View SourceLoopOnAwake()
Determines if the wind sound should loop continuously.
Declaration
public override bool LoopOnAwake()
Returns
| Type | Description |
|---|---|
| bool | True to enable continuous looping. |
Overrides
| Edit this page View SourcePlayOnAwake()
Determines if the wind sound should start playing automatically when the component awakens.
Declaration
public override bool PlayOnAwake()
Returns
| Type | Description |
|---|---|
| bool | True to start playing immediately. |
Overrides
| Edit this page View SourceUpdate()
Updates the wind sound volume and pitch based on current airspeed.
Declaration
public void Update()